LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
ShowerCalibrationGaloreScaleService.h
Go to the documentation of this file.
1 
11 #ifndef LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_SERVICES_SHOWERCALIBRATIONGALORESCALESERVICE_H
12 #define LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_SERVICES_SHOWERCALIBRATIONGALORESCALESERVICE_H
13 
14 
18 #include "larcore/CoreUtils/ServiceUtil.h" // lar::providerFrom() (for includers)
19 
20 // framework libraries
22 #include "art/Framework/Services/Registry/ServiceMacros.h" // (for includers)
23 
24 // C/C++ standard libraries
25 #include <memory> // std::unique_ptr<>, std::make_unique()
26 
27 
28 namespace lar {
29  namespace example {
30 
63  {
64 
65  public:
68 
71 
73  using Parameters
75 
76 
80  : prov(std::make_unique<ShowerCalibrationGaloreScale>(config()))
81  {}
82 
83 
84  private:
85  std::unique_ptr<ShowerCalibrationGaloreScale> prov;
86 
88  virtual ShowerCalibrationGalore const* do_provider() const override
89  { return prov.get(); }
90 
91  }; // ShowerCalibrationGaloreScaleService
92 
93  } // namespace example
94 } // namespace lar
95 
96 
100  LEGACY
101  )
102 
103 
104 #endif // LAREXAMPLES_SERVICES_SHOWERCALIBRATIONGALORE_SERVICES_SHOWERCALIBRATIONGALORESCALESERVICE_H
105 
ShowerCalibrationGaloreScaleService(Parameters const &config, art::ActivityRegistry &)
Constructor (using a configuration table)
Utilities related to art service access.
A shower calibration service provider applying a uniform scale.
Shower calibration service provider applying a uniform energy scale.
A shower calibration art service returning a single factor.
Interface for a shower calibration art service.
virtual ShowerCalibrationGalore const * do_provider() const override
Returns a constant pointer to the service provider.
LArSoft-specific namespace.
std::unique_ptr< ShowerCalibrationGaloreScale > prov
service provider
Service returning a provider interface.
lar::ServiceProviderInterfaceWrapper< ShowerCalibrationGalore > ShowerCalibrationGaloreService
Interface for a shower calibration art service.
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)
Interface for a shower calibration service provider.