CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
DTTDCErrorWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

 DTTDCErrorWord ()
 Constructor. More...
 
 DTTDCErrorWord (const DTTDCErrorWord &obj)
 
 DTTDCErrorWord (const uint32_t index)
 
int HU () const
 
int PAF () const
 
int PC () const
 
int tdcError () const
 
int tdcID () const
 <== OBSOLETE!! More...
 
virtual ~DTTDCErrorWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int pc, int paf, int hu, int tdc_id, int tdc_error)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT TDC Error interpreter. It interprets the Parity Checks, FIFO occupancy, Lokeced channels (all 1 bit), the TDC_ID (2 bits) and the TDC error flag (15 bits)

Author
M. Zanetti - INFN Padova

Definition at line 510 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTTDCErrorWord() [1/3]

DTTDCErrorWord::DTTDCErrorWord ( )
inline

Constructor.

Definition at line 513 of file DTDDUWords.h.

513 {}

◆ DTTDCErrorWord() [2/3]

DTTDCErrorWord::DTTDCErrorWord ( const DTTDCErrorWord obj)
inline

Definition at line 515 of file DTDDUWords.h.

515 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTTDCErrorWord() [3/3]

DTTDCErrorWord::DTTDCErrorWord ( const uint32_t  index)
inline

Definition at line 517 of file DTDDUWords.h.

517 : word_(index) {}

◆ ~DTTDCErrorWord()

virtual DTTDCErrorWord::~DTTDCErrorWord ( )
inlinevirtual

Destructor.

Definition at line 520 of file DTDDUWords.h.

520 {}

Member Function Documentation

◆ HU()

int DTTDCErrorWord::HU ( ) const
inline

Definition at line 524 of file DTDDUWords.h.

524 { return (word_ & PAF_MASK) >> PAF_SHIFT; }

References PAF_MASK, PAF_SHIFT, and word_.

◆ PAF()

int DTTDCErrorWord::PAF ( ) const
inline

Definition at line 523 of file DTDDUWords.h.

523 { return (word_ & PAF_MASK) >> PAF_SHIFT; }

References PAF_MASK, PAF_SHIFT, and word_.

◆ PC()

int DTTDCErrorWord::PC ( ) const
inline

Definition at line 522 of file DTDDUWords.h.

522 { return (word_ & PC_MASK) >> PC_SHIFT; }

References PC_MASK, PC_SHIFT, and word_.

◆ set()

static void DTTDCErrorWord::set ( uint32_t &  word,
int  pc,
int  paf,
int  hu,
int  tdc_id,
int  tdc_error 
)
inlinestatic

Definition at line 528 of file DTDDUWords.h.

528  {
530  tdc_id << TDC_ID_SHIFT | 0 << ERRORSHIFT | tdc_error;
531  }

References DTROSWordType::errorControlWord, ERRORSHIFT, PAF_SHIFT, PC_SHIFT, TDC_ID_SHIFT, and WORDCONTROLSHIFT.

◆ tdcError()

int DTTDCErrorWord::tdcError ( ) const
inline

Definition at line 526 of file DTDDUWords.h.

526 { return (word_ & TDC_ERROR_MASK); }

References TDC_ERROR_MASK, and word_.

Referenced by DTTDCErrorNotifier::print().

◆ tdcID()

int DTTDCErrorWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 525 of file DTDDUWords.h.

525 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

Referenced by DTTDCErrorNotifier::print().

Member Data Documentation

◆ word_

uint32_t DTTDCErrorWord::word_
private

Definition at line 534 of file DTDDUWords.h.

Referenced by HU(), PAF(), PC(), tdcError(), and tdcID().

WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
PC_SHIFT
#define PC_SHIFT
Definition: DTDDUWords.h:52
PC_MASK
#define PC_MASK
Definition: DTDDUWords.h:51
DTROSWordType::errorControlWord
static const uint32_t errorControlWord
Definition: DTDDUWords.h:184
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
ERRORSHIFT
#define ERRORSHIFT
Definition: DTDDUWords.h:17
TDC_ID_MASK
#define TDC_ID_MASK
Definition: DTDDUWords.h:55
DTTDCErrorWord::word_
uint32_t word_
Definition: DTDDUWords.h:534
PAF_MASK
#define PAF_MASK
Definition: DTDDUWords.h:53
PAF_SHIFT
#define PAF_SHIFT
Definition: DTDDUWords.h:54
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
TDC_ERROR_MASK
#define TDC_ERROR_MASK
Definition: DTDDUWords.h:63
TDC_ID_SHIFT
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56