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 DTLocalTriggerSectorCollectorHeaderWord &obj)
 
 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 712 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTLocalTriggerSectorCollectorHeaderWord() [1/3]

DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( )
inline

Constructor.

Definition at line 715 of file DTDDUWords.h.

715 {}

◆ DTLocalTriggerSectorCollectorHeaderWord() [2/3]

DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( const DTLocalTriggerSectorCollectorHeaderWord obj)
inline

Definition at line 717 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

717 { *this = obj; }

◆ DTLocalTriggerSectorCollectorHeaderWord() [3/3]

DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( const uint32_t  index)
inline

◆ ~DTLocalTriggerSectorCollectorHeaderWord()

virtual DTLocalTriggerSectorCollectorHeaderWord::~DTLocalTriggerSectorCollectorHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 722 of file DTDDUWords.h.

722 {}

Member Function Documentation

◆ Latency()

int DTLocalTriggerSectorCollectorHeaderWord::Latency ( ) const
inline

Definition at line 724 of file DTDDUWords.h.

References SC_LAT_MASK, SC_LAT_SHIFT, and word_.

724 { 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 725 of file DTDDUWords.h.

References SC_NW_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

725 { 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 727 of file DTDDUWords.h.

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

727  {
729  (lat & SC_LAT_MASK) << SC_LAT_SHIFT | (nw & SC_NW_MASK);
730  }
#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:189
#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:179

Member Data Documentation

◆ word_

uint32_t DTLocalTriggerSectorCollectorHeaderWord::word_
private

Definition at line 733 of file DTDDUWords.h.

Referenced by Latency(), and NumberOf16bitWords().