All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpaceChargeServiceSBND.h
Go to the documentation of this file.
1 #ifndef SPACECHARGESERVICESBND_H
2 #define SPACECHARGESERVICESBND_H
3 
4 #include "fhiclcpp/ParameterSet.h"
5 #include "art/Framework/Services/Registry/ActivityRegistry.h"
6 #include "art/Framework/Services/Registry/ServiceHandle.h"
7 #include "art/Framework/Services/Registry/ServiceDeclarationMacros.h"
8 #include "art/Framework/Principal/Run.h"
11 
12 
13 namespace spacecharge
14 {
16  {
17  public:
18  SpaceChargeServiceSBND(fhicl::ParameterSet const& pset, art::ActivityRegistry& reg);
19 
20  void reconfigure(fhicl::ParameterSet const& pset);
21  void preBeginRun(const art::Run& run);
22 
23 
24  virtual const provider_type* provider() const override
25  {
26  return fProp.get();
27  }
28 
29  private:
30 
31  std::unique_ptr<spacecharge::SpaceChargeSBND> fProp;
32 
33  }; // class SpaceChargeServiceSBND
34 } //namespace spacecharge
35 DECLARE_ART_SERVICE_INTERFACE_IMPL(spacecharge::SpaceChargeServiceSBND, spacecharge::SpaceChargeService, LEGACY)
36 #endif // SPACECHARGESERVICESBND_H
std::unique_ptr< spacecharge::SpaceChargeSBND > fProp
SpaceChargeServiceSBND(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
virtual const provider_type * provider() const override
void reconfigure(fhicl::ParameterSet const &pset)