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 DTROBTrailerWord &obj)
 
 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 373 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTROBTrailerWord() [1/3]

DTROBTrailerWord::DTROBTrailerWord ( )
inline

Constructor.

Definition at line 376 of file DTDDUWords.h.

376 {}

◆ DTROBTrailerWord() [2/3]

DTROBTrailerWord::DTROBTrailerWord ( const DTROBTrailerWord obj)
inline

Definition at line 378 of file DTDDUWords.h.

378 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTROBTrailerWord() [3/3]

DTROBTrailerWord::DTROBTrailerWord ( const uint32_t  index)
inline

Definition at line 380 of file DTDDUWords.h.

380 : word_(index) {}

◆ ~DTROBTrailerWord()

virtual DTROBTrailerWord::~DTROBTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 383 of file DTDDUWords.h.

383 {}

Member Function Documentation

◆ eventID()

int DTROBTrailerWord::eventID ( ) const
inline

Definition at line 386 of file DTDDUWords.h.

386 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT; }

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

◆ robID()

int DTROBTrailerWord::robID ( ) const
inline

Definition at line 385 of file DTDDUWords.h.

385 { return (word_ & ROB_ID_MASK) >> WORDTYPESHIFT; }

References ROB_ID_MASK, word_, and WORDTYPESHIFT.

Referenced by DTROS25Unpacker::interpretRawData().

◆ set()

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

Definition at line 389 of file DTDDUWords.h.

389  {
391  event_id << EVENT_ID_SHIFT | word_count;
392  }

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

Referenced by DTDigiToRaw::createFedBuffers().

◆ wordCount()

int DTROBTrailerWord::wordCount ( ) const
inline

Definition at line 387 of file DTDDUWords.h.

387 { return (word_ & WORD_COUNT_MASK); }

References word_, and WORD_COUNT_MASK.

Referenced by DTROS25Unpacker::interpretRawData().

Member Data Documentation

◆ word_

uint32_t DTROBTrailerWord::word_
private

Definition at line 395 of file DTDDUWords.h.

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

WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
WORD_COUNT_MASK
#define WORD_COUNT_MASK
Definition: DTDDUWords.h:49
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
ROB_ID_MASK
#define ROB_ID_MASK
Definition: DTDDUWords.h:45
EVENT_ID_MASK
#define EVENT_ID_MASK
Definition: DTDDUWords.h:46
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
WORDTYPESHIFT
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
DTROSWordType::trailerControlWord
static const uint32_t trailerControlWord
Definition: DTDDUWords.h:180
EVENT_ID_SHIFT
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
DTROBTrailerWord::word_
uint32_t word_
Definition: DTDDUWords.h:395