Project
Loading...
Searching...
No Matches
o2::emcal::ClusterFactory< InputType >::ClusterRangeException Class Referencefinal

#include <ClusterFactory.h>

Inherits std::exception.

Public Member Functions

 ClusterRangeException (int clusterIndex, int maxClusters)
 Constructor defining the error.
 
 ~ClusterRangeException () noexcept final=default
 Destructor.
 
const charwhat () const noexcept final
 Provide error message.
 
int getClusterID () const
 Get the ID of the event raising the exception.
 
int getMaxNumberOfClusters () const
 Get the maximum number of events handled by the event handler.
 

Detailed Description

template<class InputType>
class o2::emcal::ClusterFactory< InputType >::ClusterRangeException

Definition at line 47 of file ClusterFactory.h.

Constructor & Destructor Documentation

◆ ClusterRangeException()

template<class InputType >
o2::emcal::ClusterFactory< InputType >::ClusterRangeException::ClusterRangeException ( int  clusterIndex,
int  maxClusters 
)
inline

Constructor defining the error.

Parameters
clusterIndexCluster ID responsible for the exception
maxClustersMaximum number of clusters handled by the cluster factory

Definition at line 53 of file ClusterFactory.h.

◆ ~ClusterRangeException()

template<class InputType >
o2::emcal::ClusterFactory< InputType >::ClusterRangeException::~ClusterRangeException ( )
finaldefaultnoexcept

Destructor.

Member Function Documentation

◆ getClusterID()

template<class InputType >
int o2::emcal::ClusterFactory< InputType >::ClusterRangeException::getClusterID ( ) const
inline

Get the ID of the event raising the exception.

Returns
Event ID

Definition at line 70 of file ClusterFactory.h.

◆ getMaxNumberOfClusters()

template<class InputType >
int o2::emcal::ClusterFactory< InputType >::ClusterRangeException::getMaxNumberOfClusters ( ) const
inline

Get the maximum number of events handled by the event handler.

Returns
Max. number of event

Definition at line 74 of file ClusterFactory.h.

◆ what()

template<class InputType >
const char * o2::emcal::ClusterFactory< InputType >::ClusterRangeException::what ( ) const
inlinefinalnoexcept

Provide error message.

Returns
Error message connected to this exception

Definition at line 66 of file ClusterFactory.h.


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