#include <DTDDUWords.h>
Public Member Functions | |
int | bunchID () const |
DTROBHeaderWord (const uint32_t index) | |
DTROBHeaderWord (const DTROBHeaderWord &obj) | |
DTROBHeaderWord () | |
Constructor. | |
int | eventID () const |
int | robID () const |
virtual | ~DTROBHeaderWord () |
Destructor. | |
Static Public Member Functions | |
static void | set (uint32_t &word, int rob_id, int event_id, int bunch_id) |
Private Attributes | |
uint32_t | word_ |
DT ROB Header interpreter. It interprets the ROB_ID (5 bits), the Event ID (12 bits) and the Bunch ID (12 bits).
Definition at line 416 of file DTDDUWords.h.
DTROBHeaderWord::DTROBHeaderWord | ( | ) | [inline] |
DTROBHeaderWord::DTROBHeaderWord | ( | const DTROBHeaderWord & | obj | ) | [inline] |
DTROBHeaderWord::DTROBHeaderWord | ( | const uint32_t | index | ) | [inline] |
Definition at line 425 of file DTDDUWords.h.
virtual DTROBHeaderWord::~DTROBHeaderWord | ( | ) | [inline, virtual] |
int DTROBHeaderWord::bunchID | ( | ) | const [inline] |
Definition at line 433 of file DTDDUWords.h.
References BUNCH_ID_MASK, and word_.
Referenced by DTROS25Unpacker::interpretRawData(), and DTDataIntegrityTask::processROS25().
{ return (word_ & BUNCH_ID_MASK);}
int DTROBHeaderWord::eventID | ( | ) | const [inline] |
Definition at line 432 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 DTROBHeaderWord::robID | ( | ) | const [inline] |
Definition at line 431 of file DTDDUWords.h.
References ROB_ID_MASK, word_, and WORDTYPESHIFT.
Referenced by DTROS25Unpacker::interpretRawData(), and DTDataIntegrityTask::processROS25().
{ return (word_ & ROB_ID_MASK) >> WORDTYPESHIFT;}
static void DTROBHeaderWord::set | ( | uint32_t & | word, |
int | rob_id, | ||
int | event_id, | ||
int | bunch_id | ||
) | [inline, static] |
Definition at line 436 of file DTDDUWords.h.
References EVENT_ID_SHIFT, DTROSWordType::headerControlWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.
Referenced by DTDigiToRaw::createFedBuffers().
{ word = DTROSWordType::headerControlWord << WORDCONTROLSHIFT | rob_id << WORDTYPESHIFT | event_id << EVENT_ID_SHIFT | bunch_id; }
uint32_t DTROBHeaderWord::word_ [private] |
Definition at line 451 of file DTDDUWords.h.