7 fInheritClockConfig(false),
95 bool result = !ps.get_if_present(
"module_label", s);
98 result = result && ps.get_if_present(
fConfigName.at(i).c_str(),
d);
107 std::cout <<
"fConfigValues contents: "<<std::endl;
112 std::cout<<std::endl;
123 <<
"TPC start tick [tdc] : " <<
TPCTick2TDC(0) <<std::endl
126 <<
"TPC tdc=0 in tick : " <<
TPCTDC2Tick(0) << std::endl
::detinfo::ElecClock fTPCClock
TPC clock.
bool Configure(fhicl::ParameterSet const &pset)
bool IsRightConfig(const fhicl::ParameterSet &ps) const
Internal function used to search for the right configuration set in the data file.
virtual double TPCTDC2Tick(double tdc) const override
Given electronics clock count [tdc] returns TPC time-tick.
const double kDEFAULT_MC_CLOCK_T0
Default G4 reference time in micro-second.
std::vector< std::string > fConfigName
const double kDEFAULT_FREQUENCY_EXTERNAL
Default External clock speed in MHz.
::detinfo::ElecClock fOpticalClock
Optical clock.
::detinfo::ElecClock fTriggerClock
Trigger clock.
virtual void SetTriggerTime(double trig_time, double beam_time)
Setter for trigger times.
double fTriggerTime
Trigger time in [us].
std::vector< double > fConfigValue
double fG4RefTime
Electronics clock counting start time in G4 time frame [us].
const double kDEFAULT_FREQUENCY_OPTICAL
Default Optical clock speed in MHz.
const double kDEFAULT_FRAME_PERIOD
Default Frame period in micro-second.
void ApplyParams()
Internal function to apply loaded parameters to member attributes.
const double kDEFAULT_FREQUENCY_TRIGGER
Default Trigger clock speed in MHz.
T get(std::string const &key) const
virtual double TPCTick2TDC(double tick) const override
Given TPC time-tick (waveform index), returns electronics clock count [tdc].
virtual std::vector< double > ConfigValues() const override
double fBeamGateTime
BeamGate time in [us].
virtual double TriggerOffsetTPC() const override
double fTriggerOffsetTPC
Time offset from trigger to TPC readout start.
bool Update(uint64_t ts=0)
General LArSoft Utilities.
virtual double TriggerTime() const override
Trigger electronics clock time in [us].
void SetDefaultTriggerTime()
Sets trigger and beam gate time from default configuration values.
const double kDEFAULT_FREQUENCY_TPC
Default TPC clock speed in MHz.
const double kDEFAULT_TRIG_OFFSET_TPC
Default TPC readout start time offset from trigger in micro-second.
::detinfo::ElecClock fExternalClock
External clock.
Implementation of detinfo::DetectorClocks interface with fixed settings from configuration.
virtual double TPCG4Time2Tick(double g4time) const override
Given G4 time returns electronics clock count [tdc].
const double kDEFAULT_TRIG_TIME
Default TriggerTime in micro-second.
double fFramePeriod
Frame period.
Class representing the time measured by an electronics clock.
virtual double TPCTick2BeamTime(double tick) const override
Given TPC time-tick (waveform index), returns time [us] w.r.t. beam gate time.
virtual double Time2Tick(double time) const override
Returns the specified electronics time in TDC electronics ticks.
std::string fTrigModuleName
double Frequency() const
Frequency in MHz.
const double kDEFAULT_BEAM_TIME
Default BeamGateTime in micro-second.
virtual double TPCTick2TrigTime(double tick) const override
Given TPC time-tick (waveform index), returns time [us] w.r.t. trigger time stamp.