12#ifndef ALICEO2_EMCAL_TRIGGERMAPPINGERRORS_H
13#define ALICEO2_EMCAL_TRIGGERMAPPINGERRORS_H
42 const
char*
what() const noexcept final
44 return mErrorMessage.data();
49 unsigned int getTRUIndex() const noexcept {
return mTRUIndex; }
52 std::string mErrorMessage;
53 unsigned int mTRUIndex;
66 mErrorMessage =
"Invalid FastOR Index: " +
std::to_string(fastorindex);
74 const
char*
what() const noexcept final
76 return mErrorMessage.data();
84 std::string mErrorMessage;
85 unsigned int mFastORIndex;
101 mEtaColumn(etaColumn),
112 const
char*
what() const noexcept final
114 return mErrorMessage.data();
119 unsigned int getTRUID() const noexcept {
return mTRUID; }
130 std::string mErrorMessage;
132 unsigned int mEtaColumn;
133 unsigned int mPhiRow;
148 mSupermoduleID(supermoduleID),
149 mEtaColumn(etaColumn),
160 const
char*
what() const noexcept final
162 return mErrorMessage.data();
178 std::string mErrorMessage;
179 unsigned int mSupermoduleID;
180 unsigned int mEtaColumn;
181 unsigned int mPhiRow;
203 const
char*
what() const noexcept final
205 return mErrorMessage.data();
217 std::string mErrorMessage;
218 unsigned int mEtaColumn;
219 unsigned int mPhiRow;
232 mErrorMessage =
"Invalid PHOS region: " +
std::to_string(phosregion);
240 const
char*
what() const noexcept final
242 return mErrorMessage.data();
250 std::string mErrorMessage;
251 unsigned int mPHOSRegion;
268 const
char*
what() const noexcept final
270 return "Geometry not available";
284 mErrorMessage =
"L0 patch size invalid: " +
std::to_string(l0size);
292 const
char*
what() const noexcept final
294 return mErrorMessage.data();
299 unsigned int getL0size() const noexcept {
return mL0size; }
302 std::string mErrorMessage;
303 unsigned int mL0size;
Error handling of faulty FastOR indices.
unsigned int getFastORIndex() const noexcept
Get the index of the FastOR raising the exception.
~FastORIndexException() noexcept final=default
Destructor.
FastORIndexException(unsigned int fastorindex)
Constructor.
const char * what() const noexcept final
Get error message.
Handling of invalid positions of a FastOR in the detector.
FastORPositionExceptionEMCAL(unsigned int etaColumn, unsigned int phiRow)
Constructor.
unsigned int getFastORPhiRow() const noexcept
Get the row in phi of the FastOR with the invalid position.
const char * what() const noexcept final
Get error message.
unsigned int getFastOREtaColumn() const noexcept
Get the column in eta of the FastOR with the invalid position.
~FastORPositionExceptionEMCAL() noexcept final=default
Destructor.
Handling of invalid positions of a FastOR within a supermodule.
~FastORPositionExceptionSupermodule() noexcept final=default
Destructor.
FastORPositionExceptionSupermodule(unsigned int supermoduleID, unsigned int etaColumn, unsigned int phiRow)
Constructor.
unsigned int getFastOREtaColumn() const noexcept
Get the column in eta of the FastOR with the invalid position.
const char * what() const noexcept final
Get error message.
unsigned int getFastORPhiRow() const noexcept
Get the row in phi of the FastOR with the invalid position.
unsigned int getSupermoduleID() const noexcept
Get the supermodule ID for which the position is invalid.
Handling of invalid positions of a FastOR within a TRU.
const char * what() const noexcept final
Get error message.
unsigned int getFastOREtaColumn() const noexcept
Get the column in eta of the FastOR with the invalid position.
unsigned int getFastORPhiRow() const noexcept
Get the row in phi of the FastOR with the invalid position.
~FastORPositionExceptionTRU() noexcept final=default
Destructor.
unsigned int getTRUID() const noexcept
Get the TRU ID for which the position is invalid.
FastORPositionExceptionTRU(unsigned int truID, unsigned int etaColumn, unsigned int phiRow)
Constructor.
Handling cases where the geometry is required but not defined.
const char * what() const noexcept final
Access to error message.
GeometryNotSetException()=default
Constructor.
~GeometryNotSetException() noexcept final=default
Destructor.
Handlig access of L0 index mapping with invalid patch size.
unsigned int getL0size() const noexcept
Get the size of the L0 patch.
~L0sizeInvalidException() noexcept final=default
Destructor.
const char * what() const noexcept final
Access to error message.
L0sizeInvalidException(unsigned int l0size)
Constructor.
Handling of invalid PHOS regions.
unsigned int getPHOSRegion() const noexcept
Get index of the PHOS region.
PHOSRegionException(unsigned int phosregion)
Constructor.
~PHOSRegionException() noexcept final=default
Destructor.
const char * what() const noexcept final
Get error message.
Error handling of faulty TRU indices.
const char * what() const noexcept final
Get error message.
~TRUIndexException() noexcept final=default
Destructor.
unsigned int getTRUIndex() const noexcept
Get the index of the TRU raising the exception.
TRUIndexException(unsigned int truindex)
Constructor.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.
std::string to_string(gsl::span< T, Size > span)