All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpaceChargeServiceICARUS.h
Go to the documentation of this file.
1 #ifndef SPACECHARGESERVICEICARUS_H
2 #define SPACECHARGESERVICEICARUS_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  SpaceChargeServiceICARUS(fhicl::ParameterSet const& pset, art::ActivityRegistry& reg\
19  );
20 
21  void reconfigure(fhicl::ParameterSet const& pset);
22  void preBeginRun(const art::Run& run);
23 
24 
25  virtual const provider_type* provider() const override
26  {
27  return fProp.get();
28  }
29 
30  private:
31 
32  std::unique_ptr<spacecharge::SpaceChargeICARUS> fProp;
33 
34  }; // class SpaceChargeServiceICARUS
35 } //namespace spacecharge
36 DECLARE_ART_SERVICE_INTERFACE_IMPL(spacecharge::SpaceChargeServiceICARUS, spacecharge::SpaceChargeService, LEGACY)
37 #endif // SPACECHARGESERVICEICARUS_H
SpaceChargeServiceICARUS(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
std::unique_ptr< spacecharge::SpaceChargeICARUS > fProp
virtual const provider_type * provider() const override
void reconfigure(fhicl::ParameterSet const &pset)