10 #ifndef LARDATAALG_DETECTORINFO_DETECTORCLOCKSSTANDARDDATAFOR_H 11 #define LARDATAALG_DETECTORINFO_DETECTORCLOCKSSTANDARDDATAFOR_H 19 #include "cetlib_except/exception.h" 66 template <
typename Event>
77 std::tie(trig_time, beam_time) = *times;
82 g4_ref_time -= trig_time;
83 g4_ref_time += *sim_trig_time;
85 return detClocks.
DataFor(g4_ref_time, trig_time, beam_time);
90 #endif // LARDATA_DETECTORINFO_DETECTORCLOCKSSTANDARDTRIGGERLOADER_H
DetectorClocksData DataFor(double const g4_ref_time, double const trigger_time, double const beam_time) const override
Returns a complete detinfo::DetectorClocksData object.
std::optional< double > g4ref_time_for_event(art::InputTag const &triggerTag, Event const &event)
Loads DetectorClocksStandard G4Ref correction times.
std::string const & TrigModuleName() const
Returns the input tag of the trigger data product.
std::vector< double > const & ConfigValues() const override
std::string G4RefCorrTrigModuleName() const
Returns the input tag of the trigger data product for G4Ref correctons.
General LArSoft Utilities.
detinfo::DetectorClocksData detectorClocksStandardDataFor(detinfo::DetectorClocksStandard const &detClocks, Event const &event)
Returns DetectorClocksData tuned on the specified event.
Contains all timing reference information for the detector.
Implementation of detinfo::DetectorClocks interface with fixed settings from configuration.
Functions to load trigger time in detinfo::DetectorClocksStandard.
std::optional< std::pair< double, double > > trigger_times_for_event(art::InputTag const &triggerTag, Event const &event)
Loads DetectorClocksStandard trigger times.
Event finding and building.