Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larevt
larevt
SpaceChargeServices
SpaceChargeServiceStandard.cc
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// \file SpaceChargeStandard.cxx
3
//
4
// \brief implementation of class for storing/accessing space charge distortions
5
//
6
// \author mrmooney@bnl.gov
7
//
8
////////////////////////////////////////////////////////////////////////
9
10
// C++ language includes
11
12
// LArSoft includes
13
#include "
larevt/SpaceChargeServices/SpaceChargeServiceStandard.h
"
14
15
// Framework includes
16
#include "art/Framework/Principal/Run.h"
// for Run
17
#include "art/Framework/Services/Registry/ActivityRegistry.h"
18
#include "art/Framework/Services/Registry/GlobalSignal.h"
19
#include "canvas/Persistency/Provenance/RunID.h"
20
#include "fhiclcpp/ParameterSet.h"
21
22
//-----------------------------------------------
23
spacecharge::SpaceChargeServiceStandard::SpaceChargeServiceStandard
(fhicl::ParameterSet
const
& pset,
24
art::ActivityRegistry& reg)
25
: fProp{pset}
26
{
27
reg.sPreBeginRun.watch(
this
, &
SpaceChargeServiceStandard::preBeginRun
);
28
}
29
30
//----------------------------------------------
31
void
32
spacecharge::SpaceChargeServiceStandard::preBeginRun
(
const
art::Run& run)
33
{
34
fProp.Update(run.run());
35
}
36
37
//------------------------------------------------
38
void
39
spacecharge::SpaceChargeServiceStandard::reconfigure
(fhicl::ParameterSet
const
& pset)
40
{
41
fProp.Configure(pset);
42
}
spacecharge::SpaceChargeServiceStandard::reconfigure
void reconfigure(fhicl::ParameterSet const &pset)
Definition:
SpaceChargeServiceStandard.cc:39
SpaceChargeServiceStandard.h
spacecharge::SpaceChargeServiceStandard::SpaceChargeServiceStandard
SpaceChargeServiceStandard(fhicl::ParameterSet const &pset, art::ActivityRegistry ®)
Definition:
SpaceChargeServiceStandard.cc:23
spacecharge::SpaceChargeServiceStandard::preBeginRun
void preBeginRun(const art::Run &run)
Definition:
SpaceChargeServiceStandard.cc:32
Generated by
1.8.5