LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
testing::SimpleEnvironmentSetupClass< detinfo::LArPropertiesStandard, TestEnv > Struct Template Reference

Environment setup helper for LArPropertiesStandard. More...

#include "LArPropertiesStandardTestHelpers.h"

Static Public Member Functions

static detinfo::LArPropertiesStandardsetup (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 100 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 101 of file LArPropertiesStandardTestHelpers.h.

References testing::SimpleEnvironmentStandardSetupByName().

102  {
105  TestEnv>(env, "LArPropertiesService");
106  }
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: