CMS 3D CMS Logo

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

#include <DTDDUWords.h>

Public Member Functions

 DTROSHeaderWord ()
 Constructor. More...
 
 DTROSHeaderWord (const uint32_t index)
 
int TTCEventCounter () const
 
virtual ~DTROSHeaderWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int ttc_event_counter)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT ROS Header interpreter. It interprets the TTC Event counter (24 bits).

Author
M. Zanetti - INFN Padova

Definition at line 199 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTROSHeaderWord() [1/2]

DTROSHeaderWord::DTROSHeaderWord ( )
inline

Constructor.

Definition at line 202 of file DTDDUWords.h.

202 {}

◆ DTROSHeaderWord() [2/2]

DTROSHeaderWord::DTROSHeaderWord ( const uint32_t  index)
inline

Definition at line 204 of file DTDDUWords.h.

◆ ~DTROSHeaderWord()

virtual DTROSHeaderWord::~DTROSHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 207 of file DTDDUWords.h.

207 {}

Member Function Documentation

◆ set()

static void DTROSHeaderWord::set ( uint32_t &  word,
int  ttc_event_counter 
)
inlinestatic

Definition at line 211 of file DTDDUWords.h.

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

211  {
213  ttc_event_counter;
214  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:186
static const uint32_t headerControlWord
Control bits definitions.
Definition: DTDDUWords.h:177

◆ TTCEventCounter()

int DTROSHeaderWord::TTCEventCounter ( ) const
inline

Definition at line 209 of file DTDDUWords.h.

References TTC_EVENT_COUNTER_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

209 { return word_ & TTC_EVENT_COUNTER_MASK; }
#define TTC_EVENT_COUNTER_MASK
Definition: DTDDUWords.h:29
uint32_t word_
Definition: DTDDUWords.h:217

Member Data Documentation

◆ word_

uint32_t DTROSHeaderWord::word_
private

Definition at line 217 of file DTDDUWords.h.

Referenced by TTCEventCounter().