SpaceChargeServiceStandard_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SpaceChargeStandard.cxx
3 //
4 // \brief implementation of class for storing/accessing space charge distortions
5 //
6 // \author mrmooney@bnl.gov
7 //
8 ////////////////////////////////////////////////////////////////////////
9 
10 // C++ language includes
11 
12 // LArSoft includes
15 
16 // Framework includes
17 #include "art/Framework/Principal/Run.h" // for Run
22 
23 //-----------------------------------------------
26  : fProp{pset}
27 {
28  reg.sPreBeginRun.watch(this, &SpaceChargeServiceStandard::preBeginRun);
29 }
30 
31 //----------------------------------------------
32 void
34 {
35  fProp.Update(run.run());
36 }
37 
38 //------------------------------------------------
39 void
41 {
42  fProp.Configure(pset);
43 }
44 
45 //------------------------------------------------
Definition: Run.h:17
RunNumber_t run() const
Definition: DataViewImpl.cc:71
SpaceChargeServiceStandard(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
bool Configure(fhicl::ParameterSet const &pset)
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)