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 928 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( )
inline

Constructor.

Definition at line 933 of file DTDDUWords.h.

933 {}
DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( const DTLocalTriggerSectorCollectorHeaderWord obj)
inline

Definition at line 935 of file DTDDUWords.h.

References MuonAssociatorByHits_cfi::obj.

DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( const uint32_t  index)
inline

Definition at line 937 of file DTDDUWords.h.

virtual DTLocalTriggerSectorCollectorHeaderWord::~DTLocalTriggerSectorCollectorHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 941 of file DTDDUWords.h.

941 {}

Member Function Documentation

int DTLocalTriggerSectorCollectorHeaderWord::Latency ( ) const
inline

Definition at line 943 of file DTDDUWords.h.

References SC_LAT_MASK, SC_LAT_SHIFT, and DTROSWordType::word_.

943 { return ((word_ >> SC_LAT_SHIFT) & SC_LAT_MASK);}
#define SC_LAT_MASK
Definition: DTDDUWords.h:74
#define SC_LAT_SHIFT
Definition: DTDDUWords.h:73
int DTLocalTriggerSectorCollectorHeaderWord::NumberOf16bitWords ( ) const
inline

Definition at line 944 of file DTDDUWords.h.

References SC_NW_MASK, and DTROSWordType::word_.

Referenced by DTROS25Unpacker::interpretRawData().

944 { return (word_ & SC_NW_MASK);}
#define SC_NW_MASK
Definition: DTDDUWords.h:76
static void DTLocalTriggerSectorCollectorHeaderWord::set ( uint32_t &  word,
int  lat,
int  nw 
)
inlinestatic

Definition at line 947 of file DTDDUWords.h.

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

949  {
950 
951  word =
954  (lat & SC_LAT_MASK) << SC_LAT_SHIFT |
955  (nw & SC_NW_MASK) ;
956  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
Definition: DQMStore.h:25
#define SC_LAT_MASK
Definition: DTDDUWords.h:74
static const uint32_t scTypeWord
Definition: DTDDUWords.h:193
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define SC_LAT_SHIFT
Definition: DTDDUWords.h:73
#define SC_NW_MASK
Definition: DTDDUWords.h:76
static const uint32_t headerControlWord
Control bits definitions.
Definition: DTDDUWords.h:183

Member Data Documentation

uint32_t DTLocalTriggerSectorCollectorHeaderWord::word_
private

Definition at line 960 of file DTDDUWords.h.