1 #ifndef ALIESDCALOCELLS_H 2 #define ALIESDCALOCELLS_H 35 virtual void Copy(TObject &obj)
const;
36 void Clear(
const Option_t*);
46 inline Bool_t
GetCell(Short_t pos, Short_t &cellNumber, Double_t &litude, Double_t &time, Int_t &mclabel, Double_t &efrac)
const;
47 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);
60 inline Double_t
GetTime(Short_t pos)
const;
66 inline void SetMCLabel(Short_t pos, Int_t val);
71 inline void SetEFraction (Short_t pos, Double32_t efrac) ;
119 Double_t & time, Int_t & mclabel, Double_t & efrac)
const 274 Int_t nabove, nbelow, middle;
279 while (nabove - nbelow > 1) {
280 middle = (nabove + nbelow) / 2;
285 if (cellNumber <
fCellNumber[middle-1]) nabove = middle;
286 else nbelow = middle;
void Clear(const Option_t *)
void SetEFraction(Short_t pos, Double32_t efrac)
Double32_t * fAmplitude
Array with cell amplitudes (= energy!).
virtual AliVCaloCells * CopyCaloCells(Bool_t all) const
Bool_t GetCell(Short_t pos, Short_t &cellNumber, Double_t &litude, Double_t &time, Int_t &mclabel, Double_t &efrac) const
Bool_t fIsSorted
! True if cell arrays are sorted by index.
Virtual class for calorimeter cell data handling.
Double32_t * fTime
Array with cell times.
AliESDCaloCells & operator=(const AliESDCaloCells &source)
void SetCellEFraction(Short_t cellNumber, Double32_t efrac)
Int_t fNCells
Number of cells.
void CreateContainer(Short_t nCells)
Short_t * fCellNumber
Array of cell absolute Id. numbers.
Bool_t GetCellHighGain(Short_t cellNumber)
virtual void Copy(TObject &obj) const
Int_t GetCellMCLabel(Short_t cellNumber)
void SetMCLabel(Short_t pos, Int_t val)
Double_t GetCellAmplitude(Short_t cellNumber)
Short_t GetCellNumber(Short_t pos) const
Double32_t * fEFraction
Array with fraction of MC energy and data - for embedding.
Double_t GetEFraction(Short_t pos) const
Bool_t * fHGLG
If Cell is High Gain or Low Gain.
Int_t * fMCLabel
Array of MC labels, each label is the highest contributor to the cell signal.
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
Int_t GetMCLabel(Short_t pos) const
Double_t GetCellEFraction(Short_t cellNumber)
Double_t GetTime(Short_t pos) const
Class for calorimeter cell ESD data handling.
Bool_t GetHighGain(Short_t pos) const
virtual ~AliESDCaloCells()
Short_t GetCellPosition(Short_t cellNumber)
Double_t GetAmplitude(Short_t pos) const
void SetNumberOfCells(Int_t n)
Double_t GetCellTime(Short_t cellNumber)