![]() |
AliRoot Core
edcc906 (edcc906)
|
Class for calorimeter cell ESD data handling. More...
#include <AliESDCaloCells.h>
Public Member Functions | |
AliESDCaloCells () | |
AliESDCaloCells (const char *name, const char *title, VCells_t ttype=kUndef) | |
AliESDCaloCells (const AliESDCaloCells &cells) | |
AliESDCaloCells & | operator= (const AliESDCaloCells &source) |
virtual | ~AliESDCaloCells () |
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 | IsEMCAL () const |
Bool_t | IsPHOS () const |
Char_t | GetType () const |
void | SetType (Char_t t) |
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 |
Double_t | GetTime (Short_t pos) const |
Short_t | GetCellNumber (Short_t pos) const |
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 ESD data handling.
ESD class to store calorimeter cell data Clone of AliAODCaloCells made by Markus Oldenburg, CERN.
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 24 of file AliESDCaloCells.h.
AliESDCaloCells::AliESDCaloCells | ( | ) |
Default constructor.
Definition at line 26 of file AliESDCaloCells.cxx.
Referenced by CopyCaloCells().
Constructor.
Definition at line 37 of file AliESDCaloCells.cxx.
AliESDCaloCells::AliESDCaloCells | ( | const AliESDCaloCells & | c | ) |
Copy constructor.
Definition at line 48 of file AliESDCaloCells.cxx.
|
virtual |
Destructor.
Definition at line 173 of file AliESDCaloCells.cxx.
void AliESDCaloCells::Clear | ( | const Option_t * | ) |
Clear arrays.
Definition at line 182 of file AliESDCaloCells.cxx.
|
virtual |
This overwrites the virtual TObject::Copy() to allow run time copying without casting in AliESDEvent
Implements AliVCaloCells.
Definition at line 131 of file AliESDCaloCells.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 144 of file AliESDCaloCells.cxx.
|
virtual |
Function that creates container to store calorimeter cell data.
Implements AliVCaloCells.
Definition at line 191 of file AliESDCaloCells.cxx.
Referenced by AliEMCALReconstructor::FillESD().
|
virtual |
Deletes allocated memory
Implements AliVCaloCells.
Definition at line 226 of file AliESDCaloCells.cxx.
Referenced by Clear(), CreateContainer(), AliESDEvent::ResetStdContent(), and ~AliESDCaloCells().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 208 of file AliESDCaloCells.h.
Referenced by AliEMCALQADataMakerRec::MakeESDs(), and 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 118 of file AliESDCaloCells.h.
Referenced by SetType().
|
inlinevirtual |
cellNumber | Cell absolute Id. |
Implements AliVCaloCells.
Definition at line 144 of file AliESDCaloCells.h.
Referenced by AliEMCALReconstructor::FillESD(), SetNumberOfCells(), and TestESDCaloClusterAndCell().
|
inlinevirtual |
cellNumber | Absolute Id number of cell. |
Implements AliVCaloCells.
Definition at line 348 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
cellNumber | Cell absolute Id. |
Implements AliVCaloCells.
Definition at line 163 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
cellNumber | Cell position in array. |
Implements AliVCaloCells.
Definition at line 329 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 254 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
cellNumber | Cell absolute Id. number. |
Implements AliVCaloCells.
Definition at line 267 of file AliESDCaloCells.h.
Referenced by AliEMCALReconstructor::FillESD(), and SetNumberOfCells().
|
inlinevirtual |
cellNumber | Cell absolute Id. |
Implements AliVCaloCells.
Definition at line 189 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells(), and TestESDCaloClusterAndCell().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 316 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 221 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 296 of file AliESDCaloCells.h.
Referenced by AliESDEvent::AdjustMCLabels(), and SetNumberOfCells().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 49 of file AliESDCaloCells.h.
Referenced by AliESDEvent::AdjustMCLabels(), AliEMCALQADataMakerRec::MakeESDs(), AliESDEvent::Print(), and TestESDCaloClusterAndCell().
|
inlinevirtual |
pos | Cell position in array. |
Implements AliVCaloCells.
Definition at line 241 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 43 of file AliESDCaloCells.h.
Referenced by CopyCaloCells(), and TestESDCaloClusterAndCell().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 41 of file AliESDCaloCells.h.
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 42 of file AliESDCaloCells.h.
AliESDCaloCells & AliESDCaloCells::operator= | ( | const AliESDCaloCells & | source | ) |
Assignment operator.
Definition at line 82 of file AliESDCaloCells.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 332 of file AliESDCaloCells.cxx.
Referenced by AliEMCALReconstructor::FillESD(), and SetType().
|
inline |
Set fraction of energy in cell from embedding.
cellNumber | Absolute cell Id. number of cell. |
efrac | fraction of energy. |
Definition at line 382 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells().
|
inline |
Set Fraction of energy in cell from embedding.
pos | Cell position in array. |
efrac | fraction of energy. |
Definition at line 368 of file AliESDCaloCells.h.
Referenced by SetNumberOfCells().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 305 of file AliESDCaloCells.h.
Referenced by AliESDEvent::AdjustMCLabels(), and SetNumberOfCells().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 50 of file AliESDCaloCells.h.
Referenced by AliEMCALReconstructor::FillESD().
|
inlinevirtual |
Implements AliVCaloCells.
Definition at line 44 of file AliESDCaloCells.h.
Referenced by AliEMCALReconstructor::FillESD().
|
virtual |
Sort the cell array by cell number.
Implements AliVCaloCells.
Definition at line 273 of file AliESDCaloCells.cxx.
Referenced by AliEMCALReconstructor::FillESD(), GetCellAmplitude(), GetCellEFraction(), GetCellHighGain(), GetCellMCLabel(), GetCellPosition(), GetCellTime(), and SetCellEFraction().
|
protected |
Array with cell amplitudes (= energy!).
Definition at line 85 of file AliESDCaloCells.h.
Referenced by AliESDCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetAmplitude(), GetCell(), GetCellAmplitude(), operator=(), SetCell(), and Sort().
|
protected |
Array of cell absolute Id. numbers.
Definition at line 82 of file AliESDCaloCells.h.
Referenced by AliESDCaloCells(), 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 91 of file AliESDCaloCells.h.
Referenced by AliESDCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetCell(), GetCellEFraction(), GetEFraction(), operator=(), SetCell(), SetCellEFraction(), SetEFraction(), and Sort().
|
protected |
If Cell is High Gain or Low Gain.
Definition at line 79 of file AliESDCaloCells.h.
Referenced by AliESDCaloCells(), CreateContainer(), DeleteContainer(), GetCellHighGain(), GetHighGain(), operator=(), SetCell(), and Sort().
|
protected |
! True if cell arrays are sorted by index.
Definition at line 96 of file AliESDCaloCells.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 94 of file AliESDCaloCells.h.
Referenced by AliESDCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetCell(), GetCellHighGain(), GetCellMCLabel(), GetHighGain(), GetMCLabel(), operator=(), SetCell(), SetMCLabel(), and Sort().
|
protected |
Number of cells.
Definition at line 76 of file AliESDCaloCells.h.
Referenced by AliESDCaloCells(), 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 88 of file AliESDCaloCells.h.
Referenced by AliESDCaloCells(), CopyCaloCells(), CreateContainer(), DeleteContainer(), GetCell(), GetCellTime(), GetTime(), operator=(), SetCell(), and Sort().
|
protected |
Cell type.
Definition at line 98 of file AliESDCaloCells.h.
Referenced by GetType(), IsEMCAL(), IsPHOS(), operator=(), and SetType().