17 calibration_(calibration), mergeTimePeaks_(mergeTimePeaks),
18 calibrationFunction_(calibration_.
formula())
27 if (offsetOfSamples == 0)
34 int cell0TimeClock = timestamp +
43 float firstCellTimeInstant = (digi.
getCellInfo() < offsetOfSamples)
68 if (offsetOfSamples == 0)
91 for (
unsigned int i = 0;
i <
time.size(); ++
i)
102 std::vector<float>
data;
111 for (
const auto& sample : digi.
getSamples()) {
117 <<
"Invalid calibrations retrieved for Sampic digi" 118 <<
" (" << db <<
", " << sampic <<
", " << channel <<
", " << sample_cell <<
")!";
TotemTimingEventInfo getEventInfo() const
static constexpr unsigned long CELL0_MASK
double timeOffset(int key1, int key2, int key3, int key4=-1) const
std::vector< float > voltSamples(const TotemTimingDigi &digi) const
unsigned int getTimestampA() const
reco::FormulaEvaluator calibrationFunction_
static constexpr float SAMPIC_SAMPLING_PERIOD_NS
static constexpr float SAMPIC_ADC_V
std::vector< double > parameters(int key1, int key2, int key3, int key4) const
std::vector< uint8_t > getSamples() const
float triggerTime(const TotemTimingDigi &digi) const
unsigned int getFPGATimestamp() const
TotemTimingConversions(bool mergeTimePeaks, const PPSTimingCalibration &calibration)
static constexpr int SAMPIC_DEFAULT_OFFSET
unsigned int getL1ALatency() const
static constexpr int SAMPIC_MAX_NUMBER_OF_SAMPLES
unsigned int getTimestampB() const
float timePrecision(const TotemTimingDigi &digi) const
unsigned int getCellInfo() const
unsigned int getNumberOfSamples() const
float timeOfFirstSample(const TotemTimingDigi &digi) const
std::vector< float > timeSamples(const TotemTimingDigi &digi) const
unsigned int getL1ATimestamp() const
unsigned int getHardwareChannelId() const
PPSTimingCalibration calibration_
char data[epos_bytes_allocation]
unsigned int getHardwareBoardId() const
unsigned int getHardwareSampicId() const
unsigned int getOffsetOfSamples() const
double timePrecision(int key1, int key2, int key3, int key4=-1) const
static constexpr int ACCEPTED_TIME_RADIUS