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

Constructor & Destructor Documentation

◆ DTROSDebugWord() [1/2]

DTROSDebugWord::DTROSDebugWord ( )
inline

Constructor.

Definition at line 293 of file DTDDUWords.h.

293 {}

◆ DTROSDebugWord() [2/2]

DTROSDebugWord::DTROSDebugWord ( const uint32_t  index)
inline

Definition at line 295 of file DTDDUWords.h.

◆ ~DTROSDebugWord()

virtual DTROSDebugWord::~DTROSDebugWord ( )
inlinevirtual

Destructor.

Definition at line 298 of file DTDDUWords.h.

298 {}

Member Function Documentation

◆ cerosIdCerosStatus()

int DTROSDebugWord::cerosIdCerosStatus ( ) const
inline

Definition at line 302 of file DTDDUWords.h.

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

302  {
304  }
uint32_t word_
Definition: DTDDUWords.h:321
#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:300

◆ cerosIdRosStatus()

int DTROSDebugWord::cerosIdRosStatus ( ) const
inline

Definition at line 307 of file DTDDUWords.h.

References CEROS_ID_ROS_STATUS_MASK, debugType(), and word_.

307 { return debugType() == 4 ? (word_ & CEROS_ID_ROS_STATUS_MASK) : 0; }
uint32_t word_
Definition: DTDDUWords.h:321
#define CEROS_ID_ROS_STATUS_MASK
Definition: DTDDUWords.h:27
int debugType() const
Definition: DTDDUWords.h:300

◆ debugMessage()

int DTROSDebugWord::debugMessage ( ) const
inline

Definition at line 301 of file DTDDUWords.h.

References DEBUG_MESSAGE_MASK, and word_.

Referenced by DTROS25Unpacker::interpretRawData().

301 { return (word_ & DEBUG_MESSAGE_MASK); }
uint32_t word_
Definition: DTDDUWords.h:321
#define DEBUG_MESSAGE_MASK
Definition: DTDDUWords.h:21

◆ debugType()

int DTROSDebugWord::debugType ( ) const
inline

Definition at line 300 of file DTDDUWords.h.

References DEBUG_TYPE_MASK, DEBUG_TYPE_SHIFT, and word_.

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

300 { return (word_ & DEBUG_TYPE_MASK) >> DEBUG_TYPE_SHIFT; }
#define DEBUG_TYPE_MASK
Definition: DTDDUWords.h:19
uint32_t word_
Definition: DTDDUWords.h:321
#define DEBUG_TYPE_SHIFT
Definition: DTDDUWords.h:20

◆ dontRead()

int DTROSDebugWord::dontRead ( ) const
inline

Definition at line 306 of file DTDDUWords.h.

References debugType(), DONTREAD_CEROS_STATUS_MASK, and word_.

306 { return debugType() == 3 ? (word_ & DONTREAD_CEROS_STATUS_MASK) : 0; }
uint32_t word_
Definition: DTDDUWords.h:321
#define DONTREAD_CEROS_STATUS_MASK
Definition: DTDDUWords.h:26
int debugType() const
Definition: DTDDUWords.h:300

◆ evIdMis()

int DTROSDebugWord::evIdMis ( ) const
inline

Definition at line 305 of file DTDDUWords.h.

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

305 { 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:321
#define EV_ID_CEROS_STATUS_MASK
Definition: DTDDUWords.h:24
int debugType() const
Definition: DTDDUWords.h:300

◆ set() [1/2]

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

Definition at line 309 of file DTDDUWords.h.

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

310  {
312  debug_type << DEBUG_TYPE_SHIFT | 504 << 15; // TEMPORARY
313  }
#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:186
static const uint32_t debugControlWord
Definition: DTDDUWords.h:183

◆ set() [2/2]

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

Definition at line 315 of file DTDDUWords.h.

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

315  {
317  debug_type << DEBUG_TYPE_SHIFT | ceros_id << CEROS_ID_CEROS_STATUS_SHIFT | 1 << 15;
318  }
#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:186
static const uint32_t debugControlWord
Definition: DTDDUWords.h:183

Member Data Documentation

◆ word_

uint32_t DTROSDebugWord::word_
private