LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
art service managing detinfo::DetectorClocksStandard
.
More...
#include "DetectorClocksServiceStandard.h"
Public Types | |
using | provider_type = detinfo::DetectorClocks |
Public Member Functions | |
DetectorClocksServiceStandard (fhicl::ParameterSet const &pset, art::ActivityRegistry ®) | |
Private Member Functions | |
void | preBeginRun (art::Run const &run) |
void | postOpenFile (std::string const &filename) |
DetectorClocksData | DataForJob () const override |
DetectorClocksData | DataFor (art::Event const &e) const override |
Private Attributes | |
DetectorClocksStandard | fClocks |
bool | fInheritClockConfig |
art service managing detinfo::DetectorClocksStandard
.
This art service manages LArSoft's service provider detinfo::DetectorClocksStandard
, which implements detinfo::DetectorClocks
interface.
For information about functionality of the service, see the documentation of its interface, detinfo::DetectorClocks
. For information of the configuration, see also detinfo::DetectorClocksStandard
.
The configuration parameters are documented in the service provider implementation: detinfo::DetectorClocksStandard
.
This service manager honors the InheritClockConfig
configuration option in the following way:
The "past jobs" are the jobs that have produced the input file, and whose configuration is stored by art in the input file itself. The check and reconfiguration is performed on each new input file.
The trigger and beam gate times are set by this service before each event is processed. The logic is the following:
raw::Trigger
) data product with input tag TriggerName()
(from the configuration), that data product is read and the trigger and beam gate times stored in it are imported in the current service provider configuration; if there are more than one raw::Trigger
objects in the data product, an exception is thrownThe first set up happens on opening the first run in the first input file. Accessing this service before (e.g. during beginJob()
phase) yields undefined behaviour.
Definition at line 87 of file DetectorClocksServiceStandard.h.
|
inherited |
Definition at line 23 of file DetectorClocksService.h.
detinfo::DetectorClocksServiceStandard::DetectorClocksServiceStandard | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 35 of file DetectorClocksServiceStandard.cc.
References fInheritClockConfig, postOpenFile(), and preBeginRun().
|
overrideprivatevirtual |
Implements detinfo::DetectorClocksService.
Definition at line 125 of file DetectorClocksServiceStandard.cc.
References detinfo::detectorClocksStandardDataFor(), and fClocks.
|
inlineoverrideprivatevirtual |
Implements detinfo::DetectorClocksService.
Definition at line 95 of file DetectorClocksServiceStandard.h.
References e.
|
private |
Definition at line 49 of file DetectorClocksServiceStandard.cc.
References detinfo::DetectorClocksStandard::ApplyParams(), detinfo::DetectorClocksStandard::ConfigNames(), detinfo::DetectorClocksStandard::ConfigValues(), fClocks, file, fInheritClockConfig, detinfo::DetectorClocksStandard::IsRightConfig(), detinfo::kConfigTypeMax, fhicl::ParameterSet::make(), art::rootNames::metaDataTreeName(), and detinfo::DetectorClocksStandard::SetConfigValue().
Referenced by DetectorClocksServiceStandard().
|
private |
Definition at line 43 of file DetectorClocksServiceStandard.cc.
References detinfo::DetectorClocksStandard::ApplyParams(), and fClocks.
Referenced by DetectorClocksServiceStandard().
|
private |
Definition at line 99 of file DetectorClocksServiceStandard.h.
Referenced by DataFor(), postOpenFile(), and preBeginRun().
|
private |
Definition at line 100 of file DetectorClocksServiceStandard.h.
Referenced by DetectorClocksServiceStandard(), and postOpenFile().