art service managing detinfo::DetectorClocksStandard
.
More...
#include <DetectorClocksServiceStandard.h>
Public Member Functions | |
DetectorClocksServiceStandard (fhicl::ParameterSet const &pset, art::ActivityRegistry ®) | |
Public Member Functions inherited from detinfo::DetectorClocksService | |
virtual | ~DetectorClocksService ()=default |
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 |
Additional Inherited Members | |
Public Types inherited from detinfo::DetectorClocksService | |
using | provider_type = detinfo::DetectorClocks |
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.
detinfo::DetectorClocksServiceStandard::DetectorClocksServiceStandard | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 35 of file DetectorClocksServiceStandard.cc.
|
overrideprivatevirtual |
Implements detinfo::DetectorClocksService.
Definition at line 129 of file DetectorClocksServiceStandard.cc.
|
inlineoverrideprivatevirtual |
Implements detinfo::DetectorClocksService.
Definition at line 96 of file DetectorClocksServiceStandard.h.
|
private |
Definition at line 51 of file DetectorClocksServiceStandard.cc.
|
private |
Definition at line 44 of file DetectorClocksServiceStandard.cc.
|
private |
Definition at line 104 of file DetectorClocksServiceStandard.h.
|
private |
Definition at line 105 of file DetectorClocksServiceStandard.h.