SpaceChargeServiceProtoDUNEdp_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SpaceChargeProtoDUNE.cxx
3 //
4 // \brief implementation of class for storing/accessing space charge distortions for ProtoDUNE
5 //
6 // \author mrmooney@bnl.gov
7 //
8 ////////////////////////////////////////////////////////////////////////
9 
10 // C++ language includes
11 #include <iostream>
12 
13 // LArSoft includes
18 
19 
20 // ROOT includes
21 #include "TMath.h"
22 
23 // Framework includes
25 #include "cetlib_except/exception.h"
26 
27 //-----------------------------------------------
29 {
31 
32  auto const detProp = art::ServiceHandle<detinfo::DetectorPropertiesService const>()->DataForJob();
33  fProp->Configure(pset,detProp);
34 
36 }
37 
38 //----------------------------------------------
40 {
41  fProp->Update(run.id().run());
42 }
43 
44 //------------------------------------------------
46 {
47  auto const detProp = art::ServiceHandle<detinfo::DetectorPropertiesService const>()->DataForJob();
48  fProp->Configure(pset,detProp);
49  return;
50 }
51 
52 //------------------------------------------------
RunID id() const
Definition: Run.cc:17
RunNumber_t run() const
Definition: RunID.h:64
std::unique_ptr< spacecharge::SpaceChargeProtoDUNEdp > fProp
Definition: Run.h:17
virtual void reconfigure(fhicl::ParameterSet const &pset)
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
SpaceChargeServiceProtoDUNEdp(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)