LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
ShowerCalibrationGaloreFromPIDTestHelpers.h
Go to the documentation of this file.
1 
14 #ifndef LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALOREFROMPIDTESTHELPERS_H
15 #define LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALOREFROMPIDTESTHELPERS_H
16 
20 
21 // C/C++ standard libraries
22 #include <string>
23 
24 
25 namespace testing {
26 
27  // BEGIN ShowerCalibrationGalore ---------------------------------------------
30 
31  // instantiation of the standard ProviderSetupClass for this provider
32  template
33  struct ProviderSetupClass<lar::example::ShowerCalibrationGaloreFromPID>;
34 
35 
61  template <typename TestEnv>
64  {
65  static lar::example::ShowerCalibrationGaloreFromPID* setup(TestEnv& env)
66  {
68  lar::example::ShowerCalibrationGaloreFromPID, // provider class
69  lar::example::ShowerCalibrationGalore, // providet interface
70  TestEnv
71  >
72  (env, "ShowerCalibrationGaloreService"); // configuration key
73  }
74  }; // SimpleEnvironmentSetupClass<ShowerCalibrationGaloreFromPID>
75 
77  // END ShowerCalibrationGalore -----------------------------------------------
78 
79 } // namespace testing
80 
81 
82 #endif // LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_PROVIDERS_SHOWERCALIBRATIONGALOREFROMPIDTESTHELPERS_H
LArSoft test utilities.
Helper classes to be used together with LArSoft&#39;s unit test.
Environment helper to set up a service provider.
Shower calibration service provider correcting according to PID.
Prov * SimpleEnvironmentStandardSetupByName(TestEnv &env, std::string service_name)
Basic implementation of a environment setup helper.
Shower energy calibration according to particle type.
Interface for a shower calibration service provider.