All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
testing::SimpleEnvironmentSetupClass< detinfo::LArPropertiesStandard, TestEnv > Struct Template Reference

Environment setup helper for LArPropertiesStandard. More...

#include <LArPropertiesStandardTestHelpers.h>

Static Public Member Functions

static
detinfo::LArPropertiesStandard
setup (TestEnv &env)
 

Detailed Description

template<typename TestEnv>
struct testing::SimpleEnvironmentSetupClass< detinfo::LArPropertiesStandard, TestEnv >

Environment setup helper for LArPropertiesStandard.

Template Parameters
TestEnvtype of environment to set up
See Also
simpleEnvironmentSetup

A service provider is set up in the environment, associated with the types detinfo::LArPropertiesStandard and detinfo::LArProperties. Its configuration is read from "services.LArPropertiesService".

The environment is expected to expose an interface equivalent to the one of testing::TesterEnvironment.

This class specialisation enables the support of SimpleProviderSetup() methods of testing::TesterEnvironment. It should be possible to set up a testing environment by calling:

env.SimpleProviderSetup<detinfo::LArPropertiesStandard>();

The provider will be available from any of these two calls:

env.Provider<detinfo::LArPropertiesStandard>();
env.Provider<detinfo::LArProperties>();

Definition at line 103 of file LArPropertiesStandardTestHelpers.h.

Member Function Documentation

template<typename TestEnv >
static detinfo::LArPropertiesStandard* testing::SimpleEnvironmentSetupClass< detinfo::LArPropertiesStandard, TestEnv >::setup ( TestEnv &  env)
inlinestatic

Definition at line 104 of file LArPropertiesStandardTestHelpers.h.

105  {
108  (env, "LArPropertiesService");
109  }
Prov * SimpleEnvironmentStandardSetupByName(TestEnv &env, std::string service_name)
Basic implementation of a environment setup helper.
Properties related to liquid argon environment in the detector.

The documentation for this struct was generated from the following file: