CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

DTTDCErrorWord Class Reference

#include <DTDDUWords.h>

List of all members.

Public Member Functions

 DTTDCErrorWord ()
 Constructor.
 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!!
virtual ~DTTDCErrorWord ()
 Destructor.

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/05/07 07:57:03
Revision:
1.13
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.

{}
DTTDCErrorWord::DTTDCErrorWord ( const DTTDCErrorWord obj) [inline]

Definition at line 690 of file DTDDUWords.h.

References VarParsing::obj.

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

Definition at line 692 of file DTDDUWords.h.

                                       : 
    word_(index) {}
virtual DTTDCErrorWord::~DTTDCErrorWord ( ) [inline, virtual]

Destructor.

Definition at line 696 of file DTDDUWords.h.

{}

Member Function Documentation

int DTTDCErrorWord::HU ( ) const [inline]

Definition at line 700 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

{ return (word_ & PAF_MASK) >> PAF_SHIFT;} 
int DTTDCErrorWord::PAF ( ) const [inline]

Definition at line 699 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

{ return (word_ & PAF_MASK) >> PAF_SHIFT;} 
int DTTDCErrorWord::PC ( ) const [inline]

Definition at line 698 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

{ return (word_ & PC_MASK) >> PC_SHIFT;} 
static void DTTDCErrorWord::set ( uint32_t &  word,
int  pc,
int  paf,
int  hu,
int  tdc_id,
int  tdc_error 
) [inline, static]

Definition at line 704 of file DTDDUWords.h.

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

                                 {
    
    word = 
      DTROSWordType::errorControlWord << WORDCONTROLSHIFT |
      pc << PC_SHIFT |
      paf << PAF_SHIFT |
      hu << PAF_SHIFT |
      tdc_id << TDC_ID_SHIFT |
      0 << ERRORSHIFT |
      tdc_error;
  }
int DTTDCErrorWord::tdcError ( ) const [inline]

Definition at line 702 of file DTDDUWords.h.

References TDC_ERROR_MASK, and word_.

Referenced by DTTDCErrorNotifier::print().

{ return (word_ & TDC_ERROR_MASK);} 
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().

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

Member Data Documentation

uint32_t DTTDCErrorWord::word_ [private]

Definition at line 723 of file DTDDUWords.h.

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