47 main(
int argc,
char const** argv)
61 std::cerr <<
"FHiCL configuration file path required as first argument!" << std::endl;
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!"; }
Prov const * Provider() const
Return the specified provider (throws if not available)
BEGIN_PROLOG could also be cerr
Class holding a configuration for a test environment.
Helper functions for support of DetectorClocksService in LArSoft tests.
Prov * SimpleProviderSetup()
Oversimplified provider setup.
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.
void SetConfigurationPath(std::string path)
Sets the path to the configuration file.
Implementation of detinfo::DetectorClocks interface with fixed settings from configuration.
int main(int argc, char **argv)
Base class for unit tests using FHiCL configuration.
void SetServiceParameterSetPath(std::string service_name, std::string path)
Sets the FHiCL path for the configuration of a test algorithm.
void SetMainTesterParameterSetPath(std::string path)
Sets the FHiCL path for the configuration of the main test algorithm.
BEGIN_PROLOG could also be cout