22 : calibrationFileOk_(
false), calibrationFile_(
"/dev/null") {}
33 if (calibrationFile!=
"/dev/null")
51 if (offsetOfSamples == 0)
54 float cell0TimeInstant;
55 float firstCellTimeInstant;
61 cell0TimeClock = timestamp +
70 firstCellTimeInstant =
73 firstCellTimeInstant =
78 return firstCellTimeInstant;
86 if (offsetOfSamples == 0)
93 return triggerCellTimeInstant;
104 for (
unsigned int i = 0;
i <
time.size(); ++
i)
114 std::vector<float>
data;
static const float SAMPIC_ADC_V
TotemTimingEventInfo getEventInfo() const
std::vector< float > getTimeSamples(const TotemTimingDigi &digi) const
std::vector< uint8_t >::const_iterator getSamplesBegin() const
std::vector< float > getVoltSamples(const TotemTimingDigi &digi) const
std::vector< uint8_t >::const_iterator getSamplesEnd() const
std::string calibrationFile_
const float getTimeOfFirstSample(const TotemTimingDigi &digi) const
void openCalibrationFile(const std::string &calibrationFile="/dev/null")
unsigned int getTimestampA() const
static const int SAMPIC_DEFAULT_OFFSET
const float getTriggerTime(const TotemTimingDigi &digi) const
static const float SAMPIC_SAMPLING_PERIOD_NS
unsigned int getFPGATimestamp() const
unsigned int getL1ALatency() const
unsigned int getTimestampB() const
unsigned int getCellInfo() const
unsigned int getNumberOfSamples() const
unsigned int getL1ATimestamp() const
char data[epos_bytes_allocation]
static const int SAMPIC_MAX_NUMBER_OF_SAMPLES
unsigned int getOffsetOfSamples() const