![]() |
AliRoot Core
edcc906 (edcc906)
|
Class for calorimeter cell AOD data handling. More...
#include <AliAODCaloCells.h>
Public Member Functions | |
AliAODCaloCells () | |
AliAODCaloCells (const char *name, const char *title, VCells_t ttype=kUndef) | |
AliAODCaloCells (const AliAODCaloCells &cells) | |
AliAODCaloCells & | operator= (const AliAODCaloCells &cells) |
virtual | ~AliAODCaloCells () |
virtual AliVCaloCells * | CopyCaloCells (Bool_t all) const |
virtual void | Copy (TObject &obj) const |
void | Clear (const Option_t *) |
void | CreateContainer (Short_t nCells) |
void | DeleteContainer () |
void | Sort () |
Bool_t | GetCell (Short_t pos, Short_t &cellNumber, Double_t &litude, Double_t &time, Int_t &mclabel, Double_t &efrac) const |
Bool_t | SetCell (Short_t pos, Short_t cellNumber, Double_t amplitude, Double_t time, Int_t mclabel=-1, Double_t efrac=0., Bool_t isHG=kFALSE) |
Short_t | GetNumberOfCells () const |
void | SetNumberOfCells (Int_t n) |
Double_t | GetCellAmplitude (Short_t cellNumber) |
Bool_t | GetCellHighGain (Short_t cellNumber) |
Short_t | GetCellPosition (Short_t cellNumber) |
Double_t | GetCellTime (Short_t cellNumber) |
Double_t | GetAmplitude (Short_t pos) const |
Bool_t | GetHighGain (Short_t pos) const |
Short_t | GetCellNumber (Short_t pos) const |
Double_t | GetTime (Short_t pos) const |
Bool_t | IsEMCAL () const |
Bool_t | IsPHOS () const |
Char_t | GetType () const |
void | SetType (Char_t ttype) |
Int_t | GetCellMCLabel (Short_t cellNumber) |
Int_t | GetMCLabel (Short_t pos) const |
void | SetMCLabel (Short_t pos, Int_t val) |
Double_t | GetCellEFraction (Short_t cellNumber) |
Double_t | GetEFraction (Short_t pos) const |
void | SetEFraction (Short_t pos, Double32_t efrac) |
void | SetCellEFraction (Short_t cellNumber, Double32_t efrac) |
![]() | |
AliVCaloCells () | |
AliVCaloCells (const char *name, const char *title) | |
AliVCaloCells (const AliVCaloCells &cells) | |
AliVCaloCells & | operator= (const AliVCaloCells &cells) |
virtual | ~AliVCaloCells () |
void | Clear (const Option_t *) |
virtual void | SetCellEFraction (Short_t cellNumber, Double_t efrac)=0 |
virtual void | SetEFraction (Short_t pos, Double_t efrac)=0 |
Protected Attributes | |
Int_t | fNCells |
Number of cells. More... | |
Bool_t * | fHGLG |
If Cell is High Gain or Low Gain. More... | |
Short_t * | fCellNumber |
Array of cell absolute Id. numbers. More... | |
Double32_t * | fAmplitude |
Array with cell amplitudes (= energy!). More... | |
Double32_t * | fTime |
Array with cell times. More... | |
Double32_t * | fEFraction |
Array with fraction of MC energy and data - for embedding. More... | |
Int_t * | fMCLabel |
Array of MC labels, each label is the highest contributor to the cell signal. More... | |
Bool_t | fIsSorted |
! True if cell arrays are sorted by index. More... | |
Char_t | fType |
Cell type. More... | |
Additional Inherited Members | |
![]() | |
enum | VCells_t { kUndef = -1, kPHOSCell, kEMCALCell } |
Class for calorimeter cell AOD data handling.
AOD class to store calorimeter cell data
Data is stored in different arrays, each entry of the array corresponding to a cell. The data stored is the cell energy, time, high gain bool, absolute id number, MC label that deposited most energy, and a container for the MC embedded energy.
Definition at line 26 of file AliAODCaloCells.h.
AliAODCaloCells::AliAODCaloCells | ( | ) |
Default constructor.
Definition at line 26 of file AliAODCaloCells.cxx.
Referenced by CopyCaloCells().
Constructor.
Definition at line 37 of file AliAODCaloCells.cxx.
AliAODCaloCells::AliAODCaloCells | ( | const AliAODCaloCells & | cells | ) |
Copy constructor.
Definition at line 48 of file AliAODCaloCells.cxx.
|
virtual |
Definition at line 122 of file AliAODCaloCells.cxx.
void AliAODCaloCells::Clear | ( | const Option_t * | ) |
Clear arrays.
Definition at line 133 of file AliAODCaloCells.cxx.
|
virtual |
This overwrites the virtual TObject::Copy() to allow run time copying without casting in AliAODEvent.
Implements AliVCaloCells.
Definition at line 144 of file AliAODCaloCells.cxx.
|
virtual |
Copy the calo cells into a new object. If option all=FALSE, just the object type, for mixing.
Implements AliVCaloCells.
Definition at line 157 of file AliAODCaloCells.cxx.
|
virtual |
Function that creates container to store calorimeter cell data.
Implements AliVCaloCells.
Definition at line 190 of file AliAODCaloCells.cxx.
|
virtual |
Deletes allocated memory.
Implements AliVCaloCells.
Definition at line 225 of file AliAODCaloCells.cxx.
Referenced by Clear(), AliAODEvent::ClearStd(), CreateContainer(), AliAODEvent::ResetStd(), and ~AliAODCaloCells().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 211 of file AliAODCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
Given the position index in the array, return the cell parameters
pos | Index of cell in array |
cellNumber | Absolute cell Id. number |
amplitude | Cell energy |
time | Cell time |
mclabel | MC particle index in kine tree |
efrac | Fraction of energy (embedding) |
Implements AliVCaloCells.
Definition at line 119 of file AliAODCaloCells.h.
Referenced by AliAODHandler::StoreMCParticles().
|
inlinevirtual |
cellNumber | Cell absolute Id. |
Implements AliVCaloCells.
Definition at line 145 of file AliAODCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
cellNumber | Absolute Id number of cell. |
Implements AliVCaloCells.
Definition at line 353 of file AliAODCaloCells.h.
Referenced by SetType().
|
inlinevirtual |
cellNumber | Cell absolute Id. |
Implements AliVCaloCells.
Definition at line 164 of file AliAODCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
cellNumber | Cell position in array. |
Implements AliVCaloCells.
Definition at line 332 of file AliAODCaloCells.h.
Referenced by SetType().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 257 of file AliAODCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
cellNumber | Cell absolute Id. number. |
Implements AliVCaloCells.
Definition at line 270 of file AliAODCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
cellNumber | Cell absolute Id. |
Implements AliVCaloCells.
Definition at line 190 of file AliAODCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 319 of file AliAODCaloCells.h.
Referenced by SetType().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 224 of file AliAODCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 299 of file AliAODCaloCells.h.
Referenced by SetType().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 45 of file AliAODCaloCells.h.
Referenced by AliAODHandler::StoreMCParticles().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 244 of file AliAODCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 61 of file AliAODCaloCells.h.
Referenced by CopyCaloCells().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 58 of file AliAODCaloCells.h.
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 59 of file AliAODCaloCells.h.
AliAODCaloCells & AliAODCaloCells::operator= | ( | const AliAODCaloCells & | source | ) |
Assignment operator.
Definition at line 78 of file AliAODCaloCells.cxx.
|
virtual |
Sets a cell at the given position.
pos | cell position in array. |
cellNumber | Cell absolute Id. number. |
amplitude | Cell signal (GeV). |
time | Cell time (s). |
mclabel | MC particle index in kine array. |
efrac | Fraction of energy from embedding. |
isHG | bool true if cell is from high gain. |
Implements AliVCaloCells.
Definition at line 335 of file AliAODCaloCells.cxx.
Referenced by AliAODHandler::StoreMCParticles().
|
inline |
Set fraction of energy in cell from embedding.
cellNumber | Absolute cell Id. number of cell. |
efrac | fraction of energy. |
Definition at line 389 of file AliAODCaloCells.h.
Referenced by SetType().
|
inline |
Set Fraction of energy in cell from embedding.
pos | Cell position in array. |
efrac | fraction of energy. |
Definition at line 375 of file AliAODCaloCells.h.
Referenced by SetType().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 308 of file AliAODCaloCells.h.
Referenced by SetType().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 46 of file AliAODCaloCells.h.
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 62 of file AliAODCaloCells.h.
|
virtual |
Sort the cell array by cell number.
Implements AliVCaloCells.
Definition at line 271 of file AliAODCaloCells.cxx.
Referenced by GetCellAmplitude(), GetCellEFraction(), GetCellHighGain(), GetCellMCLabel(), GetCellPosition(), GetCellTime(), and SetCellEFraction().
|
protected |
Array with cell amplitudes (= energy!).
Definition at line 86 of file AliAODCaloCells.h.
Referenced by AliAODCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetAmplitude(), GetCell(), GetCellAmplitude(), operator=(), SetCell(), and Sort().
|
protected |
Array of cell absolute Id. numbers.
Definition at line 83 of file AliAODCaloCells.h.
Referenced by AliAODCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetCell(), GetCellAmplitude(), GetCellEFraction(), GetCellHighGain(), GetCellMCLabel(), GetCellNumber(), GetCellPosition(), GetCellTime(), operator=(), SetCell(), SetCellEFraction(), and Sort().
|
protected |
Array with fraction of MC energy and data - for embedding.
Definition at line 92 of file AliAODCaloCells.h.
Referenced by AliAODCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetCell(), GetCellEFraction(), GetEFraction(), operator=(), SetCell(), SetCellEFraction(), SetEFraction(), and Sort().
|
protected |
If Cell is High Gain or Low Gain.
Definition at line 80 of file AliAODCaloCells.h.
Referenced by AliAODCaloCells(), CreateContainer(), DeleteContainer(), GetCellHighGain(), GetHighGain(), operator=(), SetCell(), and Sort().
|
protected |
! True if cell arrays are sorted by index.
Definition at line 97 of file AliAODCaloCells.h.
Referenced by DeleteContainer(), GetCellAmplitude(), GetCellEFraction(), GetCellHighGain(), GetCellMCLabel(), GetCellPosition(), GetCellTime(), operator=(), SetCell(), SetCellEFraction(), and Sort().
|
protected |
Array of MC labels, each label is the highest contributor to the cell signal.
Definition at line 95 of file AliAODCaloCells.h.
Referenced by AliAODCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetCell(), GetCellHighGain(), GetCellMCLabel(), GetHighGain(), GetMCLabel(), operator=(), SetCell(), SetMCLabel(), and Sort().
|
protected |
Number of cells.
Definition at line 77 of file AliAODCaloCells.h.
Referenced by AliAODCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetAmplitude(), GetCell(), GetCellAmplitude(), GetCellEFraction(), GetCellHighGain(), GetCellMCLabel(), GetCellNumber(), GetCellPosition(), GetCellTime(), GetEFraction(), GetHighGain(), GetMCLabel(), GetNumberOfCells(), GetTime(), operator=(), SetCell(), SetCellEFraction(), SetEFraction(), SetMCLabel(), SetNumberOfCells(), and Sort().
|
protected |
Array with cell times.
Definition at line 89 of file AliAODCaloCells.h.
Referenced by AliAODCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetCell(), GetCellTime(), GetTime(), operator=(), SetCell(), and Sort().
|
protected |
Cell type.
Definition at line 99 of file AliAODCaloCells.h.
Referenced by GetType(), IsEMCAL(), IsPHOS(), operator=(), and SetType().