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.

271 { *this = obj; }

References getGTfromDQMFile::obj.

◆ DTROSErrorWord() [3/3]

DTROSErrorWord::DTROSErrorWord ( const uint32_t  index)
inline

Definition at line 273 of file DTDDUWords.h.

273 : word_(index) {}

◆ ~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.

280 { return errorType() == 4 ? (word_ & ERROR_CEROS_ID_MASK) : 0; }

References ERROR_CEROS_ID_MASK, errorType(), and word_.

◆ errorType()

int DTROSErrorWord::errorType ( ) const
inline

◆ robID()

int DTROSErrorWord::robID ( ) const
inline

◆ set()

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

Member Data Documentation

◆ word_

uint32_t DTROSErrorWord::word_
private

Definition at line 288 of file DTDDUWords.h.

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

WORDCONTROLSHIFT
#define WORDCONTROLSHIFT
Definition: DTDDUWords.h:11
ERROR_CEROS_ID_MASK
#define ERROR_CEROS_ID_MASK
Definition: DTDDUWords.h:43
DTROSErrorWord::word_
uint32_t word_
Definition: DTDDUWords.h:288
ERROR_TYPE_MASK
#define ERROR_TYPE_MASK
Definition: DTDDUWords.h:39
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
DTROSWordType::errorControlWord
static const uint32_t errorControlWord
Definition: DTDDUWords.h:184
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
ERRORSHIFT
#define ERRORSHIFT
Definition: DTDDUWords.h:17
DTROSErrorWord::errorType
int errorType() const
Definition: DTDDUWords.h:278
WORDTYPESHIFT
#define WORDTYPESHIFT
Definition: DTDDUWords.h:13
ERROR_TYPE_SHIFT
#define ERROR_TYPE_SHIFT
Definition: DTDDUWords.h:40
ERROR_ROB_ID_MASK
#define ERROR_ROB_ID_MASK
Definition: DTDDUWords.h:41
DTROSWordType::rosTypeWord
static const uint32_t rosTypeWord
Word Type bits definitions.
Definition: DTDDUWords.h:188
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
ERROR_ROB_ID_SHIFT
#define ERROR_ROB_ID_SHIFT
Definition: DTDDUWords.h:42