Project
Loading...
Searching...
No Matches
o2::emcal::PedestalProcessorData::ChannelIndexException Class Reference

Handling access to invalid channel index (out-of-bounds) More...

#include <PedestalProcessorData.h>

Inherits std::exception.

Public Member Functions

 ChannelIndexException (unsigned short channelIndex, unsigned short maxChannels)
 Constructor.
 
 ~ChannelIndexException () noexcept final=default
 Destructor.
 
const charwhat () const noexcept final
 Get error message of the exception.
 
unsigned short getChannelIndex () const noexcept
 Get channel index raising the exception.
 
unsigned short getMaxChannels () const noexcept
 Get max number for channels for the type the exception was raised.
 

Detailed Description

Handling access to invalid channel index (out-of-bounds)

Definition at line 42 of file PedestalProcessorData.h.

Constructor & Destructor Documentation

◆ ChannelIndexException()

o2::emcal::PedestalProcessorData::ChannelIndexException::ChannelIndexException ( unsigned short  channelIndex,
unsigned short  maxChannels 
)
inline

Constructor.

Parameters
channelIndexIndex raising the exception
maxChannelsMaximun number of channels for a given type

Definition at line 53 of file PedestalProcessorData.h.

◆ ~ChannelIndexException()

o2::emcal::PedestalProcessorData::ChannelIndexException::~ChannelIndexException ( )
finaldefaultnoexcept

Destructor.

Member Function Documentation

◆ getChannelIndex()

unsigned short o2::emcal::PedestalProcessorData::ChannelIndexException::getChannelIndex ( ) const
inlinenoexcept

Get channel index raising the exception.

Returns
Channel index

Definition at line 67 of file PedestalProcessorData.h.

◆ getMaxChannels()

unsigned short o2::emcal::PedestalProcessorData::ChannelIndexException::getMaxChannels ( ) const
inlinenoexcept

Get max number for channels for the type the exception was raised.

Returns
Number of channels

Definition at line 71 of file PedestalProcessorData.h.

◆ what()

const char * o2::emcal::PedestalProcessorData::ChannelIndexException::what ( ) const
inlinefinalnoexcept

Get error message of the exception.

Returns
Error message

Definition at line 63 of file PedestalProcessorData.h.


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