#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 (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_ |
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_DEFAULT_OFFSET = 30 |
static constexpr int | SAMPIC_MAX_NUMBER_OF_SAMPLES = 64 |
static constexpr float | SAMPIC_SAMPLING_PERIOD_NS = 1. / 7.695 |
Definition at line 21 of file TotemTimingConversions.h.
TotemTimingConversions::TotemTimingConversions | ( | bool | mergeTimePeaks, |
const PPSTimingCalibration & | calibration | ||
) |
Definition at line 15 of file TotemTimingConversions.cc.
float TotemTimingConversions::timeOfFirstSample | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 20 of file TotemTimingConversions.cc.
References ACCEPTED_TIME_RADIUS, calibration_, CELL0_MASK, TotemTimingDigi::cellInfo(), dqmiodatasetharvest::db, TotemTimingDigi::eventInfo(), TotemTimingDigi::fpgaTimestamp(), TotemTimingDigi::hardwareBoardId(), TotemTimingDigi::hardwareChannelId(), TotemTimingDigi::hardwareSampicId(), TotemTimingEventInfo::l1ALatency(), TotemTimingEventInfo::l1ATimestamp(), mergeTimePeaks_, TotemTimingEventInfo::offsetOfSamples(), SAMPIC_DEFAULT_OFFSET, SAMPIC_MAX_NUMBER_OF_SAMPLES, SAMPIC_SAMPLING_PERIOD_NS, 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 67 of file TotemTimingConversions.cc.
References calibration_, dqmiodatasetharvest::db, TotemTimingDigi::hardwareBoardId(), TotemTimingDigi::hardwareChannelId(), TotemTimingDigi::hardwareSampicId(), and PPSTimingCalibration::timePrecision().
std::vector< float > TotemTimingConversions::timeSamples | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 76 of file TotemTimingConversions.cc.
References mps_fire::i, TotemTimingDigi::numberOfSamples(), SAMPIC_SAMPLING_PERIOD_NS, ntuplemaker::time, and timeOfFirstSample().
float TotemTimingConversions::triggerTime | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 57 of file TotemTimingConversions.cc.
References TotemTimingDigi::eventInfo(), TotemTimingEventInfo::offsetOfSamples(), SAMPIC_MAX_NUMBER_OF_SAMPLES, SAMPIC_SAMPLING_PERIOD_NS, and timeOfFirstSample().
std::vector< float > TotemTimingConversions::voltSamples | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 86 of file TotemTimingConversions.cc.
References calibration_, calibrationFunction_, TotemTimingDigi::cellInfo(), data, dqmiodatasetharvest::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, simplePhotonAnalyzer_cfi::sample, and TotemTimingDigi::samples().
|
staticconstexprprivate |
Definition at line 43 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
private |
Definition at line 46 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample(), timePrecision(), and voltSamples().
|
private |
Definition at line 48 of file TotemTimingConversions.h.
Referenced by voltSamples().
|
staticconstexprprivate |
Definition at line 44 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
private |
Definition at line 47 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
staticconstexprprivate |
Definition at line 40 of file TotemTimingConversions.h.
Referenced by voltSamples().
|
staticconstexprprivate |
Definition at line 42 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
staticconstexprprivate |
Definition at line 41 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample(), triggerTime(), and voltSamples().
|
staticconstexprprivate |
Definition at line 39 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample(), timeSamples(), and triggerTime().