CMS 3D CMS Logo

DTTDCMeasurementWord Class Reference

DT TDC Measurement interpreter. More...

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

List of all members.

Public Member Functions

 DTTDCMeasurementWord (const uint32_t index)
 DTTDCMeasurementWord (const DTTDCMeasurementWord &obj)
 DTTDCMeasurementWord ()
 Constructor.
int HU () const
int PAF () const
int PC () const
int tdcChannel () const
int tdcID () const
 <== OBSOLETE!!
int tdcTime () const
virtual ~DTTDCMeasurementWord ()
 Destructor.

Static Public Member Functions

static void set (uint32_t &word, int pc, int paf, int hu, int tdc_id, int tdc_channel, int tdc_time)

Private Attributes

uint32_t word_


Detailed Description

DT TDC Measurement interpreter.

It interprets the Parity Checks, FIFO occupancy, Lokeced channels (all 1 bit), the TDC_ID (2 bits), the TDC channel (5 bits), and the TDC time (19 bits)

Date
2007/04/02 15:53:18
Revision
1.10
Author:
M. Zanetti - INFN Padova

Definition at line 612 of file DTDDUWords.h.


Constructor & Destructor Documentation

DTTDCMeasurementWord::DTTDCMeasurementWord (  )  [inline]

Constructor.

Definition at line 617 of file DTDDUWords.h.

00617 {}

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

Definition at line 619 of file DTDDUWords.h.

00619 { *this = obj; }

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

Definition at line 621 of file DTDDUWords.h.

00621                                              : 
00622     word_(index) {}

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

Destructor.

Definition at line 625 of file DTDDUWords.h.

00625 {}


Member Function Documentation

int DTTDCMeasurementWord::HU (  )  const [inline]

Definition at line 629 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

int DTTDCMeasurementWord::PAF (  )  const [inline]

Definition at line 628 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

int DTTDCMeasurementWord::PC (  )  const [inline]

Definition at line 627 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

Referenced by DTDataIntegrityTask::processROS25().

00627 { return (word_ & PC_MASK) >> PC_SHIFT;} 

static void DTTDCMeasurementWord::set ( uint32_t &  word,
int  pc,
int  paf,
int  hu,
int  tdc_id,
int  tdc_channel,
int  tdc_time 
) [inline, static]

Definition at line 635 of file DTDDUWords.h.

References PAF_SHIFT, PC_SHIFT, TDC_CHANNEL_SHIFT, TDC_ID_SHIFT, DTROSWordType::tdcDataControlWord, and WORDCONTROLSHIFT.

Referenced by DTDigiToRaw::createFedBuffers().

00641                                 {
00642     
00643     word = 
00644       DTROSWordType::tdcDataControlWord << WORDCONTROLSHIFT |
00645       pc << PC_SHIFT |
00646       paf << PAF_SHIFT |
00647       hu << PAF_SHIFT |
00648       tdc_id << TDC_ID_SHIFT |
00649       tdc_channel << TDC_CHANNEL_SHIFT |
00650       tdc_time;
00651   }

int DTTDCMeasurementWord::tdcChannel (  )  const [inline]

Definition at line 631 of file DTDDUWords.h.

References TDC_CHANNEL_MASK, TDC_CHANNEL_SHIFT, and word_.

Referenced by DTDigiToRaw::createFedBuffers(), and DTROS25Unpacker::interpretRawData().

00631 { return (word_ & TDC_CHANNEL_MASK) >> TDC_CHANNEL_SHIFT;} 

int DTTDCMeasurementWord::tdcID (  )  const [inline]

<== OBSOLETE!!

Definition at line 630 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

Referenced by DTDigiToRaw::createFedBuffers(), and DTROS25Unpacker::interpretRawData().

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

int DTTDCMeasurementWord::tdcTime (  )  const [inline]

Definition at line 632 of file DTDDUWords.h.

References TDC_TIME_MASK, TDC_TIME_SHIFT, and word_.

Referenced by DTDigiToRaw::createFedBuffers(), and DTROS25Unpacker::interpretRawData().

00632 { return (word_ & TDC_TIME_MASK) >> TDC_TIME_SHIFT;} 


Member Data Documentation

uint32_t DTTDCMeasurementWord::word_ [private]

Definition at line 657 of file DTDDUWords.h.

Referenced by HU(), PAF(), PC(), tdcChannel(), tdcID(), and tdcTime().


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