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.

References getGTfromDQMFile::obj.

515 { *this = obj; }

◆ DTTDCErrorWord() [3/3]

DTTDCErrorWord::DTTDCErrorWord ( const uint32_t  index)
inline

Definition at line 517 of file DTDDUWords.h.

◆ ~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.

References PAF_MASK, PAF_SHIFT, and word_.

524 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
uint32_t word_
Definition: DTDDUWords.h:534
#define PAF_SHIFT
Definition: DTDDUWords.h:54
#define PAF_MASK
Definition: DTDDUWords.h:53

◆ PAF()

int DTTDCErrorWord::PAF ( ) const
inline

Definition at line 523 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

523 { return (word_ & PAF_MASK) >> PAF_SHIFT; }
uint32_t word_
Definition: DTDDUWords.h:534
#define PAF_SHIFT
Definition: DTDDUWords.h:54
#define PAF_MASK
Definition: DTDDUWords.h:53

◆ PC()

int DTTDCErrorWord::PC ( ) const
inline

Definition at line 522 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

522 { return (word_ & PC_MASK) >> PC_SHIFT; }
uint32_t word_
Definition: DTDDUWords.h:534
#define PC_SHIFT
Definition: DTDDUWords.h:52
#define PC_MASK
Definition: DTDDUWords.h:51

◆ 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.

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

528  {
530  tdc_id << TDC_ID_SHIFT | 0 << ERRORSHIFT | tdc_error;
531  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
static const uint32_t errorControlWord
Definition: DTDDUWords.h:184
#define PC_SHIFT
Definition: DTDDUWords.h:52
#define ERRORSHIFT
Definition: DTDDUWords.h:17
#define PAF_SHIFT
Definition: DTDDUWords.h:54
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56

◆ tdcError()

int DTTDCErrorWord::tdcError ( ) const
inline

Definition at line 526 of file DTDDUWords.h.

References TDC_ERROR_MASK, and word_.

Referenced by DTTDCErrorNotifier::print().

526 { return (word_ & TDC_ERROR_MASK); }
uint32_t word_
Definition: DTDDUWords.h:534
#define TDC_ERROR_MASK
Definition: DTDDUWords.h:63

◆ tdcID()

int DTTDCErrorWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 525 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

Referenced by DTTDCErrorNotifier::print().

525 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT; }
uint32_t word_
Definition: DTDDUWords.h:534
#define TDC_ID_MASK
Definition: DTDDUWords.h:55
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:56

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().