CMS 3D CMS Logo

DTTDCHeaderWord Class Reference

DT TDC Header interpreter. More...

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

List of all members.

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

uint32_t word_


Detailed Description

DT TDC Header 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 Bunch ID (12 bits).

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

Definition at line 501 of file DTDDUWords.h.


Constructor & Destructor Documentation

DTTDCHeaderWord::DTTDCHeaderWord (  )  [inline]

Constructor.

Definition at line 506 of file DTDDUWords.h.

00506 {}

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

Definition at line 508 of file DTDDUWords.h.

00508 { *this = obj; }

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

Definition at line 510 of file DTDDUWords.h.

00510                                         : 
00511     word_(index) {}

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

Destructor.

Definition at line 514 of file DTDDUWords.h.

00514 {}


Member Function Documentation

int DTTDCHeaderWord::bunchID (  )  const [inline]

Definition at line 521 of file DTDDUWords.h.

References BUNCH_ID_MASK, and word_.

00521 { return (word_ & BUNCH_ID_MASK);} 

int DTTDCHeaderWord::eventID (  )  const [inline]

Definition at line 520 of file DTDDUWords.h.

References EVENT_ID_MASK, EVENT_ID_SHIFT, and word_.

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

int DTTDCHeaderWord::HU (  )  const [inline]

Definition at line 518 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

int DTTDCHeaderWord::PAF (  )  const [inline]

Definition at line 517 of file DTDDUWords.h.

References PAF_MASK, PAF_SHIFT, and word_.

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

int DTTDCHeaderWord::PC (  )  const [inline]

Definition at line 516 of file DTDDUWords.h.

References PC_MASK, PC_SHIFT, and word_.

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

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

Definition at line 523 of file DTDDUWords.h.

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

00529                                 {
00530     
00531     word = 
00532       DTROSWordType::tdcHeaderControlWord << WORDCONTROLSHIFT |
00533       pc << PC_SHIFT |
00534       paf << PAF_SHIFT |
00535       hu << PAF_SHIFT |
00536       tdc_id << TDC_ID_SHIFT |
00537       event_id << EVENT_ID_SHIFT |
00538       bunch_id;
00539   }

int DTTDCHeaderWord::tdcID (  )  const [inline]

<== OBSOLETE!!

Definition at line 519 of file DTDDUWords.h.

References TDC_ID_MASK, TDC_ID_SHIFT, and word_.

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


Member Data Documentation

uint32_t DTTDCHeaderWord::word_ [private]

Definition at line 544 of file DTDDUWords.h.

Referenced by bunchID(), eventID(), HU(), PAF(), PC(), 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