17 : calibration_(calibration), mergeTimePeaks_(mergeTimePeaks), calibrationFunction_(calibration_.
formula()) {}
23 if (offsetOfSamples == 0)
36 float firstCellTimeInstant =
60 if (offsetOfSamples == 0)
79 for (
unsigned int i = 0;
i <
time.size(); ++
i)
88 std::vector<float>
data;
97 for (
const auto& sample : digi.
samples()) {
103 <<
"Invalid calibrations retrieved for Sampic digi" 104 <<
" (" << 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_SAMPLING_PERIOD_NS
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
TotemTimingConversions(bool mergeTimePeaks, const PPSTimingCalibration &calibration)
static constexpr int SAMPIC_DEFAULT_OFFSET
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
PPSTimingCalibration calibration_
char data[epos_bytes_allocation]
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