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
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).

Date:
2009/05/07 07:57:03
Revision:
1.13
Author
M. Zanetti - INFN Padova

Definition at line 416 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTROBHeaderWord::DTROBHeaderWord ( )
inline

Constructor.

Definition at line 421 of file DTDDUWords.h.

421 {}
DTROBHeaderWord::DTROBHeaderWord ( const DTROBHeaderWord obj)
inline

Definition at line 423 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

423 { *this = obj; }
DTROBHeaderWord::DTROBHeaderWord ( const uint32_t  index)
inline

Definition at line 425 of file DTDDUWords.h.

425  :
426  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:451
virtual DTROBHeaderWord::~DTROBHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 429 of file DTDDUWords.h.

429 {}

Member Function Documentation

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().

433 { return (word_ & BUNCH_ID_MASK);}
uint32_t word_
Definition: DTDDUWords.h:451
#define BUNCH_ID_MASK
Definition: DTDDUWords.h:49
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().

432 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT;}
#define EVENT_ID_MASK
Definition: DTDDUWords.h:47
uint32_t word_
Definition: DTDDUWords.h:451
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:48
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().

431 { 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:451
static void DTROBHeaderWord::set ( uint32_t &  word,
int  rob_id,
int  event_id,
int  bunch_id 
)
inlinestatic

Definition at line 436 of file DTDDUWords.h.

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

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

439  {
440 
441  word =
443  rob_id << WORDTYPESHIFT |
444  event_id << EVENT_ID_SHIFT |
445  bunch_id;
446  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define EVENT_ID_SHIFT
Definition: DTDDUWords.h:48
static const uint32_t headerControlWord
Control bits definitions.
Definition: DTDDUWords.h:183

Member Data Documentation

uint32_t DTROBHeaderWord::word_
private

Definition at line 451 of file DTDDUWords.h.

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