#include <Phase2TrackerFEDDAQTrailer.h>
Public Member Functions | |
bool | badSourceID () const |
bool | cBit () const |
uint16_t | crc () const |
const uint8_t * | data () const |
uint8_t | eoeNibble () const |
uint32_t | eventLengthIn64BitWords () const |
uint32_t | eventLengthInBytes () const |
uint8_t | eventStatusNibble () const |
bool | fBit () const |
FEDDAQTrailer () | |
FEDDAQTrailer (const uint8_t *trailer) | |
FEDDAQTrailer (const uint32_t eventLengthIn64BitWords, const uint16_t crc=0, const FEDTTSBits ttsBits=TTS_READY, const bool slinkTransmissionError=false, const bool badFEDID=false, const bool slinkCRCError=false, const uint8_t eventStatusNibble=0) | |
bool | lastTrailer () const |
void | print (std::ostream &os) const |
bool | rBit () const |
void | setBadSourceIDBit (const bool bitSet) |
void | setCRC (const uint16_t crc) |
void | setEventLengthIn64BitWords (const uint32_t eventLengthIn64BitWords) |
void | setEventStatusNibble (const uint8_t eventStatusNibble) |
void | setSLinkCRCErrorBit (const bool bitSet) |
void | setSLinkTransmissionErrorBit (const bool bitSet) |
void | setTTSBits (const FEDTTSBits ttsBits) |
bool | slinkCRCError () const |
bool | slinkTransmissionError () const |
bool | tBit () const |
FEDTTSBits | ttsBits () const |
uint8_t | ttsNibble () const |
Private Attributes | |
uint8_t | trailer_ [8] |
Definition at line 29 of file Phase2TrackerFEDDAQTrailer.h.
|
inline |
Definition at line 32 of file Phase2TrackerFEDDAQTrailer.h.
References cBit(), crc(), eoeNibble(), eventLengthIn64BitWords(), and eventLengthInBytes().
Referenced by slinkCRCError().
|
inlineexplicit |
Definition at line 87 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Phase2Tracker::FEDDAQTrailer::FEDDAQTrailer | ( | const uint32_t | eventLengthIn64BitWords, |
const uint16_t | crc = 0 , |
||
const FEDTTSBits | ttsBits = TTS_READY , |
||
const bool | slinkTransmissionError = false , |
||
const bool | badFEDID = false , |
||
const bool | slinkCRCError = false , |
||
const uint8_t | eventStatusNibble = 0 |
||
) |
Definition at line 60 of file Phase2TrackerFEDDAQTrailer.cc.
References setBadSourceIDBit(), setCRC(), setEventLengthIn64BitWords(), setEventStatusNibble(), setSLinkCRCErrorBit(), setSLinkTransmissionErrorBit(), setTTSBits(), and trailer_.
|
inline |
Definition at line 46 of file Phase2TrackerFEDDAQTrailer.h.
References eventStatusNibble(), fBit(), tBit(), ttsBits(), and ttsNibble().
|
inline |
Definition at line 102 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by FEDDAQTrailer(), and slinkTransmissionError().
|
inline |
Definition at line 99 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by Phase2Tracker::Phase2TrackerFEDBuffer::daqCRC(), and FEDDAQTrailer().
|
inline |
Definition at line 123 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by slinkCRCError().
|
inline |
Definition at line 90 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by FEDDAQTrailer().
|
inline |
Definition at line 93 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by Phase2Tracker::Phase2TrackerFEDBuffer::daqEventLengthIn64bitWords(), eventLengthInBytes(), and FEDDAQTrailer().
|
inline |
Definition at line 96 of file Phase2TrackerFEDDAQTrailer.h.
References eventLengthIn64BitWords().
Referenced by Phase2Tracker::Phase2TrackerFEDBuffer::daqEventLengthInBytes(), and FEDDAQTrailer().
|
inline |
Definition at line 108 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by badSourceID().
|
inline |
Definition at line 105 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by badSourceID(), and slinkTransmissionError().
|
inline |
|
inline |
Definition at line 120 of file Phase2TrackerFEDDAQTrailer.h.
References Phase2Tracker::printHex(), and trailer_.
Referenced by slinkCRCError().
|
inline |
Definition at line 117 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by lastTrailer(), and slinkCRCError().
void Phase2Tracker::FEDDAQTrailer::setBadSourceIDBit | ( | const bool | bitSet | ) |
Definition at line 99 of file Phase2TrackerFEDDAQTrailer.cc.
References trailer_.
Referenced by FEDDAQTrailer(), and slinkCRCError().
void Phase2Tracker::FEDDAQTrailer::setCRC | ( | const uint16_t | crc | ) |
Definition at line 87 of file Phase2TrackerFEDDAQTrailer.cc.
References trailer_.
Referenced by FEDDAQTrailer(), and slinkCRCError().
void Phase2Tracker::FEDDAQTrailer::setEventLengthIn64BitWords | ( | const uint32_t | eventLengthIn64BitWords | ) |
Definition at line 80 of file Phase2TrackerFEDDAQTrailer.cc.
References trailer_.
Referenced by FEDDAQTrailer(), and slinkCRCError().
void Phase2Tracker::FEDDAQTrailer::setEventStatusNibble | ( | const uint8_t | eventStatusNibble | ) |
Definition at line 111 of file Phase2TrackerFEDDAQTrailer.cc.
References trailer_.
Referenced by FEDDAQTrailer(), and slinkCRCError().
void Phase2Tracker::FEDDAQTrailer::setSLinkCRCErrorBit | ( | const bool | bitSet | ) |
Definition at line 105 of file Phase2TrackerFEDDAQTrailer.cc.
References trailer_.
Referenced by FEDDAQTrailer(), and slinkCRCError().
void Phase2Tracker::FEDDAQTrailer::setSLinkTransmissionErrorBit | ( | const bool | bitSet | ) |
Definition at line 93 of file Phase2TrackerFEDDAQTrailer.cc.
References trailer_.
Referenced by FEDDAQTrailer(), and slinkCRCError().
void Phase2Tracker::FEDDAQTrailer::setTTSBits | ( | const FEDTTSBits | ttsBits | ) |
Definition at line 116 of file Phase2TrackerFEDDAQTrailer.cc.
References trailer_.
Referenced by FEDDAQTrailer(), and slinkCRCError().
|
inline |
Definition at line 56 of file Phase2TrackerFEDDAQTrailer.h.
References data(), FEDDAQTrailer(), print(), rBit(), setBadSourceIDBit(), setCRC(), setEventLengthIn64BitWords(), setEventStatusNibble(), setSLinkCRCErrorBit(), setSLinkTransmissionErrorBit(), setTTSBits(), slinkTransmissionError(), and Phase2Tracker::TTS_READY.
|
inline |
Definition at line 43 of file Phase2TrackerFEDDAQTrailer.h.
References cBit(), and fBit().
Referenced by slinkCRCError().
|
inline |
Definition at line 114 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by badSourceID(), and lastTrailer().
FEDTTSBits Phase2Tracker::FEDDAQTrailer::ttsBits | ( | ) | const |
Definition at line 44 of file Phase2TrackerFEDDAQTrailer.cc.
References Phase2Tracker::TTS_BUSY, Phase2Tracker::TTS_DISCONNECTED0, Phase2Tracker::TTS_DISCONNECTED1, Phase2Tracker::TTS_ERROR, Phase2Tracker::TTS_INVALID, Phase2Tracker::TTS_OUT_OF_SYNC, Phase2Tracker::TTS_READY, Phase2Tracker::TTS_WARN_OVERFLOW, and ttsNibble().
Referenced by badSourceID(), and Phase2Tracker::Phase2TrackerFEDBuffer::daqTTSState().
|
inline |
Definition at line 111 of file Phase2TrackerFEDDAQTrailer.h.
References trailer_.
Referenced by badSourceID(), and ttsBits().
|
private |
Definition at line 78 of file Phase2TrackerFEDDAQTrailer.h.
Referenced by cBit(), crc(), data(), eoeNibble(), eventLengthIn64BitWords(), eventStatusNibble(), fBit(), FEDDAQTrailer(), print(), rBit(), setBadSourceIDBit(), setCRC(), setEventLengthIn64BitWords(), setEventStatusNibble(), setSLinkCRCErrorBit(), setSLinkTransmissionErrorBit(), setTTSBits(), tBit(), and ttsNibble().