12#ifndef ALICEO2_EMCAL_ERRORTYPEFEE_H
13#define ALICEO2_EMCAL_ERRORTYPEFEE_H
74 ErrorTypeFEE(
int FEEID,
ErrorSource_t errortype,
int errorCode,
int subspec,
int hardwareAddress) : mFEEID(FEEID), mErrorSource(errortype), mErrorCode(errorCode), mSubspecification(subspec), mHardwareAddress(hardwareAddress) {}
223 int mSubspecification;
224 int mHardwareAddress;
233std::ostream&
operator<<(std::ostream&
stream,
const ErrorTypeFEE& errorType);
Errors per FEE information.
int getLinkErrorType() const
Get the error code of the obect in case the object is a link error.
~ErrorTypeFEE()=default
Destructor.
void setFEEID(int feeid)
Set the ID of the FEE responsible for the error.
int getSubspecification() const
Get subspecification of the error.
void setSubspecification(int subspec)
Set the subspecification of the error.
void setErrorCode(int errorcode)
Set the error code of the object.
void setMinorDecodingErrorType(int decodeError)
Set the error as minor (non-fatal) decoding error and store the error code.
int getGainTypeErrorType() const
Get the error code of the obect in case the object is a gain type error.
void setGainErrorType(int gainError)
Set the error as gain type error and store the error code.
void setPageErrorType(int pageError)
Set the error as page parser error and store the error code.
int getMinorDecodeErrorType() const
Get the error code of the obect in case the object is a decoding error.
ErrorTypeFEE()=default
Constructor.
int getTRUDecoderErrorType() const
Get the error code of the obect in case the object is a TRU decoder error.
int getRawFitErrorType() const
Get the error code of the obect in case the object is a raw fitter error.
void setSTUDecoderErrorType(int stuerror)
Set the error as STU decoder error and store the error code.
int getErrorCode() const
Get the error code of the object.
static const char * getErrorTypeTitle(unsigned int errorTypeID)
Get the title of the error type.
void setErrorType(ErrorSource_t errorsource)
Set the error type of the object.
ErrorSource_t getErrorType() const
Get the type of the error handled by the object.
void setLinkErrorTYpe(int linkError)
Set the error type as link error and store the error code.
static const char * getErrorTypeName(unsigned int errorTypeID)
Get the name of the error type.
int getDecodeErrorType() const
Get the error code of the obect in case the object is a decoding error.
int getHarwareAddress() const
Get the hardware address of the error.
int getFEEID() const
Get the FEE ID of the electronics responsible for the error.
int getRawPageErrorType() const
Get the error code of the obect in case the object is a page parsing error.
void setRawFitErrorType(int rawfitterError)
Set the error as raw fitter error and store the error code.
int getSTUDecoderErrorType() const
Get the error code of the obect in case the object is a STU decoder error.
void setDecodeErrorType(int decodeError)
Set the error as decoding error and store the error code.
void setTRUDecoderErrorType(int truerror)
Set the error as TRU decoder error and store the error code.
void setHardwareAddress(int hardwareAddress)
Set the hardware address of the error.
void setError(ErrorSource_t errorsource, int errorcode)
Set source and code of the error.
void PrintStream(std::ostream &stream) const
Printing information of the error type.
static constexpr int getNumberOfErrorTypes()
Get the number of error types.
ErrorTypeFEE(int FEEID, ErrorSource_t errortype, int errorCode, int subspec, int hardwareAddress)
Constructor initializing the object.
ErrorSource_t
Source of the error.
@ 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.
GLsizei GLsizei GLchar * source
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...