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.
59 config.SetConfigurationPath(argv[iParam]);
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();
87 mf::LogVerbatim(
"clocks_test")
88 <<
"TPC clock frame: " << detClocksData.TPCClock().FramePeriod() <<
" us";
93 if (nErrors > 0) { mf::LogError(
"clocks_test") << nErrors <<
" errors detected!"; }
BEGIN_PROLOG could also be cerr
Class holding a configuration for a test environment.
Class used for the conversion of times between different formats and references.
A test environment with some support for service providers.
DetectorClocksData DataForJob() const override
Returns a complete detinfo::DetectorClocksData object.
Implementation of detinfo::DetectorClocks interface with fixed settings from configuration.
BEGIN_PROLOG could also be cout