]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDCaloCluster.h
Misalign method is public from now on.
[u/mrichter/AliRoot.git] / STEER / AliESDCaloCluster.h
index c10afab34273a045962f5b79d8c2be6c85c636e1..3fd4e5d75c8089567649143f4f6ebaf6ff816811 100644 (file)
@@ -87,8 +87,14 @@ public:
   void SetTOF(Double_t tof) { fTOF = tof; }
   Double_t GetTOF() const { return fTOF; }
   
-  void AddTracksMatched(TArrayI & array)  { fTracksMatched   = new TArrayI(array) ; }
-  void AddLabels(TArrayI & array)         { fLabels = new TArrayI(array) ; }
+  void AddTracksMatched(TArrayI & array)  { 
+    if(!fTracksMatched)fTracksMatched   = new TArrayI(array);
+    else *fTracksMatched = array;
+  }
+  void AddLabels(TArrayI & array)         { 
+    if(!fLabels)fLabels = new TArrayI(array) ; 
+    else *fLabels = array;
+}
   
   TArrayI * GetTracksMatched() const  {return  fTracksMatched;}
   TArrayI * GetLabels() const         {return  fLabels;}
@@ -111,10 +117,10 @@ public:
   void SetNCells(Int_t n) { fNCells = n;}
   Int_t GetNCells() const   { return fNCells;}
   
-  void SetCellsAbsId(UShort_t *array) { fCellsAbsId = array; }
+  void SetCellsAbsId(UShort_t *array) ;
   UShort_t *GetCellsAbsId() {return  fCellsAbsId;}
   
-  void SetCellsAmplitudeFraction(Double32_t *array) { fCellsAmpFraction = array; }
+  void SetCellsAmplitudeFraction(Double32_t *array) ;
   Double32_t *GetCellsAmplitudeFraction() {return  fCellsAmpFraction;}
   
   Int_t GetCellAbsId(Int_t i) const {