#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 22 of file TotemTimingConversions.h.
TotemTimingConversions::TotemTimingConversions | ( | bool | mergeTimePeaks, |
const PPSTimingCalibration & | calibration | ||
) |
Definition at line 16 of file TotemTimingConversions.cc.
float TotemTimingConversions::timeOfFirstSample | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 24 of file TotemTimingConversions.cc.
References ACCEPTED_TIME_RADIUS, calibration_, CELL0_MASK, TotemTimingDigi::getCellInfo(), TotemTimingDigi::getEventInfo(), TotemTimingDigi::getFPGATimestamp(), TotemTimingDigi::getHardwareBoardId(), TotemTimingDigi::getHardwareChannelId(), TotemTimingDigi::getHardwareSampicId(), TotemTimingEventInfo::getL1ALatency(), TotemTimingEventInfo::getL1ATimestamp(), TotemTimingEventInfo::getOffsetOfSamples(), TotemTimingDigi::getTimestampA(), TotemTimingDigi::getTimestampB(), mergeTimePeaks_, SAMPIC_DEFAULT_OFFSET, SAMPIC_MAX_NUMBER_OF_SAMPLES, SAMPIC_SAMPLING_PERIOD_NS, lumiQTWidget::t, PPSTimingCalibration::timeOffset(), and cond::timestamp.
Referenced by timeSamples(), and triggerTime().
float TotemTimingConversions::timePrecision | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 77 of file TotemTimingConversions.cc.
References calibration_, TotemTimingDigi::getHardwareBoardId(), TotemTimingDigi::getHardwareChannelId(), TotemTimingDigi::getHardwareSampicId(), and PPSTimingCalibration::timePrecision().
std::vector< float > TotemTimingConversions::timeSamples | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 88 of file TotemTimingConversions.cc.
References TotemTimingDigi::getNumberOfSamples(), mps_fire::i, SAMPIC_SAMPLING_PERIOD_NS, ntuplemaker::time, and timeOfFirstSample().
float TotemTimingConversions::triggerTime | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 65 of file TotemTimingConversions.cc.
References TotemTimingDigi::getEventInfo(), TotemTimingEventInfo::getOffsetOfSamples(), SAMPIC_MAX_NUMBER_OF_SAMPLES, SAMPIC_SAMPLING_PERIOD_NS, and timeOfFirstSample().
std::vector< float > TotemTimingConversions::voltSamples | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 100 of file TotemTimingConversions.cc.
References calibration_, calibrationFunction_, data, reco::FormulaEvaluator::evaluate(), TotemTimingDigi::getCellInfo(), TotemTimingDigi::getHardwareBoardId(), TotemTimingDigi::getHardwareChannelId(), TotemTimingDigi::getHardwareSampicId(), TotemTimingDigi::getSamples(), reco::FormulaEvaluator::numberOfParameters(), reco::FormulaEvaluator::numberOfVariables(), PPSTimingCalibration::parameters(), SAMPIC_ADC_V, SAMPIC_MAX_NUMBER_OF_SAMPLES, and simplePhotonAnalyzer_cfi::sample.
|
staticprivate |
Definition at line 38 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
private |
Definition at line 41 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample(), timePrecision(), and voltSamples().
|
private |
Definition at line 43 of file TotemTimingConversions.h.
Referenced by voltSamples().
|
staticprivate |
Definition at line 39 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
private |
Definition at line 42 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
staticprivate |
Definition at line 35 of file TotemTimingConversions.h.
Referenced by voltSamples().
|
staticprivate |
Definition at line 37 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample().
|
staticprivate |
Definition at line 36 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample(), triggerTime(), and voltSamples().
|
staticprivate |
Definition at line 34 of file TotemTimingConversions.h.
Referenced by timeOfFirstSample(), timeSamples(), and triggerTime().