CMS 3D CMS Logo

DTTDCErrorWord Class Reference

DT TDC Error interpreter. More...

#include <EventFilter/DTRawToDigi/interface/DTDDUWords.h>

List of all members.

Public Member Functions

 DTTDCErrorWord (const uint32_t index)
 DTTDCErrorWord (const DTTDCErrorWord &obj)
 DTTDCErrorWord ()
 Constructor.
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
2007/04/02 15:53:18
Revision
1.10
Author:
M. Zanetti - INFN Padova

Definition at line 670 of file DTDDUWords.h.


Constructor & Destructor Documentation

DTTDCErrorWord::DTTDCErrorWord (  )  [inline]

Constructor.

Definition at line 675 of file DTDDUWords.h.

00675 {}

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

Definition at line 677 of file DTDDUWords.h.

00677 { *this = obj; }

DTTDCErrorWord::DTTDCErrorWord ( const uint32_t  index  )  [inline]

Definition at line 679 of file DTDDUWords.h.

00679                                        : 
00680     word_(index) {}

virtual DTTDCErrorWord::~DTTDCErrorWord (  )  [inline, virtual]

Destructor.

Definition at line 683 of file DTDDUWords.h.

00683 {}


Member Function Documentation

int DTTDCErrorWord::HU (  )  const [inline]

Definition at line 687 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

int DTTDCErrorWord::PAF (  )  const [inline]

Definition at line 686 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

int DTTDCErrorWord::PC (  )  const [inline]

Definition at line 685 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

00685 { 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 691 of file DTDDUWords.h.

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

00696                                  {
00697     
00698     word = 
00699       DTROSWordType::errorControlWord << WORDCONTROLSHIFT |
00700       pc << PC_SHIFT |
00701       paf << PAF_SHIFT |
00702       hu << PAF_SHIFT |
00703       tdc_id << TDC_ID_SHIFT |
00704       0 << ERRORSHIFT |
00705       tdc_error;
00706   }

int DTTDCErrorWord::tdcError (  )  const [inline]

Definition at line 689 of file DTDDUWords.h.

References TDC_ERROR_MASK, and word_.

Referenced by DTTDCErrorNotifier::print().

00689 { return (word_ & TDC_ERROR_MASK);} 

int DTTDCErrorWord::tdcID (  )  const [inline]

<== OBSOLETE!!

Definition at line 688 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

Referenced by DTTDCErrorNotifier::print().

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


Member Data Documentation

uint32_t DTTDCErrorWord::word_ [private]

Definition at line 710 of file DTDDUWords.h.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:19:07 2009 for CMSSW by  doxygen 1.5.4