Simple instantiation-only test for DetectorClocksStandard.
More...
Go to the source code of this file.
|
int | main (int argc, char const **argv) |
| Runs the test. More...
|
|
Simple instantiation-only test for DetectorClocksStandard.
- Author
- Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
- Date
- May 6th, 2016
Definition in file DetectorClocksStandard_test.cc.
int main |
( |
int |
argc, |
|
|
char const ** |
argv |
|
) |
| |
Runs the test.
- Parameters
-
argc | number of arguments in argv |
argv | arguments to the function |
- Returns
- number of detected errors (0 on success)
- Exceptions
-
cet::exception | most of error situations throw |
The arguments in argv are: 0. name of the executable ("DetectorClocksStandard_test")
- (mandatory) path to the FHiCL configuration file
- FHiCL path to the configuration of the test (default: physics.analyzers.larptest)
- FHiCL path to the configuration of DetectorClocks service (default: services.DetectorClocksService)
Definition at line 47 of file DetectorClocksStandard_test.cc.
61 std::cerr <<
"FHiCL configuration file path required as first argument!" <<
std::endl;
67 if (++iParam < argc)
config.SetMainTesterParameterSetPath(
argv[iParam]);
71 if (++iParam < argc)
config.SetServiceParameterSetPath(
"DetectorClocksService",
argv[iParam]);
86 auto const& detClocksData = detClocks->
DataForJob();
88 <<
"TPC clock frame: " << detClocksData.TPCClock().FramePeriod() <<
" us";
90 detClocksData.debugReport(std::cout);
93 if (nErrors > 0) {
mf::LogError(
"clocks_test") << nErrors <<
" errors detected!"; }
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
DetectorClocksData DataForJob() const override
Returns a complete detinfo::DetectorClocksData object.
Class holding a configuration for a test environment.
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
Class used for the conversion of times between different formats and references.
testing::TesterEnvironment< testing::BasicEnvironmentConfiguration > TestEnvironment
Implementation of detinfo::DetectorClocks interface with fixed settings from configuration.
QTextStream & endl(QTextStream &s)