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

Constructor & Destructor Documentation

DTTDCErrorWord::DTTDCErrorWord ( )
inline

Constructor.

Definition at line 668 of file DTDDUWords.h.

668 {}
DTTDCErrorWord::DTTDCErrorWord ( const DTTDCErrorWord obj)
inline

Definition at line 670 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

670 { *this = obj; }
DTTDCErrorWord::DTTDCErrorWord ( const uint32_t  index)
inline

Definition at line 672 of file DTDDUWords.h.

672  :
673  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:703
virtual DTTDCErrorWord::~DTTDCErrorWord ( )
inlinevirtual

Destructor.

Definition at line 676 of file DTDDUWords.h.

676 {}

Member Function Documentation

int DTTDCErrorWord::HU ( ) const
inline

Definition at line 680 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

680 { return (word_ & PAF_MASK) >> PAF_SHIFT;}
uint32_t word_
Definition: DTDDUWords.h:703
#define PAF_SHIFT
Definition: DTDDUWords.h:55
#define PAF_MASK
Definition: DTDDUWords.h:54
int DTTDCErrorWord::PAF ( ) const
inline

Definition at line 679 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

679 { return (word_ & PAF_MASK) >> PAF_SHIFT;}
uint32_t word_
Definition: DTDDUWords.h:703
#define PAF_SHIFT
Definition: DTDDUWords.h:55
#define PAF_MASK
Definition: DTDDUWords.h:54
int DTTDCErrorWord::PC ( ) const
inline

Definition at line 678 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

678 { return (word_ & PC_MASK) >> PC_SHIFT;}
uint32_t word_
Definition: DTDDUWords.h:703
#define PC_SHIFT
Definition: DTDDUWords.h:53
#define PC_MASK
Definition: DTDDUWords.h:52
static void DTTDCErrorWord::set ( uint32_t &  word,
int  pc,
int  paf,
int  hu,
int  tdc_id,
int  tdc_error 
)
inlinestatic

Definition at line 684 of file DTDDUWords.h.

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

689  {
690 
691  word =
693  pc << PC_SHIFT |
694  paf << PAF_SHIFT |
695  hu << PAF_SHIFT |
696  tdc_id << TDC_ID_SHIFT |
697  0 << ERRORSHIFT |
698  tdc_error;
699  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
static const uint32_t errorControlWord
Definition: DTDDUWords.h:188
#define PC_SHIFT
Definition: DTDDUWords.h:53
#define ERRORSHIFT
Definition: DTDDUWords.h:17
#define PAF_SHIFT
Definition: DTDDUWords.h:55
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:57
int DTTDCErrorWord::tdcError ( ) const
inline

Definition at line 682 of file DTDDUWords.h.

References TDC_ERROR_MASK, and word_.

Referenced by DTTDCErrorNotifier::print().

682 { return (word_ & TDC_ERROR_MASK);}
uint32_t word_
Definition: DTDDUWords.h:703
#define TDC_ERROR_MASK
Definition: DTDDUWords.h:64
int DTTDCErrorWord::tdcID ( ) const
inline

<== OBSOLETE!!

Definition at line 681 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

Referenced by DTTDCErrorNotifier::print().

681 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT;}
uint32_t word_
Definition: DTDDUWords.h:703
#define TDC_ID_MASK
Definition: DTDDUWords.h:56
#define TDC_ID_SHIFT
Definition: DTDDUWords.h:57

Member Data Documentation

uint32_t DTTDCErrorWord::word_
private

Definition at line 703 of file DTDDUWords.h.

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