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 298 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTROSDebugWord::DTROSDebugWord ( )
inline

Constructor.

Definition at line 301 of file DTDDUWords.h.

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

Definition at line 303 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

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

Definition at line 305 of file DTDDUWords.h.

virtual DTROSDebugWord::~DTROSDebugWord ( )
inlinevirtual

Destructor.

Definition at line 308 of file DTDDUWords.h.

308 {}

Member Function Documentation

int DTROSDebugWord::cerosIdCerosStatus ( ) const
inline

Definition at line 312 of file DTDDUWords.h.

References CEROS_ID_CEROS_STATUS_MASK, CEROS_ID_CEROS_STATUS_SHIFT, and DTROSWordType::word_.

312  {
314  }
uint32_t word_
Definition: DTDDUWords.h:331
#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:310
int DTROSDebugWord::cerosIdRosStatus ( ) const
inline

Definition at line 317 of file DTDDUWords.h.

References CEROS_ID_ROS_STATUS_MASK, and DTROSWordType::word_.

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

Definition at line 311 of file DTDDUWords.h.

References DEBUG_MESSAGE_MASK, and DTROSWordType::word_.

Referenced by DTROS25Unpacker::interpretRawData().

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

Definition at line 310 of file DTDDUWords.h.

References DEBUG_TYPE_MASK, DEBUG_TYPE_SHIFT, and DTROSWordType::word_.

Referenced by DTROS25Unpacker::interpretRawData().

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

Definition at line 316 of file DTDDUWords.h.

References DONTREAD_CEROS_STATUS_MASK, and DTROSWordType::word_.

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

Definition at line 315 of file DTDDUWords.h.

References EV_ID_CEROS_STATUS_MASK, EV_ID_CEROS_STATUS_SHIFT, and DTROSWordType::word_.

315 { return debugType() == 3 ? (word_ & EV_ID_CEROS_STATUS_MASK) >> EV_ID_CEROS_STATUS_SHIFT : 0; }
#define EV_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:25
uint32_t word_
Definition: DTDDUWords.h:331
int debugType() const
Definition: DTDDUWords.h:310
#define EV_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:24
static void DTROSDebugWord::set ( uint32_t &  word,
int  debug_type 
)
inlinestatic

Definition at line 319 of file DTDDUWords.h.

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

320  {
322  debug_type << DEBUG_TYPE_SHIFT | 504 << 15; // TEMPORARY
323  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
#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:188
static const uint32_t debugControlWord
Definition: DTDDUWords.h:185
static void DTROSDebugWord::set ( uint32_t &  word,
int  debug_type,
int  ceros_id 
)
inlinestatic

Definition at line 325 of file DTDDUWords.h.

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

325  {
327  debug_type << DEBUG_TYPE_SHIFT | ceros_id << CEROS_ID_CEROS_STATUS_SHIFT | 1 << 15;
328  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
#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:188
static const uint32_t debugControlWord
Definition: DTDDUWords.h:185

Member Data Documentation

uint32_t DTROSDebugWord::word_
private

Definition at line 331 of file DTDDUWords.h.