SpaceChargeServiceProtoDUNE_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 // ROOT includes
20 #include "TMath.h"
21 
22 // Framework includes
24 #include "cetlib_except/exception.h"
25 
26 //-----------------------------------------------
28 {
30 
31  auto const detProp = art::ServiceHandle<detinfo::DetectorPropertiesService const>()->DataForJob();
32  fProp->Configure(pset,detProp);
33 
35 }
36 
37 //----------------------------------------------
39 {
40  fProp->Update(run.id().run());
41 }
42 
43 //------------------------------------------------
45 {
46  auto const detProp = art::ServiceHandle<detinfo::DetectorPropertiesService const>()->DataForJob();
47  fProp->Configure(pset,detProp);
48  return;
49 }
50 
51 //------------------------------------------------
RunID id() const
Definition: Run.cc:17
RunNumber_t run() const
Definition: RunID.h:64
Definition: Run.h:17
SpaceChargeServiceProtoDUNE(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
std::unique_ptr< spacecharge::SpaceChargeProtoDUNE > fProp
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)