CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
DTROSDebugWord Class Reference

#include <DTDDUWords.h>

Public Member Functions

int cerosIdCerosStatus () const
 
int cerosIdRosStatus () const
 
int debugMessage () const
 
int debugType () const
 
int dontRead () const
 
 DTROSDebugWord ()
 Constructor. More...
 
 DTROSDebugWord (const DTROSDebugWord &obj)
 
 DTROSDebugWord (const uint32_t index)
 
int evIdMis () const
 
virtual ~DTROSDebugWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int debug_type)
 
static void set (uint32_t &word, int debug_type, int ceros_id)
 

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)

Author
M. Zanetti - INFN Padova

Definition at line 348 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTROSDebugWord::DTROSDebugWord ( )
inline

Constructor.

Definition at line 353 of file DTDDUWords.h.

353 {}
DTROSDebugWord::DTROSDebugWord ( const DTROSDebugWord obj)
inline

Definition at line 355 of file DTDDUWords.h.

References haddnano::obj.

355 { *this = obj; }
DTROSDebugWord::DTROSDebugWord ( const uint32_t  index)
inline

Definition at line 357 of file DTDDUWords.h.

virtual DTROSDebugWord::~DTROSDebugWord ( )
inlinevirtual

Destructor.

Definition at line 361 of file DTDDUWords.h.

361 {}

Member Function Documentation

int DTROSDebugWord::cerosIdCerosStatus ( ) const
inline

Definition at line 365 of file DTDDUWords.h.

References CEROS_ID_CEROS_STATUS_MASK, CEROS_ID_CEROS_STATUS_SHIFT, and DTROSWordType::word_.

uint32_t word_
Definition: DTDDUWords.h:394
#define CEROS_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:23
#define CEROS_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:22
int debugType() const
Definition: DTDDUWords.h:363
int DTROSDebugWord::cerosIdRosStatus ( ) const
inline

Definition at line 368 of file DTDDUWords.h.

References CEROS_ID_ROS_STATUS_MASK, and DTROSWordType::word_.

368 { return debugType()==4 ? (word_ & CEROS_ID_ROS_STATUS_MASK) : 0;}
uint32_t word_
Definition: DTDDUWords.h:394
#define CEROS_ID_ROS_STATUS_MASK
Definition: DTDDUWords.h:27
int debugType() const
Definition: DTDDUWords.h:363
int DTROSDebugWord::debugMessage ( ) const
inline

Definition at line 364 of file DTDDUWords.h.

References DEBUG_MESSAGE_MASK, and DTROSWordType::word_.

Referenced by DTROS25Unpacker::interpretRawData().

364 { return (word_ & DEBUG_MESSAGE_MASK) ;}
uint32_t word_
Definition: DTDDUWords.h:394
#define DEBUG_MESSAGE_MASK
Definition: DTDDUWords.h:21
int DTROSDebugWord::debugType ( ) const
inline

Definition at line 363 of file DTDDUWords.h.

References DEBUG_TYPE_MASK, DEBUG_TYPE_SHIFT, and DTROSWordType::word_.

Referenced by DTROS25Unpacker::interpretRawData().

363 { return (word_ & DEBUG_TYPE_MASK) >> DEBUG_TYPE_SHIFT;}
#define DEBUG_TYPE_MASK
Definition: DTDDUWords.h:19
uint32_t word_
Definition: DTDDUWords.h:394
#define DEBUG_TYPE_SHIFT
Definition: DTDDUWords.h:20
int DTROSDebugWord::dontRead ( ) const
inline

Definition at line 367 of file DTDDUWords.h.

References DONTREAD_CEROS_STATUS_MASK, and DTROSWordType::word_.

367 { return debugType()==3 ? (word_ & DONTREAD_CEROS_STATUS_MASK) : 0;}
uint32_t word_
Definition: DTDDUWords.h:394
#define DONTREAD_CEROS_STATUS_MASK
Definition: DTDDUWords.h:26
int debugType() const
Definition: DTDDUWords.h:363
int DTROSDebugWord::evIdMis ( ) const
inline

Definition at line 366 of file DTDDUWords.h.

References EV_ID_CEROS_STATUS_MASK, EV_ID_CEROS_STATUS_SHIFT, and DTROSWordType::word_.

#define EV_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:25
uint32_t word_
Definition: DTDDUWords.h:394
int debugType() const
Definition: DTDDUWords.h:363
#define EV_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:24
static void DTROSDebugWord::set ( uint32_t &  word,
int  debug_type 
)
inlinestatic

Definition at line 370 of file DTDDUWords.h.

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

371  {
372 
373  word =
376  debug_type << DEBUG_TYPE_SHIFT |
377  504 << 15; // TEMPORARY
378  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define DEBUG_TYPE_SHIFT
Definition: DTDDUWords.h:20
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:192
static const uint32_t debugControlWord
Definition: DTDDUWords.h:189
static void DTROSDebugWord::set ( uint32_t &  word,
int  debug_type,
int  ceros_id 
)
inlinestatic

Definition at line 380 of file DTDDUWords.h.

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

382  {
383 
384  word =
387  debug_type << DEBUG_TYPE_SHIFT |
388  ceros_id << CEROS_ID_CEROS_STATUS_SHIFT |
389  1 << 15;
390  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
#define CEROS_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:23
#define DEBUG_TYPE_SHIFT
Definition: DTDDUWords.h:20
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:192
static const uint32_t debugControlWord
Definition: DTDDUWords.h:189

Member Data Documentation

uint32_t DTROSDebugWord::word_
private

Definition at line 394 of file DTDDUWords.h.