36 virtual void Copy(TObject &obj)
const;
37 void Clear(
const Option_t*);
42 inline Bool_t
GetCell(Short_t pos, Short_t &cellNumber, Double_t &litude, Double_t &time, Int_t &mclabel, Double_t &efrac)
const ;
43 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);
56 inline Double_t
GetTime(Short_t pos)
const;
67 inline void SetMCLabel(Short_t pos, Int_t val);
72 inline void SetEFraction (Short_t pos, Double32_t efrac) ;
120 Double_t &time, Int_t & mclabel, Double_t & efrac)
const 192 if(!
fTime)
return -1;
277 Int_t nabove, nbelow, middle;
282 while (nabove - nbelow > 1) {
283 middle = (nabove + nbelow) / 2;
288 if (cellNumber <
fCellNumber[middle-1]) nabove = middle;
289 else nbelow = middle;
Bool_t GetHighGain(Short_t pos) const
Double32_t * fTime
Array with cell times.
Bool_t GetCell(Short_t pos, Short_t &cellNumber, Double_t &litude, Double_t &time, Int_t &mclabel, Double_t &efrac) const
void SetType(Char_t ttype)
Double_t GetAmplitude(Short_t pos) const
Class for calorimeter cell AOD data handling.
Double32_t * fEFraction
Array with fraction of MC energy and data - for embedding.
Virtual class for calorimeter cell data handling.
AliAODCaloCells & operator=(const AliAODCaloCells &cells)
Int_t fNCells
Number of cells.
Double_t GetTime(Short_t pos) const
void SetCellEFraction(Short_t cellNumber, Double32_t efrac)
Int_t GetMCLabel(Short_t pos) const
Short_t GetCellNumber(Short_t pos) const
Int_t * fMCLabel
Array of MC labels, each label is the highest contributor to the cell signal.
virtual void Copy(TObject &obj) const
void SetMCLabel(Short_t pos, Int_t val)
Short_t GetCellPosition(Short_t cellNumber)
Double_t GetCellEFraction(Short_t cellNumber)
Double_t GetCellAmplitude(Short_t cellNumber)
void CreateContainer(Short_t nCells)
Double_t GetEFraction(Short_t pos) const
Double_t GetCellTime(Short_t cellNumber)
void SetEFraction(Short_t pos, Double32_t efrac)
void Clear(const Option_t *)
Short_t * fCellNumber
Array of cell absolute Id. numbers.
Short_t GetNumberOfCells() const
Bool_t GetCellHighGain(Short_t cellNumber)
virtual AliVCaloCells * CopyCaloCells(Bool_t all) const
Bool_t * fHGLG
If Cell is High Gain or Low Gain.
Double32_t * fAmplitude
Array with cell amplitudes (= energy!).
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)
Int_t GetCellMCLabel(Short_t cellNumber)
void SetNumberOfCells(Int_t n)
virtual ~AliAODCaloCells()
Bool_t fIsSorted
! True if cell arrays are sorted by index.