8 #ifndef ICARUSALG_UTILITIES_DETECTORCLOCKSHELPERS_H
9 #define ICARUSALG_UTILITIES_DETECTORCLOCKSHELPERS_H
17 #include "art/Framework/Services/Registry/ServiceHandle.h"
22 namespace art {
class Event; }
25 namespace icarus::ns::util {
52 = *(art::ServiceHandle<detinfo::DetectorClocksService const>());
53 return event? detClocks.DataFor(*event): detClocks.DataForJob();
107 #endif // ICARUSALG_UTILITIES_DETECTORCLOCKSHELPERS_H
Interface to detinfo::DetectorClocks.
Contains all timing reference information for the detector.
A class exposing an upgraded interface of detinfo::DetectorClocksData.
detinfo::DetectorClocksData makeDetClockData(art::Event const *event)
Returns a detinfo::DetectorClocksData from DetectorClocksService.
detinfo::DetectorTimings makeDetTimings(art::Event const *event)
Returns a detinfo::DetectorTimings from DetectorClocksService.