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() [1/3]

DTROSDebugWord::DTROSDebugWord ( )
inline

Constructor.

Definition at line 301 of file DTDDUWords.h.

301 {}

◆ DTROSDebugWord() [2/3]

DTROSDebugWord::DTROSDebugWord ( const DTROSDebugWord obj)
inline

Definition at line 303 of file DTDDUWords.h.

303 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTROSDebugWord() [3/3]

DTROSDebugWord::DTROSDebugWord ( const uint32_t  index)
inline

Definition at line 305 of file DTDDUWords.h.

305 : word_(index) {}

◆ ~DTROSDebugWord()

virtual DTROSDebugWord::~DTROSDebugWord ( )
inlinevirtual

Destructor.

Definition at line 308 of file DTDDUWords.h.

308 {}

Member Function Documentation

◆ cerosIdCerosStatus()

int DTROSDebugWord::cerosIdCerosStatus ( ) const
inline

Definition at line 312 of file DTDDUWords.h.

312  {
314  }

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

◆ cerosIdRosStatus()

int DTROSDebugWord::cerosIdRosStatus ( ) const
inline

Definition at line 317 of file DTDDUWords.h.

317 { return debugType() == 4 ? (word_ & CEROS_ID_ROS_STATUS_MASK) : 0; }

References CEROS_ID_ROS_STATUS_MASK, debugType(), and word_.

◆ debugMessage()

int DTROSDebugWord::debugMessage ( ) const
inline

Definition at line 311 of file DTDDUWords.h.

311 { return (word_ & DEBUG_MESSAGE_MASK); }

References DEBUG_MESSAGE_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

◆ debugType()

int DTROSDebugWord::debugType ( ) const
inline

◆ dontRead()

int DTROSDebugWord::dontRead ( ) const
inline

Definition at line 316 of file DTDDUWords.h.

316 { return debugType() == 3 ? (word_ & DONTREAD_CEROS_STATUS_MASK) : 0; }

References debugType(), DONTREAD_CEROS_STATUS_MASK, and word_.

◆ evIdMis()

int DTROSDebugWord::evIdMis ( ) const
inline

Definition at line 315 of file DTDDUWords.h.

315 { return debugType() == 3 ? (word_ & EV_ID_CEROS_STATUS_MASK) >> EV_ID_CEROS_STATUS_SHIFT : 0; }

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

◆ set() [1/2]

static void DTROSDebugWord::set ( uint32_t &  word,
int  debug_type 
)
inlinestatic

◆ set() [2/2]

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

Member Data Documentation

◆ word_

uint32_t DTROSDebugWord::word_
private
DEBUG_TYPE_MASK
#define DEBUG_TYPE_MASK
Definition: DTDDUWords.h:19
DTROSDebugWord::debugType
int debugType() const
Definition: DTDDUWords.h:310
DTROSDebugWord::word_
uint32_t word_
Definition: DTDDUWords.h:331
EV_ID_CEROS_STATUS_SHIFT
#define EV_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:25
WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
CEROS_ID_ROS_STATUS_MASK
#define CEROS_ID_ROS_STATUS_MASK
Definition: DTDDUWords.h:27
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
CEROS_ID_CEROS_STATUS_SHIFT
#define CEROS_ID_CEROS_STATUS_SHIFT
Definition: DTDDUWords.h:23
DONTREAD_CEROS_STATUS_MASK
#define DONTREAD_CEROS_STATUS_MASK
Definition: DTDDUWords.h:26
DEBUG_TYPE_SHIFT
#define DEBUG_TYPE_SHIFT
Definition: DTDDUWords.h:20
WORDTYPESHIFT
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
DEBUG_MESSAGE_MASK
#define DEBUG_MESSAGE_MASK
Definition: DTDDUWords.h:21
DTROSWordType::debugControlWord
static const uint32_t debugControlWord
Definition: DTDDUWords.h:185
DTROSWordType::rosTypeWord
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:188
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
CEROS_ID_CEROS_STATUS_MASK
#define CEROS_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:22
EV_ID_CEROS_STATUS_MASK
#define EV_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:24