#include <DTDDUWords.h>
Public Member Functions | |
DTROBTrailerWord () | |
Constructor. | |
DTROBTrailerWord (const DTROBTrailerWord &obj) | |
DTROBTrailerWord (const uint32_t index) | |
int | eventID () const |
int | robID () const |
int | wordCount () const |
virtual | ~DTROBTrailerWord () |
Destructor. | |
Static Public Member Functions | |
static void | set (uint32_t &word, int rob_id, int event_id, int word_count) |
Private Attributes | |
uint32_t | word_ |
DT ROB Trailer interpreter. It interprets the ROB_ID (5 bits), the Event ID (12 bits) and the Word ID (12 bits).
Definition at line 465 of file DTDDUWords.h.
DTROBTrailerWord::DTROBTrailerWord | ( | ) | [inline] |
DTROBTrailerWord::DTROBTrailerWord | ( | const DTROBTrailerWord & | obj | ) | [inline] |
DTROBTrailerWord::DTROBTrailerWord | ( | const uint32_t | index | ) | [inline] |
Definition at line 474 of file DTDDUWords.h.
virtual DTROBTrailerWord::~DTROBTrailerWord | ( | ) | [inline, virtual] |
int DTROBTrailerWord::eventID | ( | ) | const [inline] |
Definition at line 481 of file DTDDUWords.h.
References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.
Referenced by DTROS25Unpacker::interpretRawData().
{ return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT;}
int DTROBTrailerWord::robID | ( | ) | const [inline] |
Definition at line 480 of file DTDDUWords.h.
References ROB_ID_MASK, word_, and WORDTYPESHIFT.
Referenced by DTROS25Unpacker::interpretRawData().
{ return (word_ & ROB_ID_MASK) >> WORDTYPESHIFT;}
static void DTROBTrailerWord::set | ( | uint32_t & | word, |
int | rob_id, | ||
int | event_id, | ||
int | word_count | ||
) | [inline, static] |
Definition at line 484 of file DTDDUWords.h.
References EVENT_ID_SHIFT, DTROSWordType::trailerControlWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.
Referenced by DTDigiToRaw::createFedBuffers().
{ word = DTROSWordType::trailerControlWord << WORDCONTROLSHIFT | rob_id << WORDTYPESHIFT | event_id << EVENT_ID_SHIFT | word_count; }
int DTROBTrailerWord::wordCount | ( | ) | const [inline] |
Definition at line 482 of file DTDDUWords.h.
References word_, and WORD_COUNT_MASK.
Referenced by DTROS25Unpacker::interpretRawData().
{ return (word_ & WORD_COUNT_MASK);}
uint32_t DTROBTrailerWord::word_ [private] |
Definition at line 499 of file DTDDUWords.h.
Referenced by eventID(), robID(), and wordCount().