LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
SpaceChargeServiceStandard.h
Go to the documentation of this file.
1 // \file SpaceChargeServiceStandard.h
3 //
4 // \brief header of service for storing/accessing space charge distortions
5 //
6 // \author mrmooney@bnl.gov
7 //
9 #ifndef SPACECHARGESERVICESTANDARD_H
10 #define SPACECHARGESERVICESTANDARD_H
11 
12 #include "fhiclcpp/ParameterSet.h"
19 
20 
21 namespace spacecharge{
23  public:
24 
25  // this enables art to print the configuration help:
26  //using Parameters = art::ServiceTable<spacecharge::SpaceChargeStandard::ConfigurationParameters_t>;
27 
29 
30  virtual void reconfigure(fhicl::ParameterSet const& pset) override;
31  void preBeginRun(const art::Run& run);
32 
33  virtual const provider_type* provider() const override { return fProp.get();}
34 
35  private:
36 
37  std::unique_ptr<spacecharge::SpaceChargeStandard> fProp;
38 
39  }; // class SpaceChargeServiceStandard
40 } //namespace spacecharge
42 #endif // SPACECHARGESERVICESTANDARD_H
virtual const provider_type * provider() const override
std::unique_ptr< spacecharge::SpaceChargeStandard > fProp
Definition: Run.h:30
SpaceChargeServiceStandard(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
virtual void reconfigure(fhicl::ParameterSet const &pset) override
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)