CMS 3D CMS Logo

DTROSTrailerWord Class Reference

DT ROS Trailer interpreter. More...

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

List of all members.

Public Member Functions

int BCO () const
 DTROSTrailerWord (const uint32_t index)
 DTROSTrailerWord (const DTROSTrailerWord &obj)
 DTROSTrailerWord ()
 Constructor.
int ECHO () const
int ECLO () const
int EventWordCount () const
int TFF () const
int TPX () const
virtual ~DTROSTrailerWord ()
 Destructor.

Static Public Member Functions

static void set (uint32_t &word, int tff, int tpx, int echo, int eclo, int bco, int event_word_count)

Private Attributes

uint32_t word_


Detailed Description

DT ROS Trailer interpreter.

Information interpreted:

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

Definition at line 256 of file DTDDUWords.h.


Constructor & Destructor Documentation

DTROSTrailerWord::DTROSTrailerWord (  )  [inline]

Constructor.

Definition at line 261 of file DTDDUWords.h.

00261 {}

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

Definition at line 263 of file DTDDUWords.h.

00263 { *this = obj; }

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

Definition at line 265 of file DTDDUWords.h.

00265                                          : 
00266     word_(index) {} 

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

Destructor.

Definition at line 269 of file DTDDUWords.h.

00269 {}


Member Function Documentation

int DTROSTrailerWord::BCO (  )  const [inline]

Definition at line 275 of file DTDDUWords.h.

References BCO_MASK, BCO_SHIFT, and word_.

00275 { return (word_ & BCO_MASK) >> BCO_SHIFT; }

int DTROSTrailerWord::ECHO (  )  const [inline]

Definition at line 273 of file DTDDUWords.h.

References ECHO_MASK, ECHO_SHIFT, and word_.

Referenced by DTDataIntegrityTask::processROS25().

00273 { return (word_ & ECHO_MASK) >> ECHO_SHIFT; }

int DTROSTrailerWord::ECLO (  )  const [inline]

Definition at line 274 of file DTDDUWords.h.

References ECLO_MASK, ECLO_SHIFT, and word_.

00274 { return (word_ & ECLO_MASK) >> ECLO_SHIFT; }

int DTROSTrailerWord::EventWordCount (  )  const [inline]

Definition at line 276 of file DTDDUWords.h.

References EVENT_WORD_COUNT_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData(), and DTDataIntegrityTask::processROS25().

00276 { return word_ & EVENT_WORD_COUNT_MASK; }

static void DTROSTrailerWord::set ( uint32_t &  word,
int  tff,
int  tpx,
int  echo,
int  eclo,
int  bco,
int  event_word_count 
) [inline, static]

Definition at line 278 of file DTDDUWords.h.

References BCO_SHIFT, ECHO_SHIFT, ECLO_SHIFT, DTROSWordType::rosTypeWord, TFF_SHIFT, TPX_SHIFT, DTROSWordType::trailerControlWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

00284                                         {
00285     
00286     word = 
00287       DTROSWordType::trailerControlWord << WORDCONTROLSHIFT |
00288       DTROSWordType::rosTypeWord << WORDTYPESHIFT |
00289       tff << TFF_SHIFT |
00290       tpx << TPX_SHIFT |
00291       echo << ECHO_SHIFT |
00292       eclo << ECLO_SHIFT |
00293       bco << BCO_SHIFT |
00294       event_word_count;
00295   }

int DTROSTrailerWord::TFF (  )  const [inline]

Definition at line 271 of file DTDDUWords.h.

References TFF_MASK, TFF_SHIFT, and word_.

00271 { return (word_ & TFF_MASK) >> TFF_SHIFT; }

int DTROSTrailerWord::TPX (  )  const [inline]

Definition at line 272 of file DTDDUWords.h.

References TPX_MASK, TPX_SHIFT, and word_.

Referenced by DTDataIntegrityTask::processROS25().

00272 { return (word_ & TPX_MASK) >> TPX_SHIFT; }


Member Data Documentation

uint32_t DTROSTrailerWord::word_ [private]

Definition at line 300 of file DTDDUWords.h.

Referenced by BCO(), ECHO(), ECLO(), EventWordCount(), TFF(), and TPX().


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