28 fAmplitude(0), fTime(0), fEFraction(0), fMCLabel(0),
29 fIsSorted(kTRUE), fType(kUndef)
60 for(Int_t i = 0; i <
fNCells; i++)
71 for(Int_t i = 0; i <
fNCells; i++)
133 if(
this==&obj)
return;
149 obj->SetName (GetName()) ;
150 obj->SetTitle(GetTitle()) ;
154 for (Short_t i = 0; i <
fNCells; i++)
275 Int_t *idxArray =
new Int_t[
fNCells];
278 Short_t *newIndex =
new Short_t[
fNCells];
279 Double32_t *newAmplitude =
new Double32_t[
fNCells];
280 Double32_t *newTime =
new Double32_t[
fNCells];
282 Int_t *newMCLabel = 0 ;
283 Double32_t *newEFraction = 0 ;
287 for (Int_t i=0; i <
fNCells; i++)
291 newTime[i] =
fTime [idxArray[i]];
296 Bool_t *newHGLG =
new Bool_t[
fNCells];
297 for (Int_t i=0; i <
fNCells; i++) {
298 newHGLG[i] =
fHGLG[idxArray[i]];
333 Double32_t time, Int_t mclabel, Double32_t efrac, Bool_t isHG)
348 for( Int_t i = 0; i <
fNCells; i++ )
354 for( Int_t i = 0; i <
fNCells; i++ )
void Clear(const Option_t *)
Double32_t * fAmplitude
Array with cell amplitudes (= energy!).
virtual AliVCaloCells * CopyCaloCells(Bool_t all) const
Bool_t fIsSorted
! True if cell arrays are sorted by index.
virtual 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=kTRUE)=0
Virtual class for calorimeter cell data handling.
Double32_t * fTime
Array with cell times.
AliESDCaloCells & operator=(const AliESDCaloCells &source)
Int_t fNCells
Number of cells.
void CreateContainer(Short_t nCells)
AliVCaloCells & operator=(const AliVCaloCells &cells)
Short_t * fCellNumber
Array of cell absolute Id. numbers.
virtual void Copy(TObject &obj) const
virtual void SetNumberOfCells(Int_t n)=0
virtual void SetType(Char_t ttype)=0
Double32_t * fEFraction
Array with fraction of MC energy and data - for embedding.
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)
Class for calorimeter cell ESD data handling.
virtual ~AliESDCaloCells()