CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 346 of file DTDDUWords.h.

Constructor & Destructor Documentation

DTROSDebugWord::DTROSDebugWord ( )
inline

Constructor.

Definition at line 351 of file DTDDUWords.h.

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

Definition at line 353 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

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

Definition at line 355 of file DTDDUWords.h.

355  :
356  word_(index) {}
uint32_t word_
Definition: DTDDUWords.h:392
virtual DTROSDebugWord::~DTROSDebugWord ( )
inlinevirtual

Destructor.

Definition at line 359 of file DTDDUWords.h.

359 {}

Member Function Documentation

int DTROSDebugWord::cerosIdCerosStatus ( ) const
inline

Definition at line 363 of file DTDDUWords.h.

References CEROS_ID_CEROS_STATUS_MASK, CEROS_ID_CEROS_STATUS_SHIFT, debugType(), and word_.

uint32_t word_
Definition: DTDDUWords.h:392
#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:361
int DTROSDebugWord::cerosIdRosStatus ( ) const
inline

Definition at line 366 of file DTDDUWords.h.

References CEROS_ID_ROS_STATUS_MASK, debugType(), and word_.

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

Definition at line 362 of file DTDDUWords.h.

References DEBUG_MESSAGE_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

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

Definition at line 361 of file DTDDUWords.h.

References DEBUG_TYPE_MASK, DEBUG_TYPE_SHIFT, and word_.

Referenced by cerosIdCerosStatus(), cerosIdRosStatus(), dontRead(), evIdMis(), and DTROS25Unpacker::interpretRawData().

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

Definition at line 365 of file DTDDUWords.h.

References debugType(), DONTREAD_CEROS_STATUS_MASK, and word_.

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

Definition at line 364 of file DTDDUWords.h.

References debugType(), EV_ID_CEROS_STATUS_MASK, EV_ID_CEROS_STATUS_SHIFT, and word_.

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

Definition at line 368 of file DTDDUWords.h.

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

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

369  {
370 
371  word =
374  debug_type << DEBUG_TYPE_SHIFT |
375  504 << 15; // TEMPORARY
376  }
#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:190
static const uint32_t debugControlWord
Definition: DTDDUWords.h:187
static void DTROSDebugWord::set ( uint32_t &  word,
int  debug_type,
int  ceros_id 
)
inlinestatic

Definition at line 378 of file DTDDUWords.h.

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

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

380  {
381 
382  word =
385  debug_type << DEBUG_TYPE_SHIFT |
386  ceros_id << CEROS_ID_CEROS_STATUS_SHIFT |
387  1 << 15;
388  }
#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:190
static const uint32_t debugControlWord
Definition: DTDDUWords.h:187

Member Data Documentation

uint32_t DTROSDebugWord::word_
private