CMS 3D CMS Logo

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

#include <DTDDUWords.h>

Public Member Functions

 DTLocalTriggerSectorCollectorHeaderWord ()
 Constructor. More...
 
 DTLocalTriggerSectorCollectorHeaderWord (const uint32_t index)
 
int Latency () const
 
int NumberOf16bitWords () const
 
virtual ~DTLocalTriggerSectorCollectorHeaderWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int lat, int nw)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT Sector Collector private header interpreter. It interprets Latency measured by SC-Latency Timer Unit (still testing!) and the number of 16-bit words following this header sent by the Sector Collector

Author
R. Travaglini - INFN Bologna

Definition at line 680 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTLocalTriggerSectorCollectorHeaderWord() [1/2]

DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( )
inline

Constructor.

Definition at line 683 of file DTDDUWords.h.

683 {}

◆ DTLocalTriggerSectorCollectorHeaderWord() [2/2]

DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( const uint32_t  index)
inline

◆ ~DTLocalTriggerSectorCollectorHeaderWord()

virtual DTLocalTriggerSectorCollectorHeaderWord::~DTLocalTriggerSectorCollectorHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 688 of file DTDDUWords.h.

688 {}

Member Function Documentation

◆ Latency()

int DTLocalTriggerSectorCollectorHeaderWord::Latency ( ) const
inline

Definition at line 690 of file DTDDUWords.h.

References SC_LAT_MASK, SC_LAT_SHIFT, and word_.

690 { return ((word_ >> SC_LAT_SHIFT) & SC_LAT_MASK); }
#define SC_LAT_MASK
Definition: DTDDUWords.h:72
#define SC_LAT_SHIFT
Definition: DTDDUWords.h:71

◆ NumberOf16bitWords()

int DTLocalTriggerSectorCollectorHeaderWord::NumberOf16bitWords ( ) const
inline

Definition at line 691 of file DTDDUWords.h.

References SC_NW_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

691 { return (word_ & SC_NW_MASK); }
#define SC_NW_MASK
Definition: DTDDUWords.h:74

◆ set()

static void DTLocalTriggerSectorCollectorHeaderWord::set ( uint32_t &  word,
int  lat,
int  nw 
)
inlinestatic

Definition at line 693 of file DTDDUWords.h.

References DTROSWordType::headerControlWord, SC_LAT_MASK, SC_LAT_SHIFT, SC_NW_MASK, DTROSWordType::scTypeWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

693  {
695  (lat & SC_LAT_MASK) << SC_LAT_SHIFT | (nw & SC_NW_MASK);
696  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
#define SC_LAT_MASK
Definition: DTDDUWords.h:72
uint64_t word
static const uint32_t scTypeWord
Definition: DTDDUWords.h:187
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define SC_LAT_SHIFT
Definition: DTDDUWords.h:71
#define SC_NW_MASK
Definition: DTDDUWords.h:74
static const uint32_t headerControlWord
Control bits definitions.
Definition: DTDDUWords.h:177

Member Data Documentation

◆ word_

uint32_t DTLocalTriggerSectorCollectorHeaderWord::word_
private

Definition at line 699 of file DTDDUWords.h.

Referenced by Latency(), and NumberOf16bitWords().