#include <TotemTimingDigi.h>
Public Member Functions | |
void | addSample (const uint8_t sampleValue) |
unsigned int | getCellInfo () const |
TotemTimingEventInfo | getEventInfo () const |
unsigned int | getFPGATimestamp () const |
unsigned int | getHardwareBoardId () const |
unsigned int | getHardwareChannelId () const |
unsigned int | getHardwareId () const |
Return digi values number. More... | |
unsigned int | getHardwareSampicId () const |
unsigned int | getNumberOfSamples () const |
int | getSampleAt (const unsigned int i) const |
std::vector< uint8_t > | getSamples () const |
std::vector< uint8_t >::const_iterator | getSamplesBegin () const |
std::vector< uint8_t >::const_iterator | getSamplesEnd () const |
unsigned int | getTimestampA () const |
unsigned int | getTimestampB () const |
bool | operator== (const TotemTimingDigi &digi) const |
Digis are equal if they have all the same values, NOT checking the samples! More... | |
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) |
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 (const TotemTimingDigi &digi) | |
TotemTimingDigi () | |
~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 18 of file TotemTimingDigi.cc.
TotemTimingDigi::TotemTimingDigi | ( | ) |
Definition at line 23 of file TotemTimingDigi.cc.
|
inline |
|
inline |
|
inline |
Definition at line 68 of file TotemTimingDigi.h.
References cellInfo_.
Referenced by operator<<(), TotemTimingConversions::timeOfFirstSample(), and TotemTimingConversions::voltSamples().
|
inline |
Definition at line 101 of file TotemTimingDigi.h.
References totemTimingEventInfo_.
Referenced by operator<(), operator<<(), TotemTimingConversions::timeOfFirstSample(), and TotemTimingConversions::triggerTime().
|
inline |
Definition at line 53 of file TotemTimingDigi.h.
References fpgaTimestamp_.
Referenced by operator<<(), and TotemTimingConversions::timeOfFirstSample().
|
inline |
Definition at line 38 of file TotemTimingDigi.h.
References hwId_.
Referenced by operator<<(), TotemTimingConversions::timeOfFirstSample(), TotemTimingConversions::timePrecision(), and TotemTimingConversions::voltSamples().
|
inline |
Definition at line 48 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 33 of file TotemTimingDigi.h.
References hwId_.
Referenced by operator<(), and operator<<().
|
inline |
Definition at line 43 of file TotemTimingDigi.h.
References hwId_.
Referenced by operator<<(), TotemTimingConversions::timeOfFirstSample(), TotemTimingConversions::timePrecision(), and TotemTimingConversions::voltSamples().
|
inline |
Definition at line 88 of file TotemTimingDigi.h.
References samples_.
Referenced by operator<<(), and TotemTimingConversions::timeSamples().
|
inline |
|
inline |
Definition at line 73 of file TotemTimingDigi.h.
References samples_.
Referenced by TotemTimingConversions::voltSamples().
|
inline |
|
inline |
|
inline |
Definition at line 58 of file TotemTimingDigi.h.
References timestampA_.
Referenced by operator<<(), and TotemTimingConversions::timeOfFirstSample().
|
inline |
Definition at line 63 of file TotemTimingDigi.h.
References timestampB_.
Referenced by operator<<(), and TotemTimingConversions::timeOfFirstSample().
bool TotemTimingDigi::operator== | ( | const TotemTimingDigi & | digi | ) | const |
Digis are equal if they have all the same values, NOT checking the samples!
Definition at line 29 of file TotemTimingDigi.cc.
References cellInfo_, fpgaTimestamp_, hwId_, samples_, timestampA_, and timestampB_.
Referenced by ~TotemTimingDigi().
|
inline |
|
inline |
Definition at line 167 of file TotemTimingDigi.h.
References totemTimingEventInfo_.
|
inline |
|
inline |
|
inline |
|
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 108 of file TotemTimingDigi.h.
References hwId_.
|
inline |
|
inline |
|
inline |
Definition at line 151 of file TotemTimingDigi.h.
References hcalTTPDigis_cfi::samples, and samples_.
|
inline |
|
inline |
|
private |
Definition at line 177 of file TotemTimingDigi.h.
Referenced by getCellInfo(), operator==(), and setCellInfo().
|
private |
Definition at line 174 of file TotemTimingDigi.h.
Referenced by getFPGATimestamp(), operator==(), and setFPGATimestamp().
|
private |
Definition at line 173 of file TotemTimingDigi.h.
Referenced by getHardwareBoardId(), getHardwareChannelId(), getHardwareId(), getHardwareSampicId(), operator==(), setHardwareBoardId(), setHardwareChannelId(), setHardwareId(), and setHardwareSampicId().
|
private |
Definition at line 179 of file TotemTimingDigi.h.
Referenced by addSample(), getNumberOfSamples(), getSampleAt(), getSamples(), getSamplesBegin(), getSamplesEnd(), operator==(), setSampleAt(), and setSamples().
|
private |
Definition at line 175 of file TotemTimingDigi.h.
Referenced by getTimestampA(), operator==(), and setTimestampA().
|
private |
Definition at line 176 of file TotemTimingDigi.h.
Referenced by getTimestampB(), operator==(), and setTimestampB().
|
private |
Definition at line 181 of file TotemTimingDigi.h.
Referenced by getEventInfo(), and setEventInfo().