LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
LArPropertiesServiceStandard.cc
Go to the documentation of this file.
1
#include "
lardata/DetectorInfoServices/LArPropertiesServiceStandard.h
"
2
3
#include "
art/Framework/Principal/Run.h
"
4
5
//------------------------------------------------
7
//-----------------------------------------------
8
detinfo::LArPropertiesServiceStandard::LArPropertiesServiceStandard
(
Parameters
const
& config,
9
art::ActivityRegistry
& reg)
10
: fProp{config.
get_PSet
()}
11
{
12
reg.sPreBeginRun.watch(
this
, &
LArPropertiesServiceStandard::preBeginRun
);
13
}
14
15
//----------------------------------------------
16
void
detinfo::LArPropertiesServiceStandard::preBeginRun
(
art::Run
const
& run)
17
{
18
fProp
.
Update
(run.
run
());
19
}
detinfo::LArPropertiesStandard::Update
bool Update(uint64_t ts=0)
Definition:
LArPropertiesStandard.cxx:263
art::Run::run
RunNumber_t run() const
Definition:
Run.cc:27
detinfo::LArPropertiesServiceStandard::LArPropertiesServiceStandard
LArPropertiesServiceStandard(Parameters const ¶ms, art::ActivityRegistry ®)
Definition:
LArPropertiesServiceStandard.cc:8
art::Run
Definition:
Run.h:37
detinfo::LArPropertiesServiceStandard::preBeginRun
void preBeginRun(art::Run const &run)
Definition:
LArPropertiesServiceStandard.cc:16
art::ServiceTable::get_PSet
fhicl::ParameterSet const & get_PSet() const
Definition:
ServiceTable.h:40
detinfo::LArPropertiesServiceStandard::fProp
detinfo::LArPropertiesStandard fProp
Definition:
LArPropertiesServiceStandard.h:34
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
art::ServiceTable
Definition:
ServiceTable.h:25
Run.h
LArPropertiesServiceStandard.h
lardata
v09_16_03
source
lardata
DetectorInfoServices
LArPropertiesServiceStandard.cc
Generated on Thu May 2 2024 20:59:35 for LArSoft by
1.8.11