LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MagneticFieldServiceStandard_service.cc
Go to the documentation of this file.
1 // \file MagneticFieldServiceStandard_service.cc
3 //
4 // \brief implementation of class for storing/accessing magnetic fields
5 //
6 // \author ebrianne@fnal.gov
7 //
9 
12 
18 #include "fhiclcpp/ParameterSet.h"
19 
20 namespace mag {
22  public:
24 
25  private:
26  void reconfigure(fhicl::ParameterSet const& pset);
27  void preBeginRun(const art::Run& run);
28 
29  const provider_type* provider() const override { return &fProp; }
30 
32  };
33 }
34 
37  SHARED)
38 
39 
40 #include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
41 // \file MagneticFieldServiceStandard_service.cc
43 //
44 // \brief implementation of class for storing/accessing magnetic fields
45 //
46 // \author ebrianne@fnal.gov
47 //
49 
50 // C++ language includes
51 
52 //Framework includes
53 
54 //-----------------------------------------------
56 : fProp{pset}
57 {
58  reg.sPreBeginRun.watch(this, &MagneticFieldServiceStandard::preBeginRun);
59 }
60 
61 //----------------------------------------------
63 {
64 
65 }
66 
67 //------------------------------------------------
69 {
70  fProp.reconfigure(pset);
71 }
72 
73 
74 //------------------------------------------------
void reconfigure(fhicl::ParameterSet const &pset)
void reconfigure(fhicl::ParameterSet const &pset)
Definition: Run.h:37
const provider_type * provider() const override
DECLARE_ART_SERVICE_INTERFACE_IMPL(mag::MagneticFieldServiceStandard, mag::MagneticFieldService, SHARED) mag
MagneticFieldServiceStandard(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)