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
DTLocalTriggerDataWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

 DTLocalTriggerDataWord ()
 Constructor. More...
 
 DTLocalTriggerDataWord (const DTLocalTriggerDataWord &obj)
 
 DTLocalTriggerDataWord (const uint32_t index)
 
int getBits (int first) const
 
int hasTrigger (int first) const
 
int SCData () const
 
int trackQuality (int first) const
 
virtual ~DTLocalTriggerDataWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int sc_data)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT Sector Collector data interpreter. It interprets the Sector Collector data (16 bits)

Author
M. Zanetti - INFN Padova

Definition at line 792 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTLocalTriggerDataWord::DTLocalTriggerDataWord ( )
inline

Constructor.

Definition at line 797 of file DTDDUWords.h.

797 {}
DTLocalTriggerDataWord::DTLocalTriggerDataWord ( const DTLocalTriggerDataWord obj)
inline

Definition at line 799 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

799 { *this = obj; }
DTLocalTriggerDataWord::DTLocalTriggerDataWord ( const uint32_t  index)
inline

Definition at line 801 of file DTDDUWords.h.

801  :
802  word_(index) {}
virtual DTLocalTriggerDataWord::~DTLocalTriggerDataWord ( )
inlinevirtual

Destructor.

Definition at line 805 of file DTDDUWords.h.

805 {}

Member Function Documentation

int DTLocalTriggerDataWord::getBits ( int  first) const
inline

Definition at line 809 of file DTDDUWords.h.

References TRIGGER_DATA_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData(), and trackQuality().

809  {
810  return first==1 ? ((word_ & TRIGGER_DATA_MASK) >> 8) : ((word_ & TRIGGER_DATA_MASK)&0xFF);
811  }
#define TRIGGER_DATA_MASK
Definition: DTDDUWords.h:70
bool first
Definition: L1TdeRCT.cc:79
int DTLocalTriggerDataWord::hasTrigger ( int  first) const
inline

Definition at line 814 of file DTDDUWords.h.

References trackQuality().

Referenced by DTROS25Unpacker::interpretRawData().

814 { return (trackQuality(first) != 7? 1 : 0);}
int trackQuality(int first) const
Definition: DTDDUWords.h:815
bool first
Definition: L1TdeRCT.cc:79
int DTLocalTriggerDataWord::SCData ( ) const
inline

Definition at line 807 of file DTDDUWords.h.

References TRIGGER_DATA_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

807 { return (word_ & TRIGGER_DATA_MASK);}
#define TRIGGER_DATA_MASK
Definition: DTDDUWords.h:70
static void DTLocalTriggerDataWord::set ( uint32_t &  word,
int  sc_data 
)
inlinestatic

Definition at line 818 of file DTDDUWords.h.

References DTROSWordType::scTypeWord, DTROSWordType::tdcDataControlWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

819  {
820 
821  word =
824  sc_data;
825  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
static const uint32_t scTypeWord
Definition: DTDDUWords.h:191
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
static const uint32_t tdcDataControlWord
Definition: DTDDUWords.h:185
int DTLocalTriggerDataWord::trackQuality ( int  first) const
inline

Definition at line 815 of file DTDDUWords.h.

References getBits().

Referenced by hasTrigger(), and DTROS25Unpacker::interpretRawData().

815 { return (getBits(first) & 0xE) >> 1; }
int getBits(int first) const
Definition: DTDDUWords.h:809
bool first
Definition: L1TdeRCT.cc:79

Member Data Documentation

uint32_t DTLocalTriggerDataWord::word_
private

Definition at line 830 of file DTDDUWords.h.

Referenced by getBits(), and SCData().