12#ifndef ALICEO2_EMCAL_GEOMETRYBASE_H
13#define ALICEO2_EMCAL_GEOMETRYBASE_H
50 const
char*
what() const noexcept {
return "Geometry not initialized"; }
82 const char*
what() const noexcept final {
return mMessage.c_str(); }
111 double getEta() const noexcept {
return mEta; }
115 double getPhi() const noexcept {
return mPhi; }
119 const char*
what() const noexcept final {
return mMessage.data(); }
124 std::string mMessage;
137 mMessage(
"Cell ID " +
std::
to_string(mCellID) +
" outside limits.")
150 const char*
what() const noexcept final {
return mMessage.data(); }
154 std::string mMessage;
170 const
char*
what() const noexcept final {
return "Uknown SuperModule Type !!"; }
184 mMaxSupermodules(maxSupermodules)
202 const char*
what() const noexcept final {
return mMessage.data(); }
205 int mSupermoduleIndex;
206 int mMaxSupermodules;
207 std::string mMessage;
229 int getRow() const noexcept {
return mRow; }
233 int getCol() const noexcept {
return mCol; }
237 const char*
what() const noexcept final {
return mMessage.data(); }
241 std::string mMessage;
Error handling access to non-initialized geometry.
~GeometryNotInitializedException() noexcept final=default
Destructor.
const char * what() const noexcept
Access to error message.
GeometryNotInitializedException()=default
Constructor.
Exception handling non-existing cell IDs.
InvalidCellIDException(int cellID)
Constructor, setting cell ID raising the exception.
int getCellID() const noexcept
Access to cell ID raising the exception.
~InvalidCellIDException() noexcept final=default
Destructor.
const char * what() const noexcept final
Access to error message of the exception.
Error Handling when an invalid module ID (outside the limits) is called.
int GetMaxNumberOfModules() const noexcept
Get number of modules.
InvalidModuleException(int nModule, int nMax)
Constructor.
~InvalidModuleException() noexcept final=default
Destructor.
const char * what() const noexcept final
Access to error message.
int GetModuleID() const noexcept
Get ID of the module raising the exception.
Exception handling errors due to positions not in the EMCAL area.
double getEta() const noexcept
Access to eta coordinate raising the exception.
const char * what() const noexcept final
Access to error message of the exception.
~InvalidPositionException() noexcept final=default
Destructor.
double getPhi() const noexcept
Access to phi corrdinate raising the exception.
InvalidPositionException(double eta, double phi)
Constructor, setting the position raising the exception.
Exception handling improper or uninitialized supermodule types.
InvalidSupermoduleTypeException()=default
constructor
~InvalidSupermoduleTypeException() noexcept final=default
Destructor.
const char * what() const noexcept final
Access to error message of the exception.
Handling error for invalid positions in row-column space.
~RowColException() noexcept final=default
Destructor.
const char * what() const noexcept final
Access tp error message of the exception.
int getRow() const noexcept
Get row of the position raising the exception.
RowColException(int row, int col)
Constructor, initializing the exception with invalid row-column position.
int getCol() const noexcept
Get column of the position raising the exception.
Handling error due to invalid supermodule.
SupermoduleIndexException(int supermodule, int maxSupermodules)
Constructor, initializing the exception.
int getMaxSupermodule() const noexcept
Access to maximum number of supermodules.
~SupermoduleIndexException() noexcept final=default
Destructor.
const char * what() const noexcept final
Access to error message of the exception.
int getSupermodule() const noexcept
Access to supermodule index raising the exception.
const std::string DEFAULT_GEOMETRY
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)