21 sampicSamplingPeriodNs_(sampicSamplingPeriodNs),
22 mergeTimePeaks_(mergeTimePeaks),
23 calibrationFunction_(calibration_.
formula()) {}
40 float firstCellTimeInstant =
81 for (
unsigned int i = 0;
i <
time.size(); ++
i)
90 std::vector<float>
data;
105 <<
"Invalid calibrations retrieved for Sampic digi" 106 <<
" (" <<
db <<
", " << sampic <<
", " << channel <<
", " << sample_cell <<
")!";
unsigned int timestampA() const
unsigned int l1ALatency() const
double timeOffset(int key1, int key2, int key3, int key4=-1) const
unsigned int timestampB() const
unsigned int numberOfSamples() const
static constexpr unsigned long CELL0_MASK
unsigned int fpgaTimestamp() const
reco::FormulaEvaluator calibrationFunction_
static constexpr float SAMPIC_ADC_V
unsigned int l1ATimestamp() const
unsigned int offsetOfSamples() const
std::vector< float > voltSamples(const TotemTimingDigi &digi) const
unsigned int hardwareSampicId() const
std::vector< uint8_t > samples() const
static constexpr int SAMPIC_MAX_NUMBER_OF_SAMPLES
float timeOfFirstSample(const TotemTimingDigi &digi) const
double timePrecision(int key1, int key2, int key3, int key4=-1) const
float triggerTime(const TotemTimingDigi &digi) const
std::vector< double > parameters(int key1, int key2, int key3, int key4) const
unsigned int hardwareChannelId() const
double sampicSamplingPeriodNs_
TotemTimingEventInfo eventInfo() const
PPSTimingCalibration calibration_
unsigned int hardwareBoardId() const
char data[epos_bytes_allocation]
unsigned int cellInfo() const
std::vector< float > timeSamples(const TotemTimingDigi &digi) const
float timePrecision(const TotemTimingDigi &digi) const
TotemTimingConversions(double sampicSamplingPeriodNs, bool mergeTimePeaks, const PPSTimingCalibration &calibration)
static constexpr int ACCEPTED_TIME_RADIUS