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 84 of file DetectorClocksServiceStandard.h.
detinfo::DetectorClocksServiceStandard::DetectorClocksServiceStandard | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | reg | ||
) |
Definition at line 34 of file DetectorClocksServiceStandard_service.cc.
|
overrideprivatevirtual |
Implements detinfo::DetectorClocksService.
Definition at line 128 of file DetectorClocksServiceStandard_service.cc.
|
inlineoverrideprivatevirtual |
Implements detinfo::DetectorClocksService.
Definition at line 93 of file DetectorClocksServiceStandard.h.
|
private |
Definition at line 50 of file DetectorClocksServiceStandard_service.cc.
|
private |
Definition at line 43 of file DetectorClocksServiceStandard_service.cc.
|
private |
Definition at line 101 of file DetectorClocksServiceStandard.h.
|
private |
Definition at line 102 of file DetectorClocksServiceStandard.h.