#include <TotemTimingDigi.h>
Public Member Functions | |
void | addSample (const uint8_t sampleValue) |
unsigned int | cellInfo () const |
TotemTimingEventInfo | eventInfo () const |
unsigned int | fpgaTimestamp () const |
unsigned int | hardwareBoardId () const |
unsigned int | hardwareChannelId () const |
unsigned int | hardwareId () const |
Return digi values number. More... | |
unsigned int | hardwareSampicId () const |
unsigned int | numberOfSamples () const |
bool | operator== (const TotemTimingDigi &digi) const |
Digis are equal if they have all the same values, NOT checking the samples! More... | |
int | sampleAt (const unsigned int i) const |
std::vector< uint8_t > | samples () const |
std::vector< uint8_t >::const_iterator | samplesBegin () const |
std::vector< uint8_t >::const_iterator | samplesEnd () const |
void | setCellInfo (const uint16_t cellInfo) |
void | setEventInfo (const TotemTimingEventInfo &totemTimingEventInfo) |
void | setFPGATimestamp (const uint64_t fpgaTimestamp) |
void | setHardwareBoardId (const unsigned int boardId) |
void | setHardwareChannelId (const unsigned int channelId) |
void | setHardwareId (const uint8_t hwId) |
void | setHardwareSampicId (const unsigned int sampicId) |
void | setSampleAt (const unsigned int i, const uint8_t sampleValue) |
void | setSamples (const std::vector< uint8_t > &samples) |
void | setTimestampA (const uint16_t timestampA) |
void | setTimestampB (const uint16_t timestampB) |
unsigned int | timestampA () const |
unsigned int | timestampB () const |
TotemTimingDigi () | |
TotemTimingDigi (const TotemTimingDigi &digi) | |
TotemTimingDigi (const uint8_t hwId, const uint64_t fpgaTimestamp, const uint16_t timestampA, const uint16_t timestampB, const uint16_t cellInfo, const std::vector< uint8_t > &samples, const TotemTimingEventInfo &totemTimingEventInfo) | |
~TotemTimingDigi () | |
Private Attributes | |
uint16_t | cellInfo_ |
uint64_t | fpgaTimestamp_ |
uint8_t | hwId_ |
std::vector< uint8_t > | samples_ |
uint16_t | timestampA_ |
uint16_t | timestampB_ |
TotemTimingEventInfo | totemTimingEventInfo_ |
Digi Class for CTPPS Timing Detector
Definition at line 19 of file TotemTimingDigi.h.
TotemTimingDigi::TotemTimingDigi | ( | const uint8_t | hwId, |
const uint64_t | fpgaTimestamp, | ||
const uint16_t | timestampA, | ||
const uint16_t | timestampB, | ||
const uint16_t | cellInfo, | ||
const std::vector< uint8_t > & | samples, | ||
const TotemTimingEventInfo & | totemTimingEventInfo | ||
) |
Definition at line 10 of file TotemTimingDigi.cc.
TotemTimingDigi::TotemTimingDigi | ( | const TotemTimingDigi & | digi | ) |
Definition at line 25 of file TotemTimingDigi.cc.
TotemTimingDigi::TotemTimingDigi | ( | ) |
Definition at line 34 of file TotemTimingDigi.cc.
|
inline |
Definition at line 30 of file TotemTimingDigi.h.
|
inline |
|
inline |
Definition at line 52 of file TotemTimingDigi.h.
References cellInfo_.
Referenced by operator<<(), setCellInfo(), TotemTimingConversions::timeOfFirstSample(), and TotemTimingConversions::voltSamples().
|
inline |
Definition at line 69 of file TotemTimingDigi.h.
References totemTimingEventInfo_.
Referenced by operator<(), operator<<(), TotemTimingConversions::timeOfFirstSample(), and TotemTimingConversions::triggerTime().
|
inline |
Definition at line 46 of file TotemTimingDigi.h.
References fpgaTimestamp_.
Referenced by operator<<(), setFPGATimestamp(), and TotemTimingConversions::timeOfFirstSample().
|
inline |
Definition at line 40 of file TotemTimingDigi.h.
References hwId_.
Referenced by operator<<(), TotemTimingConversions::timeOfFirstSample(), TotemTimingConversions::timePrecision(), and TotemTimingConversions::voltSamples().
|
inline |
Definition at line 44 of file TotemTimingDigi.h.
References hwId_.
Referenced by operator<<(), TotemTimingConversions::timeOfFirstSample(), TotemTimingConversions::timePrecision(), and TotemTimingConversions::voltSamples().
|
inline |
Return digi values number.
Hardware Id formatted as: bits 0-3 Channel Id, bit 4 Sampic Id, bits 5-7 Digitizer Board Id
Definition at line 38 of file TotemTimingDigi.h.
References hwId_.
Referenced by operator<(), and operator<<().
|
inline |
Definition at line 42 of file TotemTimingDigi.h.
References hwId_.
Referenced by operator<<(), TotemTimingConversions::timeOfFirstSample(), TotemTimingConversions::timePrecision(), and TotemTimingConversions::voltSamples().
|
inline |
Definition at line 60 of file TotemTimingDigi.h.
References samples_.
Referenced by operator<<(), and TotemTimingConversions::timeSamples().
bool TotemTimingDigi::operator== | ( | const TotemTimingDigi & | digi | ) | const |
Digis are equal if they have all the same values, NOT checking the samples!
Definition at line 37 of file TotemTimingDigi.cc.
References cellInfo_, fpgaTimestamp_, hwId_, samples_, timestampA_, and timestampB_.
|
inline |
|
inline |
Definition at line 54 of file TotemTimingDigi.h.
References samples_.
Referenced by setSamples(), and TotemTimingConversions::voltSamples().
|
inline |
|
inline |
|
inline |
Definition at line 96 of file TotemTimingDigi.h.
References cellInfo(), and cellInfo_.
|
inline |
Definition at line 107 of file TotemTimingDigi.h.
References totemTimingEventInfo_.
|
inline |
|
inline |
Definition at line 75 of file TotemTimingDigi.h.
References amcDumpToRaw_cfi::boardId, and hwId_.
|
inline |
Definition at line 85 of file TotemTimingDigi.h.
References hwId_.
|
inline |
Set digi values Hardware Id formatted as: bits 0-3 Channel Id, bit 4 Sampic Id, bits 5-7 Digitizer Board Id
Definition at line 73 of file TotemTimingDigi.h.
References hwId_.
|
inline |
Definition at line 80 of file TotemTimingDigi.h.
References hwId_.
|
inline |
Definition at line 102 of file TotemTimingDigi.h.
References mps_fire::i, and samples_.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 48 of file TotemTimingDigi.h.
References timestampA_.
Referenced by operator<<(), setTimestampA(), and TotemTimingConversions::timeOfFirstSample().
|
inline |
Definition at line 50 of file TotemTimingDigi.h.
References timestampB_.
Referenced by operator<<(), setTimestampB(), and TotemTimingConversions::timeOfFirstSample().
|
private |
Definition at line 116 of file TotemTimingDigi.h.
Referenced by cellInfo(), operator==(), and setCellInfo().
|
private |
Definition at line 113 of file TotemTimingDigi.h.
Referenced by fpgaTimestamp(), operator==(), and setFPGATimestamp().
|
private |
Definition at line 112 of file TotemTimingDigi.h.
Referenced by hardwareBoardId(), hardwareChannelId(), hardwareId(), hardwareSampicId(), operator==(), setHardwareBoardId(), setHardwareChannelId(), setHardwareId(), and setHardwareSampicId().
|
private |
Definition at line 118 of file TotemTimingDigi.h.
Referenced by addSample(), numberOfSamples(), operator==(), sampleAt(), samples(), samplesBegin(), samplesEnd(), setSampleAt(), and setSamples().
|
private |
Definition at line 114 of file TotemTimingDigi.h.
Referenced by operator==(), setTimestampA(), and timestampA().
|
private |
Definition at line 115 of file TotemTimingDigi.h.
Referenced by operator==(), setTimestampB(), and timestampB().
|
private |
Definition at line 120 of file TotemTimingDigi.h.
Referenced by eventInfo(), and setEventInfo().