CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
DTROBTrailerWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

 DTROBTrailerWord ()
 Constructor. More...
 
 DTROBTrailerWord (const uint32_t index)
 
int eventID () const
 
int robID () const
 
int wordCount () const
 
virtual ~DTROBTrailerWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int rob_id, int event_id, int word_count)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT ROB Trailer interpreter. It interprets the ROB_ID (5 bits), the Event ID (12 bits) and the Word ID (12 bits).

Author
M. Zanetti - INFN Padova

Definition at line 361 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTROBTrailerWord() [1/2]

DTROBTrailerWord::DTROBTrailerWord ( )
inline

Constructor.

Definition at line 364 of file DTDDUWords.h.

364 {}

◆ DTROBTrailerWord() [2/2]

DTROBTrailerWord::DTROBTrailerWord ( const uint32_t  index)
inline

Definition at line 366 of file DTDDUWords.h.

◆ ~DTROBTrailerWord()

virtual DTROBTrailerWord::~DTROBTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 369 of file DTDDUWords.h.

369 {}

Member Function Documentation

◆ eventID()

int DTROBTrailerWord::eventID ( ) const
inline

Definition at line 372 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

372 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }
#define EVENT_ID_MASK
Definition: DTDDUWords.h:46
uint32_t word_
Definition: DTDDUWords.h:381
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47

◆ robID()

int DTROBTrailerWord::robID ( ) const
inline

Definition at line 371 of file DTDDUWords.h.

References ROB_ID_MASK, word_, and WORDTYPESHIFT.

Referenced by DTROS25Unpacker::interpretRawData().

371 { return (word_ & ROB_ID_MASK) >> WORDTYPESHIFT; }
#define ROB_ID_MASK
Definition: DTDDUWords.h:45
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
uint32_t word_
Definition: DTDDUWords.h:381

◆ set()

static void DTROBTrailerWord::set ( uint32_t &  word,
int  rob_id,
int  event_id,
int  word_count 
)
inlinestatic

Definition at line 375 of file DTDDUWords.h.

References EVENT_ID_SHIFT, DTROSWordType::trailerControlWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

Referenced by DTDigiToRaw::createFedBuffers().

375  {
377  event_id << EVENT_ID_SHIFT | word_count;
378  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
static const uint32_t trailerControlWord
Definition: DTDDUWords.h:178
uint64_t word
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47

◆ wordCount()

int DTROBTrailerWord::wordCount ( ) const
inline

Definition at line 373 of file DTDDUWords.h.

References word_, and WORD_COUNT_MASK.

Referenced by DTROS25Unpacker::interpretRawData().

373 { return (word_ & WORD_COUNT_MASK); }
#define WORD_COUNT_MASK
Definition: DTDDUWords.h:49
uint32_t word_
Definition: DTDDUWords.h:381

Member Data Documentation

◆ word_

uint32_t DTROBTrailerWord::word_
private

Definition at line 381 of file DTDDUWords.h.

Referenced by eventID(), robID(), and wordCount().