20 : calibration_(calibration),
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;
99 for (
const auto& sample : digi.
samples()) {
105 <<
"Invalid calibrations retrieved for Sampic digi"
106 <<
" (" << db <<
", " << sampic <<
", " << channel <<
", " << sample_cell <<
")!";
TotemTimingEventInfo eventInfo() const
unsigned int numberOfSamples() const
unsigned int timestampA() const
static constexpr unsigned long CELL0_MASK
unsigned int offsetOfSamples() const
double timeOffset(int key1, int key2, int key3, int key4=-1) const
unsigned int l1ALatency() const
std::vector< float > voltSamples(const TotemTimingDigi &digi) const
reco::FormulaEvaluator calibrationFunction_
static constexpr float SAMPIC_ADC_V
std::vector< double > parameters(int key1, int key2, int key3, int key4) const
unsigned int hardwareSampicId() const
float triggerTime(const TotemTimingDigi &digi) const
std::vector< uint8_t > samples() const
unsigned int l1ATimestamp() const
static constexpr int SAMPIC_MAX_NUMBER_OF_SAMPLES
unsigned int cellInfo() const
float timePrecision(const TotemTimingDigi &digi) const
unsigned int hardwareBoardId() const
float timeOfFirstSample(const TotemTimingDigi &digi) const
std::vector< float > timeSamples(const TotemTimingDigi &digi) const
unsigned int fpgaTimestamp() const
double sampicSamplingPeriodNs_
PPSTimingCalibration calibration_
char data[epos_bytes_allocation]
TotemTimingConversions(double sampicSamplingPeriodNs, bool mergeTimePeaks, const PPSTimingCalibration &calibration)
unsigned int hardwareChannelId() const
double timePrecision(int key1, int key2, int key3, int key4=-1) const
static constexpr int ACCEPTED_TIME_RADIUS
unsigned int timestampB() const