CMS 3D CMS Logo

DTROBHeaderWord Class Reference

DT ROB Header interpreter. More...

#include <EventFilter/DTRawToDigi/interface/DTDDUWords.h>

List of all members.

Public Member Functions

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

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
2007/04/02 15:53:18
Revision
1.10
Author:
M. Zanetti - INFN Padova

Definition at line 403 of file DTDDUWords.h.


Constructor & Destructor Documentation

DTROBHeaderWord::DTROBHeaderWord (  )  [inline]

Constructor.

Definition at line 408 of file DTDDUWords.h.

00408 {}

DTROBHeaderWord::DTROBHeaderWord ( const DTROBHeaderWord obj  )  [inline]

Definition at line 410 of file DTDDUWords.h.

00410 { *this = obj; }

DTROBHeaderWord::DTROBHeaderWord ( const uint32_t  index  )  [inline]

Definition at line 412 of file DTDDUWords.h.

00412                                         : 
00413     word_(index) {}

virtual DTROBHeaderWord::~DTROBHeaderWord (  )  [inline, virtual]

Destructor.

Definition at line 416 of file DTDDUWords.h.

00416 {}


Member Function Documentation

int DTROBHeaderWord::bunchID (  )  const [inline]

Definition at line 420 of file DTDDUWords.h.

References BUNCH_ID_MASK, and word_.

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

00420 { return (word_ & BUNCH_ID_MASK);} 

int DTROBHeaderWord::eventID (  )  const [inline]

Definition at line 419 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

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

int DTROBHeaderWord::robID (  )  const [inline]

Definition at line 418 of file DTDDUWords.h.

References ROB_ID_MASK, word_, and WORDTYPESHIFT.

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

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

static void DTROBHeaderWord::set ( uint32_t &  word,
int  rob_id,
int  event_id,
int  bunch_id 
) [inline, static]

Definition at line 423 of file DTDDUWords.h.

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

Referenced by DTDigiToRaw::createFedBuffers().

00426                                 {
00427     
00428     word = 
00429       DTROSWordType::headerControlWord << WORDCONTROLSHIFT |
00430       rob_id << WORDTYPESHIFT |
00431       event_id << EVENT_ID_SHIFT |
00432       bunch_id;
00433   }


Member Data Documentation

uint32_t DTROBHeaderWord::word_ [private]

Definition at line 438 of file DTDDUWords.h.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:19:02 2009 for CMSSW by  doxygen 1.5.4