Set up a detinfo::DetectorPropertiesStandard from a parameter set. More...
#include <DetectorPropertiesStandardTestHelpers.h>
Static Public Member Functions | |
static std::unique_ptr < detinfo::DetectorPropertiesStandard > | setup (fhicl::ParameterSet const &pset, detinfo::DetectorPropertiesStandard::providers_type const &providers) |
Set up a detinfo::DetectorPropertiesStandard from a parameter set.
pset | parameter set for the configuration |
providers | pack of providers needed by DetectorPropertiesService |
This class specialisation enables the support of SetupProvider()
methods of testing::TesterEnvironment
. The resulting setup call will be something like:
env.SetupProviderFor <detinfo::DetectorPropertiesStandard, detinfo::DetectorProperties> (pset, env.ProviderPackFor<detinfo::DetectorPropertiesStandard>());
(note the use of SetupProviderFor()
to register the service also as an implementation of DetectorProperties interface). This implicitly assumes that whatever service providers detinfo::DetectorPropertiesStandard needs, they have already been set up in the environment.
Definition at line 55 of file DetectorPropertiesStandardTestHelpers.h.
|
inlinestatic |
Definition at line 58 of file DetectorPropertiesStandardTestHelpers.h.