9 #ifndef DETINFO_IDETCLOCKS_H 10 #define DETINFO_IDETCLOCKS_H 12 #include "DetectorInfo/ElecClock.h" 53 virtual std::vector<std::string>
ConfigNames()
const = 0;
119 virtual double ExternalTick2TDC(
double tick,
size_t sample,
size_t frame)
const = 0;
131 virtual double ExternalTick2Time(
double tick,
size_t sample,
size_t frame)
const = 0;
DetectorClocks & operator=(const DetectorClocks &)=delete
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 TPCG4Time2Tick(double g4time) const =0
Given G4 time returns electronics clock count [tdc].
virtual double ExternalTick2BeamTime(double tick, size_t sample, size_t frame) const =0
Given External time-tick (waveform index), sample and frame number, returns time [ns] w...
virtual double TPCTDC2Tick(double tdc) const =0
Given electronics clock count [tdc] returns TPC time-tick.
virtual double ExternalG4Time2TDC(double g4time) const =0
Given G4 time [ns], returns corresponding External electronics clock count [tdc]. ...
virtual double ExternalTick2Time(double tick, size_t sample, size_t frame) const =0
Given External time-tick (waveform index), sample and frame number, returns electronics clock [ns]...
virtual double SpillLength() const =0
Duration of spill [ns].
virtual const detinfo::ElecClock & TriggerClock() const =0
Borrow a const Trigger clock with time set to Trigger time [ns].
virtual double TriggerTime() const =0
Trigger electronics clock time in [ns].
virtual double G4ToElecTime(double g4_time) const =0
Given Geant4 time [ns], returns relative time [ns] w.r.t. electronics time T0.
virtual double ExternalTick2TrigTime(double tick, size_t sample, size_t frame) const =0
Given External time-tick (waveform index), sample and frame number, returns time [ns] w...
tick_as<> tick
Tick number, represented by std::ptrdiff_t.
virtual double TPCTick2TrigTime(double tick) const =0
Given TPC time-tick (waveform index), returns time [ns] w.r.t. trigger time stamp.
virtual ~DetectorClocks()=default
General LArSoft Utilities.
virtual double TPCG4Time2TDC(double g4time) const =0
Given G4 time [ns], returns corresponding TPC electronics clock count [tdc].
General GArSoft Utilities.
virtual const detinfo::ElecClock & ExternalClock() const =0
Borrow a const Trigger clock with time set to External Time [ns].
virtual double TriggerOffsetTPC() const =0
virtual double TPCTick2BeamTime(double tick) const =0
Given TPC time-tick (waveform index), returns time [ns] w.r.t. beam gate time.
virtual const ElecClock & TPCClock() const =0
Borrow a const TPC clock with time set to Trigger time [ns].
virtual double BeamGateTime() const =0
Beam gate electronics clock time in [ns].
virtual std::vector< std::string > ConfigNames() const =0
virtual std::vector< double > ConfigValues() const =0
virtual double TPCTick2TDC(double tick) const =0
Given TPC time-tick (waveform index), returns electronics clock count [tdc].
virtual double TPCTick2Time(double tick) const =0
Given TPC time-tick (waveform index), returns electronics clock [ns].