CMS 3D CMS Logo

DTTDCTrailerWord Class Reference

DT TDC Trailer interpreter. More...

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

List of all members.

Public Member Functions

 DTTDCTrailerWord (const uint32_t index)
 DTTDCTrailerWord (const DTTDCTrailerWord &obj)
 DTTDCTrailerWord ()
 Constructor.
int eventID () const
int HU () const
int PAF () const
int PC () const
int tdcID () const
 <== OBSOLETE!!
int wordCount () const
virtual ~DTTDCTrailerWord ()
 Destructor.

Static Public Member Functions

static void set (uint32_t &word, int pc, int paf, int hu, int tdc_id, int event_id, int word_count)

Private Attributes

uint32_t word_


Detailed Description

DT TDC Trailer interpreter.

It interprets the Parity Checks, FIFO occupancy, Lokeced channels (all 1 bit), the TDC_ID (2 bits), the Event ID (12 bits) and the Word ID (12 bits).

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

Definition at line 557 of file DTDDUWords.h.


Constructor & Destructor Documentation

DTTDCTrailerWord::DTTDCTrailerWord (  )  [inline]

Constructor.

Definition at line 562 of file DTDDUWords.h.

00562 {}

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

Definition at line 564 of file DTDDUWords.h.

00564 { *this = obj; }

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

Definition at line 566 of file DTDDUWords.h.

00566                                          : 
00567     word_(index) {}

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

Destructor.

Definition at line 570 of file DTDDUWords.h.

00570 {}


Member Function Documentation

int DTTDCTrailerWord::eventID (  )  const [inline]

Definition at line 576 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

00576 { return (word_ & EVENT_ID_MASK) >> EVENT_ID_SHIFT;} 

int DTTDCTrailerWord::HU (  )  const [inline]

Definition at line 574 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

int DTTDCTrailerWord::PAF (  )  const [inline]

Definition at line 573 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

int DTTDCTrailerWord::PC (  )  const [inline]

Definition at line 572 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

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

static void DTTDCTrailerWord::set ( uint32_t &  word,
int  pc,
int  paf,
int  hu,
int  tdc_id,
int  event_id,
int  word_count 
) [inline, static]

Definition at line 579 of file DTDDUWords.h.

References EVENT_ID_SHIFT, PAF_SHIFT, PC_SHIFT, TDC_ID_SHIFT, DTROSWordType::tdcTrailerControlWord, and WORDCONTROLSHIFT.

00585                                   {
00586     
00587     word = 
00588       DTROSWordType::tdcTrailerControlWord << WORDCONTROLSHIFT |
00589       pc << PC_SHIFT |
00590       paf << PAF_SHIFT |
00591       hu << PAF_SHIFT |
00592       tdc_id << TDC_ID_SHIFT |
00593       event_id << EVENT_ID_SHIFT |
00594       word_count;
00595   }

int DTTDCTrailerWord::tdcID (  )  const [inline]

<== OBSOLETE!!

Definition at line 575 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

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

int DTTDCTrailerWord::wordCount (  )  const [inline]

Definition at line 577 of file DTDDUWords.h.

References word_, and WORD_COUNT_MASK.

00577 { return (word_ & WORD_COUNT_MASK);} 


Member Data Documentation

uint32_t DTTDCTrailerWord::word_ [private]

Definition at line 599 of file DTDDUWords.h.

Referenced by eventID(), HU(), PAF(), PC(), tdcID(), and wordCount().


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