Project
Loading...
Searching...
No Matches
o2::emcal::SupermoduleIndexException Class Referencefinal

Handling error due to invalid supermodule. More...

#include <GeometryBase.h>

Inherits std::exception.

Public Member Functions

 SupermoduleIndexException (int supermodule, int maxSupermodules)
 Constructor, initializing the exception.
 
 ~SupermoduleIndexException () noexcept final=default
 Destructor.
 
int getSupermodule () const noexcept
 Access to supermodule index raising the exception.
 
int getMaxSupermodule () const noexcept
 Access to maximum number of supermodules.
 
const char * what () const noexcept final
 Access to error message of the exception.
 

Detailed Description

Handling error due to invalid supermodule.

Definition at line 171 of file GeometryBase.h.

Constructor & Destructor Documentation

◆ SupermoduleIndexException()

o2::emcal::SupermoduleIndexException::SupermoduleIndexException ( int  supermodule,
int  maxSupermodules 
)
inline

Constructor, initializing the exception.

Parameters
supermoduleSupermodule ID raising the exception
maxSupermodulesMax. number of supermodules in the geometry setup

Definition at line 177 of file GeometryBase.h.

◆ ~SupermoduleIndexException()

o2::emcal::SupermoduleIndexException::~SupermoduleIndexException ( )
finaldefaultnoexcept

Destructor.

Member Function Documentation

◆ getMaxSupermodule()

int o2::emcal::SupermoduleIndexException::getMaxSupermodule ( ) const
inlinenoexcept

Access to maximum number of supermodules.

Returns
Max. number of supermodules

Definition at line 192 of file GeometryBase.h.

◆ getSupermodule()

int o2::emcal::SupermoduleIndexException::getSupermodule ( ) const
inlinenoexcept

Access to supermodule index raising the exception.

Returns
Supermodule index

Definition at line 188 of file GeometryBase.h.

◆ what()

const char * o2::emcal::SupermoduleIndexException::what ( ) const
inlinefinalnoexcept

Access to error message of the exception.

Returns
Error message

Definition at line 196 of file GeometryBase.h.


The documentation for this class was generated from the following file: