CMS 3D CMS Logo

DTROSDebugWord Class Reference

DT ROS Debug interpreter. More...

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

List of all members.

Public Member Functions

int debugMessage () const
int debugType () const
 DTROSDebugWord (const uint32_t index)
 DTROSDebugWord (const DTROSDebugWord &obj)
 DTROSDebugWord ()
 Constructor.
virtual ~DTROSDebugWord ()
 Destructor.

Static Public Member Functions

static void set (uint32_t &word, int debug_type)

Private Attributes

uint32_t word_


Detailed Description

DT ROS Debug interpreter.

It interprets the Debug type (3 bits) and the debug message (in the first 15 bits)

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

Definition at line 359 of file DTDDUWords.h.


Constructor & Destructor Documentation

DTROSDebugWord::DTROSDebugWord (  )  [inline]

Constructor.

Definition at line 364 of file DTDDUWords.h.

00364 {}

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

Definition at line 366 of file DTDDUWords.h.

00366 { *this = obj; }

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

Definition at line 368 of file DTDDUWords.h.

00368                                        : 
00369     word_(index) {}

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

Destructor.

Definition at line 372 of file DTDDUWords.h.

00372 {}


Member Function Documentation

int DTROSDebugWord::debugMessage (  )  const [inline]

Definition at line 375 of file DTDDUWords.h.

References DEBUG_MESSAGE_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

00375 { return (word_ & DEBUG_MESSAGE_MASK) ;} 

int DTROSDebugWord::debugType (  )  const [inline]

Definition at line 374 of file DTDDUWords.h.

References DEBUG_TYPE_MASK, DEBUG_TYPE_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

00374 { return (word_ & DEBUG_TYPE_MASK) >> DEBUG_TYPE_SHIFT;} 

static void DTROSDebugWord::set ( uint32_t &  word,
int  debug_type 
) [inline, static]

Definition at line 377 of file DTDDUWords.h.

References DEBUG_TYPE_SHIFT, DTROSWordType::debugControlWord, DTROSWordType::rosTypeWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

00378                                   {
00379     
00380     word = 
00381       DTROSWordType::debugControlWord << WORDCONTROLSHIFT |
00382       DTROSWordType::rosTypeWord << WORDTYPESHIFT |
00383       debug_type << DEBUG_TYPE_SHIFT |
00384       504 << 15; // TEMPORARY
00385   }


Member Data Documentation

uint32_t DTROSDebugWord::word_ [private]

Definition at line 389 of file DTDDUWords.h.

Referenced by debugMessage(), and debugType().


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