20 std::string typestring;
21 switch (mErrorSource) {
23 typestring =
"decode error";
26 typestring =
"decode error";
29 typestring =
"fit error";
32 typestring =
"page error";
35 typestring =
"geometry error";
38 typestring =
"gain type error";
41 typestring =
"STU decoder error";
44 typestring =
"STU decoder error";
47 typestring =
"Link missing error";
50 typestring =
"unknown error";
53 typestring =
"unknown error";
57 if (mSubspecification >= 0) {
58 stream <<
", Subspecification: " << mSubspecification;
60 if (mHardwareAddress >= 0) {
61 stream <<
", hardware address 0x" << std::hex << mHardwareAddress << std::dec;
67 switch (errorTypeID) {
95 switch (errorTypeID) {
101 return "Minor ALTRO";
109 return "TRU Decoding";
111 return "STU Decoding";
113 return "Link missing";
Errors per FEE information.
int getErrorCode() const
Get the error code of the object.
static const char * getErrorTypeTitle(unsigned int errorTypeID)
Get the title of the error type.
static const char * getErrorTypeName(unsigned int errorTypeID)
Get the name of the error type.
int getFEEID() const
Get the FEE ID of the electronics responsible for the error.
void PrintStream(std::ostream &stream) const
Printing information of the error type.
@ FIT_ERROR
Raw fit failed.
@ LINK_ERROR
Error due to missing DDL links.
@ ALTRO_ERROR
Decoding of the ALTRO payload failed.
@ GEOMETRY_ERROR
Decoded position outside EMCAL.
@ TRU_ERROR
Errors from TRU data.
@ MINOR_ALTRO_ERROR
Non-fatal error in decoding of the ALTRO payload.
@ STU_ERROR
Error from STU data.
@ GAIN_ERROR
Error due to gain type.
@ PAGE_ERROR
Raw page decoding failed.
@ UNDEFINED
Error source undefined.
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.