1 #ifndef ALIEMCALTRIGGERDATAGRID_H
2 #define ALIEMCALTRIGGERDATAGRID_H
41 virtual const char *
what()
const throw() {
return "Trigger channel map not initialized"; }
82 std::stringstream errormessage;
83 errormessage <<
"Out-of-bounds access in " <<
fDir <<
"Direction: Element " <<
fIndex <<
", Size " <<
fSize;
158 const T &
operator()(Int_t col, Int_t row)
const;
181 void Allocate(Int_t ncols, Int_t nrows);
191 void SetADC(Int_t col, Int_t row,
const T &adc);
201 const T &
GetADC(Int_t col, Int_t row)
const;
222 Int_t
GetIndex(Int_t col, Int_t row)
const;
Exception class handling access to non-existing container element.
AliEmcalTriggerDataGrid< T > & operator=(const AliEmcalTriggerDataGrid< T > &ref)
const T & GetADC(Int_t col, Int_t row) const
T * fValues
Array of Trigger ADC values.
Int_t fNRows
Number of rows.
Int_t GetIndex(Int_t col, Int_t row) const
Direction_t GetDirection() const
Direction_t fDir
Direction.
virtual ~UninitException()
virtual ~OutOfBoundsException()
virtual ~AliEmcalTriggerDataGrid()
std::string fMessage
Error message, accessible via "what".
void SetADC(Int_t col, Int_t row, const T &adc)
const T & operator()(Int_t col, Int_t row) const
Error handling for uninitialized grid.
Container for ADC / Amplitudes from the EMCAL triggers.
Int_t GetNumberOfCols() const
void Allocate(Int_t ncols, Int_t nrows)
OutOfBoundsException(Direction_t dir, int index, int size)
int fSize
size of the container in direction
virtual const char * what() const
Int_t GetNumberOfRows() const
int fIndex
Index requested.
const char * what() const
AliEmcalTriggerDataGrid()
Int_t fNCols
Number of columns.
Bool_t IsAllocated() const