SpaceChargeService3x1x1dphase_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SpaceCharge3x1x1dphase.cxx
3 //
4 // \brief implementation of class for storing/accessing space charge distortions for the 3x1x1 detector.
5 // \Adapted from SpaceChargeServiceProtoDUNE_service.cc
6 //
7 // \author kevin.fusshoeller@cern.ch
8 //
9 ////////////////////////////////////////////////////////////////////////
10 
11 // C++ language includes
12 #include <iostream>
13 
14 // LArSoft includes
16 
17 // ROOT includes
18 #include "TMath.h"
19 
20 // Framework includes
23 #include "cetlib_except/exception.h"
24 
25 //-----------------------------------------------
27 {
29 
31 }
32 
33 //----------------------------------------------
35 {
36  fProp->Update(run.id().run());
37 }
38 
39 //------------------------------------------------
41 {
42  fProp->Configure(pset);
43  return;
44 }
45 
46 //------------------------------------------------
RunID id() const
Definition: Run.cc:17
std::unique_ptr< spacecharge::SpaceCharge3x1x1dphase > fProp
RunNumber_t run() const
Definition: RunID.h:64
Definition: Run.h:17
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
SpaceChargeService3x1x1dphase(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)