11 , fTrigModuleName (
"")
100 bool result = !
ps.get_if_present(
"module_label", s);
103 result = result &&
ps.get_if_present(
fConfigName.at(i).c_str(),
d);
113 <<
"fConfigValues contents: ";
std::vector< double > fConfigValue
std::vector< std::string > fConfigName
ElecClock fExternalClock
External clock.
const double kDEFAULT_FREQUENCY_TRIGGER
Default Trigger clock speed in MHz.
virtual double TPCTick2TrigTime(double tick) const
Given TPC time-tick (waveform index), returns time [ns] w.r.t. trigger time stamp.
bool IsRightConfig(const fhicl::ParameterSet &ps) const
Internal function used to search for the right configuration set in the data file.
double fTriggerTime
Trigger time in [ns].
const double kDEFAULT_FRAME_PERIOD
Default Frame period in nano-second.
const double kDEFAULT_MC_CLOCK_T0
Default G4 reference time in nano-second.
void ApplyParams()
Internal function to apply loaded parameters to member attributes.
double fFramePeriod
Frame period.
virtual double TriggerOffsetTPC() const
const double kDEFAULT_FREQUENCY_TPC
Default TPC clock speed in MHz.
bool Update(uint64_t ts=0)
double fBeamGateTime
BeamGate time in [ns].
double fG4RefTime
Electronics clock counting start time in G4 time frame [us].
virtual double TPCG4Time2Tick(double g4time) const
Given G4 time returns electronics clock count [tdc].
double fTriggerOffsetTPC
Time offset from trigger to TPC readout start.
bool Configure(fhicl::ParameterSet const &pset)
ElecClock fTriggerClock
Trigger clock.
DetectorClocksStandardGAr()
T get(std::string const &key) const
General LArSoft Utilities.
static constexpr double ps
const double kDEFAULT_FREQUENCY_EXTERNAL
Default External clock speed in MHz.
const double kDEFAULT_TRIG_OFFSET_TPC
Default TPC readout start time offset from trigger in nano-second.
General GArSoft Utilities.
ElecClock fTPCClock
TPC clock.
#define MF_LOG_VERBATIM(category)
double Frequency() const
Frequency in MHz.
virtual double TPCTDC2Tick(double tdc) const
Given electronics clock count [tdc] returns TPC time-tick.
std::string fTrigModuleName
virtual double TPCTick2TDC(double tick) const
Given TPC time-tick (waveform index), returns electronics clock count [tdc].
virtual double TPCTick2BeamTime(double tick) const
Given TPC time-tick (waveform index), returns time [ns] w.r.t. beam gate time.