All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpaceChargeServiceICARUS_service.cc
Go to the documentation of this file.
1 /////////////////////////////////////////////////////////////////////////////
2 // SpaceChargeServiceICARUS_service.cc; brief implementation of class for storing/accessing space charge distortions for ICARUS
3 // Based on SpaceChargeServiceSBND_service.cc
4 // rlazur@fnal.gov
5 /////////////////////////////////////////////////////////////////////////////
6 
7 // C++ language includes
8 #include <iostream>
9 
10 // LArSoft includes
12 
13 // ROOT includes
14 #include "TMath.h"
15 
16 // Framework includes
17 #include "art/Framework/Services/Registry/ServiceDefinitionMacros.h"
18 #include "messagefacility/MessageLogger/MessageLogger.h"
19 #include "cetlib_except/exception.h"
20 
21 //-----------------------------------------------
22 spacecharge::SpaceChargeServiceICARUS::SpaceChargeServiceICARUS(fhicl::ParameterSet const& pset, art::ActivityRegistry &reg)
23 {
24  fProp.reset(new spacecharge::SpaceChargeICARUS(pset));
25 
26  reg.sPreBeginRun.watch(this, &SpaceChargeServiceICARUS::preBeginRun);
27 }
28 
29 //----------------------------------------------
31 {
32  fProp->Update(run.id().run());
33 }
34 
35 //------------------------------------------------
36 void spacecharge::SpaceChargeServiceICARUS::reconfigure(fhicl::ParameterSet const& pset)
37 {
38  fProp->Configure(pset);
39  return;
40 }
41 
42 //------------------------------------------------
SpaceChargeServiceICARUS(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
std::unique_ptr< spacecharge::SpaceChargeICARUS > fProp
void reconfigure(fhicl::ParameterSet const &pset)