CMS 3D CMS Logo

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

#include <DTDDUWords.h>

Public Member Functions

int bunchID () const
 
 DTROBHeaderWord ()
 Constructor. More...
 
 DTROBHeaderWord (const DTROBHeaderWord &obj)
 
 DTROBHeaderWord (const uint32_t index)
 
int eventID () const
 
int robID () const
 
virtual ~DTROBHeaderWord ()
 Destructor. More...
 

Static Public Member Functions

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

Private Attributes

uint32_t word_
 

Detailed Description

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

Author
M. Zanetti - INFN Padova

Definition at line 341 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTROBHeaderWord() [1/3]

DTROBHeaderWord::DTROBHeaderWord ( )
inline

Constructor.

Definition at line 344 of file DTDDUWords.h.

344 {}

◆ DTROBHeaderWord() [2/3]

DTROBHeaderWord::DTROBHeaderWord ( const DTROBHeaderWord obj)
inline

Definition at line 346 of file DTDDUWords.h.

346 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTROBHeaderWord() [3/3]

DTROBHeaderWord::DTROBHeaderWord ( const uint32_t  index)
inline

Definition at line 348 of file DTDDUWords.h.

348 : word_(index) {}

◆ ~DTROBHeaderWord()

virtual DTROBHeaderWord::~DTROBHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 351 of file DTDDUWords.h.

351 {}

Member Function Documentation

◆ bunchID()

int DTROBHeaderWord::bunchID ( ) const
inline

Definition at line 355 of file DTDDUWords.h.

355 { return (word_ & BUNCH_ID_MASK); }

References BUNCH_ID_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData(), and DTDataIntegrityROSOffline::processROS25().

◆ eventID()

int DTROBHeaderWord::eventID ( ) const
inline

Definition at line 354 of file DTDDUWords.h.

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

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

◆ robID()

int DTROBHeaderWord::robID ( ) const
inline

Definition at line 353 of file DTDDUWords.h.

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

References ROB_ID_MASK, word_, and WORDTYPESHIFT.

Referenced by DTROS25Unpacker::interpretRawData(), and DTDataIntegrityROSOffline::processROS25().

◆ set()

static void DTROBHeaderWord::set ( uint32_t &  word,
int  rob_id,
int  event_id,
int  bunch_id 
)
inlinestatic

Definition at line 357 of file DTDDUWords.h.

357  {
359  bunch_id;
360  }

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

Referenced by DTDigiToRaw::createFedBuffers().

Member Data Documentation

◆ word_

uint32_t DTROBHeaderWord::word_
private

Definition at line 363 of file DTDDUWords.h.

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

DTROBHeaderWord::word_
uint32_t word_
Definition: DTDDUWords.h:363
WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
DTROSWordType::headerControlWord
static const uint32_t headerControlWord
Control bits definitions.
Definition: DTDDUWords.h:179
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
BUNCH_ID_MASK
#define BUNCH_ID_MASK
Definition: DTDDUWords.h:48
EVENT_ID_SHIFT
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:47
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46