XYZCalibServiceProtoDUNE_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file XYZCalibProtoDUNE.cxx
3 //
4 // \brief implementation of class for storing/accessing (x,y,z) corrections for ProtoDUNE
5 //
6 // \author jpaley@fnal.gov
7 //
8 ////////////////////////////////////////////////////////////////////////
9 
10 // C++ language includes
11 #include <iostream>
12 
13 // LArSoft includes
15 
16 // Framework includes
19 #include "cetlib_except/exception.h"
20 
21 //-----------------------------------------------
23 {
24  fProp.reset(new calib::XYZCalibProtoDUNE(pset));
25 
27 }
28 
29 //----------------------------------------------
31 {
32  fProp->Update(run.id().run());
33 }
34 
35 //------------------------------------------------
37 {
38  fProp->Configure(pset);
39  return;
40 }
41 
42 //------------------------------------------------
RunID id() const
Definition: Run.cc:17
XYZCalibServiceProtoDUNE(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
RunNumber_t run() const
Definition: RunID.h:64
Definition: Run.h:17
virtual void reconfigure(fhicl::ParameterSet const &pset) override
std::unique_ptr< calib::XYZCalibProtoDUNE > fProp
GlobalSignal< detail::SignalResponseType::FIFO, void(Run const &)> sPreBeginRun
#define DEFINE_ART_SERVICE_INTERFACE_IMPL(svc, iface)