1 #ifndef EventFilter_Phase2TrackerRawToDigi_Phase2TrackerFEDDAQTrailer_H // {
2 #define EventFilter_Phase2TrackerRawToDigi_Phase2TrackerFEDDAQTrailer_H
7 namespace Phase2Tracker {
57 void print(std::ostream& os)
const;
59 const uint8_t*
data()
const;
71 const uint16_t
crc = 0,
74 const bool badFEDID =
false,
91 {
return ( (
trailer_[7] & 0xF0) >> 4 ); }
112 {
return ( (
trailer_[0] & 0xF0) >> 4); }
130 #endif // } end def EventFilter_Phase2TrackerRawToDigi_Phase2TrackerFEDDAQHeader_H
void setSLinkCRCErrorBit(const bool bitSet)
bool slinkTransmissionError() const
std::ostream & operator<<(std::ostream &os, const FEDDAQEventType &value)
void setCRC(const uint16_t crc)
uint8_t ttsNibble() const
static const uint8_t INVALID
void print(std::ostream &os) const
bool slinkCRCError() const
uint32_t eventLengthInBytes() const
void setSLinkTransmissionErrorBit(const bool bitSet)
void setEventStatusNibble(const uint8_t eventStatusNibble)
FEDTTSBits ttsBits() const
uint32_t eventLengthIn64BitWords() const
void setTTSBits(const FEDTTSBits ttsBits)
uint8_t eoeNibble() const
const uint8_t * data() const
void setEventLengthIn64BitWords(const uint32_t eventLengthIn64BitWords)
void printHex(const void *pointer, const size_t lengthInBytes, std::ostream &os)
uint8_t eventStatusNibble() const
void setBadSourceIDBit(const bool bitSet)