CMS 3D CMS Logo

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

#include <DTDDUWords.h>

Public Member Functions

int cerosID () const
 
 DTROSErrorWord ()
 Constructor. More...
 
 DTROSErrorWord (const DTROSErrorWord &obj)
 
 DTROSErrorWord (const uint32_t index)
 
int errorType () const
 
int robID () const
 
virtual ~DTROSErrorWord ()
 Destructor. More...
 

Static Public Member Functions

static void set (uint32_t &word, int error_type, int rob_id)
 

Private Attributes

uint32_t word_
 

Detailed Description

DT ROS Error interpreter. It interprets the Error type, the ROB_ID (2 bits) and the CEROS ID (6 bits)

Author
M. Zanetti - INFN Padova

Definition at line 266 of file DTDDUWords.h.

Constructor & Destructor Documentation

◆ DTROSErrorWord() [1/3]

DTROSErrorWord::DTROSErrorWord ( )
inline

Constructor.

Definition at line 269 of file DTDDUWords.h.

269 {}

◆ DTROSErrorWord() [2/3]

DTROSErrorWord::DTROSErrorWord ( const DTROSErrorWord obj)
inline

Definition at line 271 of file DTDDUWords.h.

References getGTfromDQMFile::obj.

271 { *this = obj; }

◆ DTROSErrorWord() [3/3]

DTROSErrorWord::DTROSErrorWord ( const uint32_t  index)
inline

Definition at line 273 of file DTDDUWords.h.

◆ ~DTROSErrorWord()

virtual DTROSErrorWord::~DTROSErrorWord ( )
inlinevirtual

Destructor.

Definition at line 276 of file DTDDUWords.h.

276 {}

Member Function Documentation

◆ cerosID()

int DTROSErrorWord::cerosID ( ) const
inline

Definition at line 280 of file DTDDUWords.h.

References ERROR_CEROS_ID_MASK, errorType(), and word_.

280 { return errorType() == 4 ? (word_ & ERROR_CEROS_ID_MASK) : 0; }
int errorType() const
Definition: DTDDUWords.h:278
#define ERROR_CEROS_ID_MASK
Definition: DTDDUWords.h:43
uint32_t word_
Definition: DTDDUWords.h:288

◆ errorType()

int DTROSErrorWord::errorType ( ) const
inline

Definition at line 278 of file DTDDUWords.h.

References ERROR_TYPE_MASK, ERROR_TYPE_SHIFT, and word_.

Referenced by cerosID(), DTROS25Unpacker::interpretRawData(), and DTROSErrorNotifier::print().

278 { return (word_ & ERROR_TYPE_MASK) >> ERROR_TYPE_SHIFT; }
#define ERROR_TYPE_MASK
Definition: DTDDUWords.h:39
#define ERROR_TYPE_SHIFT
Definition: DTDDUWords.h:40
uint32_t word_
Definition: DTDDUWords.h:288

◆ robID()

int DTROSErrorWord::robID ( ) const
inline

Definition at line 279 of file DTDDUWords.h.

References ERROR_ROB_ID_MASK, ERROR_ROB_ID_SHIFT, and word_.

Referenced by DTROS25Unpacker::interpretRawData(), and DTROSErrorNotifier::print().

279 { return (word_ & ERROR_ROB_ID_MASK) >> ERROR_ROB_ID_SHIFT; }
#define ERROR_ROB_ID_MASK
Definition: DTDDUWords.h:41
uint32_t word_
Definition: DTDDUWords.h:288
#define ERROR_ROB_ID_SHIFT
Definition: DTDDUWords.h:42

◆ set()

static void DTROSErrorWord::set ( uint32_t &  word,
int  error_type,
int  rob_id 
)
inlinestatic

Definition at line 282 of file DTDDUWords.h.

References ERROR_ROB_ID_SHIFT, ERROR_TYPE_SHIFT, DTROSWordType::errorControlWord, ERRORSHIFT, DTROSWordType::rosTypeWord, WORDCONTROLSHIFT, and WORDTYPESHIFT.

282  {
284  error_type << ERROR_TYPE_SHIFT | rob_id << ERROR_ROB_ID_SHIFT | 1 << ERRORSHIFT;
285  }
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
uint64_t word
static const uint32_t errorControlWord
Definition: DTDDUWords.h:184
#define ERRORSHIFT
Definition: DTDDUWords.h:17
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:188
#define ERROR_TYPE_SHIFT
Definition: DTDDUWords.h:40
#define ERROR_ROB_ID_SHIFT
Definition: DTDDUWords.h:42

Member Data Documentation

◆ word_

uint32_t DTROSErrorWord::word_
private

Definition at line 288 of file DTDDUWords.h.

Referenced by cerosID(), errorType(), and robID().