11#ifndef ALICEO2_EMCAL_STUDECODERERROR_H
12#define ALICEO2_EMCAL_STUDECODERERROR_H
87 const
char*
what() const noexcept final {
return mMessage.data(); }
91 int getDDLID() const noexcept {
return mDDLId; }
106 std::string mMessage;
113std::ostream&
operator<<(std::ostream&
stream,
const STUDecoderError& error);
Handling of STU reconstruction errors.
ErrorCode_t
Error codes of STU decoding.
@ SHORT_PAYLOAD_SIZE_UNEXPECTED
short payload size unexpected
@ UNKNOWN
Unknown error code (needed for conversion to int)
@ ADC_OVERFLOW
ADC overflow.
@ INDEX_UNEXPECTED
Patch index unexpected.
@ OLD_PAYLOAD_VERSION
unsupported old payload version
@ PAGE_ERROR
Page decoding failed (missing header)
@ WORD_UNEXPECTED
Word unexpected.
@ FEEID_UNEXPECTED
FeeID index unexpected.
@ FULL_PAYLOAD_SIZE_UNEXPECTED
full payload size unexpected
static std::string getErrorCodeName(ErrorCode_t errorcode)
Get the name of the error code.
~STUDecoderError() noexcept final=default
Destructor.
static std::string getErrorCodeName(int errorcode)
Get the name of the error code.
void printStream(std::ostream &stream) const
Print details of the error on the stream.
static ErrorCode_t intToErrorCode(int errorcode)
Convert integer to error code.
const char * what() const noexcept final
Access to error message.
ErrorCode_t getErrorCode() const noexcept
Get error code of the exception.
static std::string getErrorCodeTitle(ErrorCode_t errorcode)
Get the title of the error code.
int getDDLID() const noexcept
Get the ID of the DDL in which the exception is raised.
static int errorCodeToInt(ErrorCode_t errorcode)
Get integer representation of error code.
static std::string getErrorCodeTitle(int errorcode)
Get the title of the error code.
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.