LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
SpaceChargeServiceStandard_service.cc
Go to the documentation of this file.
1 // \file SpaceChargeStandard.cxx
3 //
4 // \brief implementation of class for storing/accessing space charge distortions
5 //
6 // \author mrmooney@bnl.gov
7 //
9 
10 // C++ language includes
11 #include <iostream>
12 
13 // LArSoft includes
15 
16 // ROOT includes
17 #include "TMath.h"
18 
19 // Framework includes
21 #include "cetlib_except/exception.h"
22 
23 //-----------------------------------------------
25 {
26  fProp.reset(new spacecharge::SpaceChargeStandard(pset));
27 
29 }
30 
31 //----------------------------------------------
33 {
34  fProp->Update(run.id().run());
35 }
36 
37 //------------------------------------------------
39 {
40  fProp->Configure(pset);
41  return;
42 }
43 
44 //------------------------------------------------
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)
RunNumber_t run() const
Definition: RunID.h:63
std::unique_ptr< spacecharge::SpaceChargeStandard > fProp
Definition: Run.h:30
RunID const & id() const
Definition: Run.h:41
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
SpaceChargeServiceStandard(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
virtual void reconfigure(fhicl::ParameterSet const &pset) override