#include <TotemTimingConversions.h>
Public Member Functions | |
const float | getTimeOfFirstSample (const TotemTimingDigi &digi) const |
std::vector< float > | getTimeSamples (const TotemTimingDigi &digi) const |
const float | getTriggerTime (const TotemTimingDigi &digi) const |
std::vector< float > | getVoltSamples (const TotemTimingDigi &digi) const |
void | openCalibrationFile (const std::string &calibrationFile="/dev/null") |
TotemTimingConversions () | |
TotemTimingConversions (const std::string &calibrationFile) | |
Private Attributes | |
std::string | calibrationFile_ |
bool | calibrationFileOk_ |
Static Private Attributes | |
static const float | SAMPIC_ADC_V = 1. / 256 |
static const int | SAMPIC_DEFAULT_OFFSET = 30 |
static const int | SAMPIC_MAX_NUMBER_OF_SAMPLES = 64 |
static const float | SAMPIC_SAMPLING_PERIOD_NS = 1. / 7.8 |
Definition at line 18 of file TotemTimingConversions.h.
TotemTimingConversions::TotemTimingConversions | ( | ) |
Definition at line 21 of file TotemTimingConversions.cc.
TotemTimingConversions::TotemTimingConversions | ( | const std::string & | calibrationFile | ) |
Definition at line 26 of file TotemTimingConversions.cc.
const float TotemTimingConversions::getTimeOfFirstSample | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 48 of file TotemTimingConversions.cc.
References TotemTimingDigi::getCellInfo(), TotemTimingDigi::getEventInfo(), TotemTimingDigi::getFPGATimestamp(), TotemTimingEventInfo::getL1ALatency(), TotemTimingEventInfo::getL1ATimestamp(), TotemTimingEventInfo::getOffsetOfSamples(), TotemTimingDigi::getTimestampA(), TotemTimingDigi::getTimestampB(), SAMPIC_DEFAULT_OFFSET, SAMPIC_MAX_NUMBER_OF_SAMPLES, SAMPIC_SAMPLING_PERIOD_NS, and cond::timestamp.
Referenced by getTimeSamples(), and getTriggerTime().
std::vector< float > TotemTimingConversions::getTimeSamples | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 98 of file TotemTimingConversions.cc.
References calibrationFileOk_, TotemTimingDigi::getNumberOfSamples(), getTimeOfFirstSample(), mps_fire::i, SAMPIC_SAMPLING_PERIOD_NS, and ntuplemaker::time.
Referenced by TotemTimingRecHitProducerAlgorithm::build().
const float TotemTimingConversions::getTriggerTime | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 83 of file TotemTimingConversions.cc.
References TotemTimingDigi::getEventInfo(), TotemTimingEventInfo::getOffsetOfSamples(), getTimeOfFirstSample(), SAMPIC_MAX_NUMBER_OF_SAMPLES, and SAMPIC_SAMPLING_PERIOD_NS.
Referenced by TotemTimingRecHitProducerAlgorithm::build().
std::vector< float > TotemTimingConversions::getVoltSamples | ( | const TotemTimingDigi & | digi | ) | const |
Definition at line 112 of file TotemTimingConversions.cc.
References calibrationFileOk_, data, TotemTimingDigi::getSamplesBegin(), TotemTimingDigi::getSamplesEnd(), and SAMPIC_ADC_V.
Referenced by TotemTimingRecHitProducerAlgorithm::build().
void TotemTimingConversions::openCalibrationFile | ( | const std::string & | calibrationFile = "/dev/null" | ) |
Definition at line 31 of file TotemTimingConversions.cc.
References calibrationFile_, and calibrationFileOk_.
|
private |
Definition at line 40 of file TotemTimingConversions.h.
Referenced by openCalibrationFile().
|
private |
Definition at line 39 of file TotemTimingConversions.h.
Referenced by getTimeSamples(), getVoltSamples(), and openCalibrationFile().
|
staticprivate |
Definition at line 35 of file TotemTimingConversions.h.
Referenced by getVoltSamples().
|
staticprivate |
Definition at line 37 of file TotemTimingConversions.h.
Referenced by getTimeOfFirstSample().
|
staticprivate |
Definition at line 36 of file TotemTimingConversions.h.
Referenced by getTimeOfFirstSample(), and getTriggerTime().
|
staticprivate |
Definition at line 34 of file TotemTimingConversions.h.
Referenced by getTimeOfFirstSample(), getTimeSamples(), and getTriggerTime().