CMS 3D CMS Logo

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

Constructor & Destructor Documentation

◆ DTLocalTriggerDataWord() [1/3]

DTLocalTriggerDataWord::DTLocalTriggerDataWord ( )
inline

Constructor.

Definition at line 605 of file DTDDUWords.h.

605 {}

◆ DTLocalTriggerDataWord() [2/3]

DTLocalTriggerDataWord::DTLocalTriggerDataWord ( const DTLocalTriggerDataWord obj)
inline

Definition at line 607 of file DTDDUWords.h.

607 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTLocalTriggerDataWord() [3/3]

DTLocalTriggerDataWord::DTLocalTriggerDataWord ( const uint32_t  index)
inline

Definition at line 609 of file DTDDUWords.h.

609 : word_(index) {}

◆ ~DTLocalTriggerDataWord()

virtual DTLocalTriggerDataWord::~DTLocalTriggerDataWord ( )
inlinevirtual

Destructor.

Definition at line 612 of file DTDDUWords.h.

612 {}

Member Function Documentation

◆ getBits()

int DTLocalTriggerDataWord::getBits ( int  first) const
inline

Definition at line 616 of file DTDDUWords.h.

616  {
617  return first == 1 ? ((word_ & TRIGGER_DATA_MASK) >> 8) : ((word_ & TRIGGER_DATA_MASK) & 0xFF);
618  }

References dqmdumpme::first, TRIGGER_DATA_MASK, and word_.

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

◆ hasTrigger()

int DTLocalTriggerDataWord::hasTrigger ( int  first) const
inline

Definition at line 621 of file DTDDUWords.h.

621 { return (trackQuality(first) != 7 ? 1 : 0); }

References dqmdumpme::first, and trackQuality().

Referenced by DTROS25Unpacker::interpretRawData().

◆ SCData()

int DTLocalTriggerDataWord::SCData ( ) const
inline

Definition at line 614 of file DTDDUWords.h.

614 { return (word_ & TRIGGER_DATA_MASK); }

References TRIGGER_DATA_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

◆ set()

static void DTLocalTriggerDataWord::set ( uint32_t &  word,
int  sc_data 
)
inlinestatic

◆ trackQuality()

int DTLocalTriggerDataWord::trackQuality ( int  first) const
inline

Definition at line 622 of file DTDDUWords.h.

622 { return (getBits(first) & 0xE) >> 1; }

References dqmdumpme::first, and getBits().

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

Member Data Documentation

◆ word_

uint32_t DTLocalTriggerDataWord::word_
private

Definition at line 629 of file DTDDUWords.h.

Referenced by getBits(), and SCData().

DTLocalTriggerDataWord::trackQuality
int trackQuality(int first) const
Definition: DTDDUWords.h:622
DTLocalTriggerDataWord::getBits
int getBits(int first) const
Definition: DTDDUWords.h:616
DTLocalTriggerDataWord::word_
uint32_t word_
Definition: DTDDUWords.h:629
WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
dqmdumpme.first
first
Definition: dqmdumpme.py:55
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
DTROSWordType::tdcDataControlWord
static const uint32_t tdcDataControlWord
Definition: DTDDUWords.h:183
TRIGGER_DATA_MASK
#define TRIGGER_DATA_MASK
Definition: DTDDUWords.h:69
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
WORDTYPESHIFT
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
DTROSWordType::scTypeWord
static const uint32_t scTypeWord
Definition: DTDDUWords.h:189
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46