Pixel error -- collection of errors and error information. More...
#include <SiPixelRawDataError.h>
Public Member Functions | |
int | getFedId () const |
std::string | getMessage () const |
int | getType () const |
cms_uint32_t | getWord32 () const |
cms_uint64_t | getWord64 () const |
void | setFedId (int fedId) |
void | setMessage () |
void | setType (int errorType) |
void | setWord32 (cms_uint32_t errorWord32) |
void | setWord64 (cms_uint64_t errorWord64) |
SiPixelRawDataError (cms_uint32_t errorWord32, const int errorType, int fedId) | |
Constructor for 32-bit error word. | |
SiPixelRawDataError () | |
Default constructor. | |
SiPixelRawDataError (cms_uint64_t errorWord64, const int errorType, int fedId) | |
Constructor with 64-bit error word and type included (header or trailer word) | |
~SiPixelRawDataError () | |
Destructor. | |
Private Attributes | |
std::string | errorMessage_ |
int | errorType_ |
cms_uint32_t | errorWord32_ |
cms_uint64_t | errorWord64_ |
int | fedId_ |
Pixel error -- collection of errors and error information.
Class to contain and store all information about errors
Definition at line 19 of file SiPixelRawDataError.h.
SiPixelRawDataError::SiPixelRawDataError | ( | ) |
SiPixelRawDataError::SiPixelRawDataError | ( | cms_uint32_t | errorWord32, |
const int | errorType, | ||
int | fedId | ||
) |
Constructor for 32-bit error word.
Definition at line 17 of file SiPixelRawDataError.cc.
References setMessage().
: errorWord32_(errorWord32), errorType_(errorType), fedId_(fedId) { setMessage(); }
SiPixelRawDataError::SiPixelRawDataError | ( | cms_uint64_t | errorWord64, |
const int | errorType, | ||
int | fedId | ||
) |
Constructor with 64-bit error word and type included (header or trailer word)
Definition at line 25 of file SiPixelRawDataError.cc.
References setMessage().
: errorWord64_(errorWord64), errorType_(errorType), fedId_(fedId) { setMessage(); }
SiPixelRawDataError::~SiPixelRawDataError | ( | ) |
int SiPixelRawDataError::getFedId | ( | ) | const [inline] |
Definition at line 40 of file SiPixelRawDataError.h.
References fedId_.
Referenced by operator<().
{return fedId_;} // the fedId where the error occured
std::string SiPixelRawDataError::getMessage | ( | ) | const [inline] |
Definition at line 41 of file SiPixelRawDataError.h.
References errorMessage_.
{return errorMessage_;} // the error message to be displayed with the error
int SiPixelRawDataError::getType | ( | ) | const [inline] |
Definition at line 39 of file SiPixelRawDataError.h.
References errorType_.
{return errorType_;} // the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors)
cms_uint32_t SiPixelRawDataError::getWord32 | ( | ) | const [inline] |
Definition at line 37 of file SiPixelRawDataError.h.
References errorWord32_.
{return errorWord32_;} // the 32-bit word that contains the error information
cms_uint64_t SiPixelRawDataError::getWord64 | ( | ) | const [inline] |
Definition at line 38 of file SiPixelRawDataError.h.
References errorWord64_.
{return errorWord64_;} // the 64-bit word that contains the error information
void SiPixelRawDataError::setFedId | ( | int | fedId | ) |
void SiPixelRawDataError::setMessage | ( | ) |
Definition at line 56 of file SiPixelRawDataError.cc.
References errorMessage_, and errorType_.
Referenced by setType(), and SiPixelRawDataError().
{ switch (errorType_) { case(25) : { errorMessage_ = "Error: ROC=25"; break; } case(26) : { errorMessage_ = "Error: Gap word"; break; } case(27) : { errorMessage_ = "Error: Dummy word"; break; } case(28) : { errorMessage_ = "Error: FIFO nearly full"; break; } case(29) : { errorMessage_ = "Error: Timeout"; break; } case(30) : { errorMessage_ = "Error: Trailer"; break; } case(31) : { errorMessage_ = "Error: Event number mismatch"; break; } case(32) : { errorMessage_ = "Error: Invalid or missing header"; break; } case(33) : { errorMessage_ = "Error: Invalid or missing trailer"; break; } case(34) : { errorMessage_ = "Error: Size mismatch"; break; } case(35) : { errorMessage_ = "Error: Invalid channel"; break; } case(36) : { errorMessage_ = "Error: Invalid ROC number"; break; } case(37) : { errorMessage_ = "Error: Invalid dcol/pixel address"; break; } default: errorMessage_ = "Error: Unknown error type"; }; }
void SiPixelRawDataError::setType | ( | int | errorType | ) |
Definition at line 47 of file SiPixelRawDataError.cc.
References errorType_, and setMessage().
{ errorType_ = errorType; setMessage(); }
void SiPixelRawDataError::setWord32 | ( | cms_uint32_t | errorWord32 | ) |
Definition at line 39 of file SiPixelRawDataError.cc.
References errorWord32_.
{ errorWord32_ = errorWord32; }
void SiPixelRawDataError::setWord64 | ( | cms_uint64_t | errorWord64 | ) |
Definition at line 43 of file SiPixelRawDataError.cc.
References errorWord64_.
{ errorWord64_ = errorWord64; }
std::string SiPixelRawDataError::errorMessage_ [private] |
Definition at line 49 of file SiPixelRawDataError.h.
Referenced by getMessage(), and setMessage().
int SiPixelRawDataError::errorType_ [private] |
Definition at line 47 of file SiPixelRawDataError.h.
Referenced by getType(), setMessage(), and setType().
Definition at line 45 of file SiPixelRawDataError.h.
Referenced by getWord32(), and setWord32().
Definition at line 46 of file SiPixelRawDataError.h.
Referenced by getWord64(), and setWord64().
int SiPixelRawDataError::fedId_ [private] |
Definition at line 48 of file SiPixelRawDataError.h.
Referenced by getFedId(), and setFedId().