CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 451 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTROBTrailerWord::DTROBTrailerWord ( )
inline

Constructor.

Definition at line 456 of file DTDDUWords.h.

456 {}
DTROBTrailerWord::DTROBTrailerWord ( const DTROBTrailerWord obj)
inline

Definition at line 458 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

458 { *this = obj; }
DTROBTrailerWord::DTROBTrailerWord ( const uint32_t  index)
inline

Definition at line 460 of file DTDDUWords.h.

460  :
461  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:485
virtual DTROBTrailerWord::~DTROBTrailerWord ( )
inlinevirtual

Destructor.

Definition at line 464 of file DTDDUWords.h.

464 {}

Member Function Documentation

int DTROBTrailerWord::eventID ( ) const
inline

Definition at line 467 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

467 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT;}
#define EVENT_ID_MASK
Definition: DTDDUWords.h:47
uint32_t word_
Definition: DTDDUWords.h:485
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:48
int DTROBTrailerWord::robID ( ) const
inline

Definition at line 466 of file DTDDUWords.h.

References ROB_ID_MASK, word_, and WORDTYPESHIFT.

Referenced by DTROS25Unpacker::interpretRawData().

466 { return (word_ & ROB_ID_MASK) >> WORDTYPESHIFT;}
#define ROB_ID_MASK
Definition: DTDDUWords.h:46
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
uint32_t word_
Definition: DTDDUWords.h:485
static void DTROBTrailerWord::set ( uint32_t &  word,
int  rob_id,
int  event_id,
int  word_count 
)
inlinestatic

Definition at line 470 of file DTDDUWords.h.

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

Referenced by DTDigiToRaw::createFedBuffers(), and betterConfigParser.BetterConfigParser::getGeneral().

473  {
474 
475  word =
477  rob_id << WORDTYPESHIFT |
478  event_id << EVENT_ID_SHIFT |
479  word_count;
480  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
static const uint32_t trailerControlWord
Definition: DTDDUWords.h:182
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:48
int DTROBTrailerWord::wordCount ( ) const
inline

Definition at line 468 of file DTDDUWords.h.

References word_, and WORD_COUNT_MASK.

Referenced by DTROS25Unpacker::interpretRawData().

468 { return (word_ & WORD_COUNT_MASK);}
#define WORD_COUNT_MASK
Definition: DTDDUWords.h:50
uint32_t word_
Definition: DTDDUWords.h:485

Member Data Documentation

uint32_t DTROBTrailerWord::word_
private

Definition at line 485 of file DTDDUWords.h.

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