9 #ifndef LARDATAALG_DETECTORINFO_DETECTORCLOCKS_H 10 #define LARDATAALG_DETECTORINFO_DETECTORCLOCKS_H 320 virtual std::vector<std::string>
ConfigNames()
const = 0;
356 virtual double TPCTime()
const = 0;
437 virtual const ::detinfo::ElecClock&
TPCClock()
const = 0;
453 virtual ::detinfo::ElecClock
TPCClock(
double time)
const = 0;
672 virtual double Time2Tick(
double time)
const = 0;
787 virtual double OpticalTick2TDC(
double tick,
size_t sample,
size_t frame)
const = 0;
809 virtual double OpticalTick2Time(
double tick,
size_t sample,
size_t frame)
const = 0;
853 virtual double ExternalTick2TDC(
double tick,
size_t sample,
size_t frame)
const = 0;
874 virtual double ExternalTick2Time(
double tick,
size_t sample,
size_t frame)
const = 0;
965 #endif // LARDATAALG_DETECTORINFO_DETECTORCLOCKS_H virtual double TPCTDC2Tick(double tdc) const =0
Given electronics clock count [tdc] returns TPC time-tick.
virtual const ::detinfo::ElecClock & TPCClock() const =0
Lends a constant TPC clock with time set to trigger time.
virtual double BeamGateTime() const =0
Beam gate opening time (in electronics time frame) [µs].
virtual double TriggerTime() const =0
Harware trigger time (in electronics time frame) [µs].
virtual double TriggerOffsetTPC() const =0
Time offset from hardware trigger to TPC electronics start time.
virtual double OpticalG4Time2TDC(double g4time) const =0
Converts a simulation time into optical electronics time ticks.
virtual const detinfo::ElecClock & TriggerClock() const =0
Lends a constant trigger clock with time set to trigger time.
virtual double TPCTick2Time(double tick) const =0
Converts a TPC electronics tick into electronics time [µs].
virtual double OpticalTick2BeamTime(double tick, size_t sample, size_t frame) const =0
Converts an optical time tick into a beam gate time [µs].
virtual double TPCG4Time2Tick(double g4time) const =0
Converts simulation time into a TPC electronics time tick.
virtual double TPCTick2BeamTime(double tick) const =0
Converts a TPC time (in ticks) into a beam gate time [µs].
virtual ~DetectorClocks()=default
virtual double TPCTime() const =0
Returns the TPC electronics start time in electronics time.
virtual std::vector< double > ConfigValues() const =0
virtual double OpticalTick2TrigTime(double tick, size_t sample, size_t frame) const =0
Converts an optical time tick into a trigger time [µs].
General LArSoft Utilities.
virtual double G4ToElecTime(double g4_time) const =0
Given a simulation time [ns], converts it into electronics time [µs].
virtual const detinfo::ElecClock & ExternalClock() const =0
Lends a constant external clock with time set to trigger time.
Conversion of times between different formats and references.
virtual double OpticalTick2Time(double tick, size_t sample, size_t frame) const =0
Converts an optical time tick into time from the first optical frame [µs].
virtual double ExternalG4Time2TDC(double g4time) const =0
Converts a simulation time into external electronics time ticks.
virtual double TPCG4Time2TDC(double g4time) const =0
Converts simulation time into a electronics time tick.
virtual double TPCTick2TDC(double tick) const =0
Converts a TPC time tick into a electronics time tick.
virtual double ExternalTick2TDC(double tick, size_t sample, size_t frame) const =0
Given External time-tick (waveform index), sample and frame number, returns time electronics clock co...
virtual double ExternalTick2BeamTime(double tick, size_t sample, size_t frame) const =0
Converts an external time tick into a beam gate time [µs].
virtual const detinfo::ElecClock & OpticalClock() const =0
Lends a constant optical clock with time set to trigger time.
virtual double OpticalTick2TDC(double tick, size_t sample, size_t frame) const =0
Converts an optical time tick into ticks from the first optical frame.
Class def header for a class ElecClock.
virtual std::vector< std::string > ConfigNames() const =0
virtual double TPCTick2TrigTime(double tick) const =0
Converts a TPC time (in ticks) into a trigger time [µs].
Class representing the time measured by an electronics clock.
virtual double ExternalTick2Time(double tick, size_t sample, size_t frame) const =0
Converts an external time tick into time from the first external frame [µs].
virtual double ExternalTick2TrigTime(double tick, size_t sample, size_t frame) const =0
Converts an external time tick into a trigger time [µs].
DetectorClocks & operator=(const DetectorClocks &)=delete
virtual double Time2Tick(double time) const =0