CMS 3D CMS Logo

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

Pixel error – collection of errors. More...

#include <CTPPSPixelDataError.h>

Public Member Functions

 CTPPSPixelDataError ()
 Default constructor. More...
 
 CTPPSPixelDataError (uint32_t errorWord32, const int errorType, int fedId)
 Constructor for 32-bit error word. More...
 
 CTPPSPixelDataError (uint64_t errorWord64, const int errorType, int fedId)
 Constructor with 64-bit error word and type included (header or trailer word) More...
 
const std::string & errorMessage () const
 the error message to be displayed with the error More...
 
int errorType () const
 the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors) More...
 
uint32_t errorWord32 () const
 the 32-bit word that contains the error information More...
 
uint64_t errorWord64 () const
 the 64-bit word that contains the error information More...
 
int fedId () const
 the fedId where the error occured More...
 
 ~CTPPSPixelDataError ()
 Destructor. More...
 

Private Attributes

int errorType_
 
uint32_t errorWord32_
 
uint64_t errorWord64_
 
int fedId_
 

Static Private Attributes

static const std::array< std::string, 14 > errorMessages_
 

Detailed Description

Pixel error – collection of errors.

Class storing info about pixel errors

Definition at line 17 of file CTPPSPixelDataError.h.

Constructor & Destructor Documentation

CTPPSPixelDataError::CTPPSPixelDataError ( )

Default constructor.

Definition at line 34 of file CTPPSPixelDataError.cc.

CTPPSPixelDataError::CTPPSPixelDataError ( uint32_t  errorWord32,
const int  errorType,
int  fedId 
)

Constructor for 32-bit error word.

Definition at line 36 of file CTPPSPixelDataError.cc.

uint32_t errorWord32() const
the 32-bit word that contains the error information
int errorType() const
the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors)...
int fedId() const
the fedId where the error occured
CTPPSPixelDataError::CTPPSPixelDataError ( uint64_t  errorWord64,
const int  errorType,
int  fedId 
)

Constructor with 64-bit error word and type included (header or trailer word)

Definition at line 39 of file CTPPSPixelDataError.cc.

References ~CTPPSPixelDataError().

int errorType() const
the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors)...
uint64_t errorWord64() const
the 64-bit word that contains the error information
int fedId() const
the fedId where the error occured
CTPPSPixelDataError::~CTPPSPixelDataError ( )
default

Destructor.

Referenced by CTPPSPixelDataError().

Member Function Documentation

const std::string& CTPPSPixelDataError::errorMessage ( ) const
inline

the error message to be displayed with the error

Definition at line 37 of file CTPPSPixelDataError.h.

References errorMessages_, and errorType_.

Referenced by Vispa.Main.Application.Application::_loadPlugins(), Vispa.Main.Application.Application::openFile(), and ConfigToolBase.ConfigToolBase::typeError().

37  {
38  if (errorType_ >= 25 && errorType_ <= 37)
39  return errorMessages_[errorType_ - 24];
40  return errorMessages_[0];
41  }
static const std::array< std::string, 14 > errorMessages_
int CTPPSPixelDataError::errorType ( ) const
inline

the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors)

Definition at line 33 of file CTPPSPixelDataError.h.

References errorType_.

33 { return errorType_; }
uint32_t CTPPSPixelDataError::errorWord32 ( ) const
inline

the 32-bit word that contains the error information

Definition at line 29 of file CTPPSPixelDataError.h.

References errorWord32_.

29 { return errorWord32_; }
uint64_t CTPPSPixelDataError::errorWord64 ( ) const
inline

the 64-bit word that contains the error information

Definition at line 31 of file CTPPSPixelDataError.h.

References errorWord64_.

31 { return errorWord64_; }
int CTPPSPixelDataError::fedId ( ) const
inline

the fedId where the error occured

Definition at line 35 of file CTPPSPixelDataError.h.

References fedId_.

Referenced by operator<().

35 { return fedId_; }

Member Data Documentation

const std::array< std::string, 14 > CTPPSPixelDataError::errorMessages_
staticprivate
Initial value:
= {{
"Error: Unknown error type",
"Error: ROC=25",
"Error: Gap word",
"Error: Dummy word",
"Error: FIFO nearly full",
"Error: Timeout",
"Error: Trailer",
"Error: Event number mismatch",
"Error: Invalid or missing header",
"Error: Invalid or missing trailer",
"Error: Size mismatch",
"Error: Invalid channel",
"Error: Invalid ROC number",
"Error: Invalid dcol/pixel address"}}

Definition at line 44 of file CTPPSPixelDataError.h.

Referenced by errorMessage().

int CTPPSPixelDataError::errorType_
private

Definition at line 48 of file CTPPSPixelDataError.h.

Referenced by errorMessage(), and errorType().

uint32_t CTPPSPixelDataError::errorWord32_
private

Definition at line 47 of file CTPPSPixelDataError.h.

Referenced by errorWord32().

uint64_t CTPPSPixelDataError::errorWord64_
private

Definition at line 46 of file CTPPSPixelDataError.h.

Referenced by errorWord64().

int CTPPSPixelDataError::fedId_
private

Definition at line 49 of file CTPPSPixelDataError.h.

Referenced by fedId().