#include <TotemTimingConversions.h>
Public Member Functions | |
float | timeOfFirstSample (const TotemTimingDigi &digi) const |
float | timePrecision (const TotemTimingDigi &digi) const |
std::vector< float > | timeSamples (const TotemTimingDigi &digi) const |
TotemTimingConversions (double sampicSamplingPeriodNs, bool mergeTimePeaks, const PPSTimingCalibration &calibration) | |
float | triggerTime (const TotemTimingDigi &digi) const |
std::vector< float > | voltSamples (const TotemTimingDigi &digi) const |
Private Attributes | |
PPSTimingCalibration | calibration_ |
reco::FormulaEvaluator | calibrationFunction_ |
bool | mergeTimePeaks_ |
double | sampicSamplingPeriodNs_ |
Static Private Attributes | |
static constexpr int | ACCEPTED_TIME_RADIUS = 4 |
static constexpr unsigned long | CELL0_MASK = 0xfffffff000 |
static constexpr float | SAMPIC_ADC_V = 1. / 256 |
static constexpr int | SAMPIC_MAX_NUMBER_OF_SAMPLES = 64 |
Definition at line 23 of file TotemTimingConversions.h.
TotemTimingConversions::TotemTimingConversions | ( | double | sampicSamplingPeriodNs, |
bool | mergeTimePeaks, | ||
const PPSTimingCalibration & | calibration | ||
) |
Definition at line 17 of file TotemTimingConversions.cc.
float TotemTimingConversions::timeOfFirstSample | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 27 of file TotemTimingConversions.cc.
References ACCEPTED_TIME_RADIUS, calibration_, CELL0_MASK, TotemTimingDigi::cellInfo(), EcalCondDB::db, TotemTimingDigi::eventInfo(), TotemTimingDigi::fpgaTimestamp(), TotemTimingDigi::hardwareBoardId(), TotemTimingDigi::hardwareChannelId(), TotemTimingDigi::hardwareSampicId(), TotemTimingEventInfo::l1ALatency(), TotemTimingEventInfo::l1ATimestamp(), mergeTimePeaks_, TotemTimingEventInfo::offsetOfSamples(), SAMPIC_MAX_NUMBER_OF_SAMPLES, sampicSamplingPeriodNs_, submitPVValidationJobs::t, PPSTimingCalibration::timeOffset(), cond::timestamp, TotemTimingDigi::timestampA(), and TotemTimingDigi::timestampB().
Referenced by timeSamples(), and triggerTime().
float TotemTimingConversions::timePrecision | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 70 of file TotemTimingConversions.cc.
References calibration_, EcalCondDB::db, TotemTimingDigi::hardwareBoardId(), TotemTimingDigi::hardwareChannelId(), TotemTimingDigi::hardwareSampicId(), and PPSTimingCalibration::timePrecision().
std::vector< float > TotemTimingConversions::timeSamples | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 79 of file TotemTimingConversions.cc.
References mps_fire::i, TotemTimingDigi::numberOfSamples(), sampicSamplingPeriodNs_, hcalRecHitTable_cff::time, and timeOfFirstSample().
float TotemTimingConversions::triggerTime | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 63 of file TotemTimingConversions.cc.
References TotemTimingDigi::eventInfo(), TotemTimingEventInfo::offsetOfSamples(), SAMPIC_MAX_NUMBER_OF_SAMPLES, sampicSamplingPeriodNs_, and timeOfFirstSample().
std::vector< float > TotemTimingConversions::voltSamples | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 89 of file TotemTimingConversions.cc.
References calibration_, calibrationFunction_, TotemTimingDigi::cellInfo(), data, EcalCondDB::db, reco::FormulaEvaluator::evaluate(), TotemTimingDigi::hardwareBoardId(), TotemTimingDigi::hardwareChannelId(), TotemTimingDigi::hardwareSampicId(), reco::FormulaEvaluator::numberOfParameters(), reco::FormulaEvaluator::numberOfVariables(), PPSTimingCalibration::parameters(), SAMPIC_ADC_V, SAMPIC_MAX_NUMBER_OF_SAMPLES, ecalGpuTask_cfi::sample, and TotemTimingDigi::samples().
|
staticprivate |
Definition at line 36 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
private |
Definition at line 39 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample(), timePrecision(), and voltSamples().
|
private |
Definition at line 42 of file TotemTimingConversions.h.
Referenced by voltSamples().
|
staticprivate |
Definition at line 37 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
private |
Definition at line 41 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
staticprivate |
Definition at line 34 of file TotemTimingConversions.h.
Referenced by voltSamples().
|
staticprivate |
Definition at line 35 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample(), triggerTime(), and voltSamples().
|
private |
Definition at line 40 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample(), timeSamples(), and triggerTime().