CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

Date:
2009/05/07 07:57:03
Revision:
1.13
Author
R. Travaglini - INFN Bologna

Definition at line 960 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( )
inline

Constructor.

Definition at line 965 of file DTDDUWords.h.

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

Definition at line 967 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

967 { *this = obj; }
DTLocalTriggerSectorCollectorHeaderWord::DTLocalTriggerSectorCollectorHeaderWord ( const uint32_t  index)
inline

Definition at line 969 of file DTDDUWords.h.

virtual DTLocalTriggerSectorCollectorHeaderWord::~DTLocalTriggerSectorCollectorHeaderWord ( )
inlinevirtual

Destructor.

Definition at line 973 of file DTDDUWords.h.

973 {}

Member Function Documentation

int DTLocalTriggerSectorCollectorHeaderWord::Latency ( ) const
inline

Definition at line 975 of file DTDDUWords.h.

References SC_LAT_MASK, SC_LAT_SHIFT, and word_.

975 { 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 976 of file DTDDUWords.h.

References SC_NW_MASK, and word_.

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

976 { 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 979 of file DTDDUWords.h.

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

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

981  {
982 
983  word =
986  (lat & SC_LAT_MASK) << SC_LAT_SHIFT |
987  (nw & SC_NW_MASK) ;
988  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
#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 992 of file DTDDUWords.h.

Referenced by Latency(), and NumberOf16bitWords().