SpaceChargeServiceDUNE35t_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SpaceChargeDUNE35t.cxx
3 //
4 // \brief implementation of class for storing/accessing space charge distortions for DUNE 35ton
5 //
6 // \author mrmooney@bnl.gov
7 //
8 ////////////////////////////////////////////////////////////////////////
9 
10 // C++ language includes
11 #include <iostream>
12 
13 // LArSoft includes
15 
16 // ROOT includes
17 #include "TMath.h"
18 
19 // Framework includes
22 #include "cetlib_except/exception.h"
23 
24 //-----------------------------------------------
26 {
27  fProp.reset(new spacecharge::SpaceChargeDUNE35t(pset));
28 
30 }
31 
32 //----------------------------------------------
34 {
35  fProp->Update(run.id().run());
36 }
37 
38 //------------------------------------------------
40 {
41  fProp->Configure(pset);
42  return;
43 }
44 
45 //------------------------------------------------
std::unique_ptr< spacecharge::SpaceChargeDUNE35t > fProp
RunID id() const
Definition: Run.cc:17
void reconfigure(fhicl::ParameterSet const &pset)
RunNumber_t run() const
Definition: RunID.h:64
Definition: Run.h:17
SpaceChargeServiceDUNE35t(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)