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)

Date:
2009/04/28 12:46:49
Revision:
1.12
Author
M. Zanetti - INFN Padova

Definition at line 683 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTTDCErrorWord::DTTDCErrorWord ( )
inline

Constructor.

Definition at line 688 of file DTDDUWords.h.

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

Definition at line 690 of file DTDDUWords.h.

References VarParsing::obj.

690 { *this = obj; }
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
DTTDCErrorWord::DTTDCErrorWord ( const uint32_t  index)
inline

Definition at line 692 of file DTDDUWords.h.

692  :
693  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:723
virtual DTTDCErrorWord::~DTTDCErrorWord ( )
inlinevirtual

Destructor.

Definition at line 696 of file DTDDUWords.h.

696 {}

Member Function Documentation

int DTTDCErrorWord::HU ( ) const
inline

Definition at line 700 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

Definition at line 699 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

Definition at line 698 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

698 { return (word_ & PC_MASK) >> PC_SHIFT;}
uint32_t word_
Definition: DTDDUWords.h:723
#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 704 of file DTDDUWords.h.

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

709  {
710 
711  word =
713  pc << PC_SHIFT |
714  paf << PAF_SHIFT |
715  hu << PAF_SHIFT |
716  tdc_id << TDC_ID_SHIFT |
717  0 << ERRORSHIFT |
718  tdc_error;
719  }
#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 702 of file DTDDUWords.h.

References TDC_ERROR_MASK, and word_.

Referenced by DTTDCErrorNotifier::print().

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

<== OBSOLETE!!

Definition at line 701 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

Referenced by DTTDCErrorNotifier::print().

701 { return (word_ & TDC_ID_MASK) >> TDC_ID_SHIFT;}
uint32_t word_
Definition: DTDDUWords.h:723
#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 723 of file DTDDUWords.h.

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