![]() |
AliPhysics
vAN-20151016 (8d2b0e8)
|
Container for ADC / Amplitudes from the EMCAL triggers. More...
#include <AliEmcalTriggerDataGrid.h>
Classes | |
class | OutOfBoundsException |
Exception class handling access to non-existing container element. More... | |
class | UninitException |
Error handling for uninitialized grid. More... | |
Public Member Functions | |
AliEmcalTriggerDataGrid () | |
AliEmcalTriggerDataGrid (Int_t cols, Int_t rows) | |
AliEmcalTriggerDataGrid (const AliEmcalTriggerDataGrid< T > &ref) | |
AliEmcalTriggerDataGrid< T > & | operator= (const AliEmcalTriggerDataGrid< T > &ref) |
const T & | operator() (Int_t col, Int_t row) const |
T & | operator() (Int_t col, Int_t row) |
virtual | ~AliEmcalTriggerDataGrid () |
void | Reset () |
Bool_t | IsAllocated () const |
void | Allocate (Int_t ncols, Int_t nrows) |
void | SetADC (Int_t col, Int_t row, const T &adc) |
const T & | GetADC (Int_t col, Int_t row) const |
Int_t | GetNumberOfCols () const |
Int_t | GetNumberOfRows () const |
Protected Member Functions | |
Int_t | GetIndex (Int_t col, Int_t row) const |
Protected Attributes | |
Int_t | fNCols |
Number of columns. More... | |
Int_t | fNRows |
Number of rows. More... | |
T * | fValues |
Array of Trigger ADC values. More... | |
Container for ADC / Amplitudes from the EMCAL triggers.
Dynamical-size container for ADC values from the FASTOR
Definition at line 18 of file AliEmcalTriggerDataGrid.h.
AliEmcalTriggerDataGrid< T >::AliEmcalTriggerDataGrid | ( | ) |
Dummy constructor, does not allocate anything
Definition at line 22 of file AliEmcalTriggerDataGrid.cxx.
AliEmcalTriggerDataGrid< T >::AliEmcalTriggerDataGrid | ( | Int_t | cols, |
Int_t | rows | ||
) |
Constructror Allocates also for storage for the ADC values / amplitudes
cols | Number of cols |
rows | Number of rows |
Definition at line 30 of file AliEmcalTriggerDataGrid.cxx.
AliEmcalTriggerDataGrid< T >::AliEmcalTriggerDataGrid | ( | const AliEmcalTriggerDataGrid< T > & | ref | ) |
Copy constructor New channel map will get its own storage. The content of the ref storage will be copied into this storage
ref | Reference for the copy |
Definition at line 40 of file AliEmcalTriggerDataGrid.cxx.
|
virtual |
Destructor
Definition at line 79 of file AliEmcalTriggerDataGrid.cxx.
void AliEmcalTriggerDataGrid< T >::Allocate | ( | Int_t | ncols, |
Int_t | nrows | ||
) |
Definition at line 84 of file AliEmcalTriggerDataGrid.cxx.
Referenced by AliEmcalTriggerMaker::ExecOnce().
const T & AliEmcalTriggerDataGrid< T >::GetADC | ( | Int_t | col, |
Int_t | row | ||
) | const |
Get ADC value at position (col, row). Checks for boundary.
col | |
row |
OutOfBoundsException | in case the index in any direction is out of bounds |
UninitException | in case the grid is not initialized (allocated) |
Definition at line 123 of file AliEmcalTriggerDataGrid.cxx.
|
protected |
Get grid index in the ADC value list
col | Column of the grid |
row | Row of the grid |
Definition at line 134 of file AliEmcalTriggerDataGrid.cxx.
|
inline |
Get the number of columns in the map
Definition at line 207 of file AliEmcalTriggerDataGrid.h.
|
inline |
|
inline |
Definition at line 179 of file AliEmcalTriggerDataGrid.h.
const T & AliEmcalTriggerDataGrid< T >::operator() | ( | Int_t | col, |
Int_t | row | ||
) | const |
Constant acces operator at position (col, row)
col | Column |
row | Row |
Definition at line 63 of file AliEmcalTriggerDataGrid.cxx.
T & AliEmcalTriggerDataGrid< T >::operator() | ( | Int_t | col, |
Int_t | row | ||
) |
Access operator at position (col, row)
col | Column |
row | Row |
Definition at line 71 of file AliEmcalTriggerDataGrid.cxx.
AliEmcalTriggerDataGrid< T > & AliEmcalTriggerDataGrid< T >::operator= | ( | const AliEmcalTriggerDataGrid< T > & | ref | ) |
Assignment operator New channel map will get its own storage. The content of the ref storage will be copied into this storage
ref | Reference for the copy |
Definition at line 50 of file AliEmcalTriggerDataGrid.cxx.
void AliEmcalTriggerDataGrid< T >::Reset | ( | ) |
Set the ADC values stored in the 2D map again to 0
Definition at line 118 of file AliEmcalTriggerDataGrid.cxx.
Referenced by AliEmcalTriggerMaker::Run().
void AliEmcalTriggerDataGrid< T >::SetADC | ( | Int_t | col, |
Int_t | row, | ||
const T & | adc | ||
) |
Set ADC value for position (col, row). Checks for boundary.
col | Column of the position |
row | Row of the position |
ADC | The value to set |
OutOfBoundsException | in case the index in any direction is out of bounds |
UninitException | in case the grid is not initialized (allocated) |
Definition at line 107 of file AliEmcalTriggerDataGrid.cxx.
|
protected |
Number of columns.
Definition at line 224 of file AliEmcalTriggerDataGrid.h.
Referenced by AliEmcalTriggerDataGrid< T >::AliEmcalTriggerDataGrid(), AliEmcalTriggerDataGrid< char >::GetNumberOfCols(), and AliEmcalTriggerDataGrid< T >::operator=().
|
protected |
Number of rows.
Definition at line 225 of file AliEmcalTriggerDataGrid.h.
Referenced by AliEmcalTriggerDataGrid< T >::AliEmcalTriggerDataGrid(), AliEmcalTriggerDataGrid< char >::GetNumberOfRows(), and AliEmcalTriggerDataGrid< T >::operator=().
|
protected |
Array of Trigger ADC values.
Definition at line 226 of file AliEmcalTriggerDataGrid.h.
Referenced by AliEmcalTriggerDataGrid< T >::AliEmcalTriggerDataGrid(), AliEmcalTriggerDataGrid< char >::IsAllocated(), and AliEmcalTriggerDataGrid< T >::operator=().