]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFhit.cxx
free arrays before of return in PropagateBack
[u/mrichter/AliRoot.git] / TOF / AliTOFhit.cxx
index 7966929cfe6baf852a138a254965fc0523689864..76ee9498007cf61560a3bc2e22719c12d8ff2879 100644 (file)
@@ -79,8 +79,8 @@ ClassImp(AliTOFhit)
 }
 
 //____________________________________________________________________________
-AliTOFhit::AliTOFhit(const AliTOFhit & hit)
-  AliHit(hit),
+AliTOFhit::AliTOFhit(const AliTOFhit & hit):
+  AliHit(hit),
   fSector(hit.fSector),
   fPlate(hit.fPlate),
   fStrip(hit.fStrip),
@@ -103,10 +103,37 @@ AliTOFhit::AliTOFhit(const AliTOFhit & hit)
   fTrack = hit.fTrack;
 }
  
+//______________________________________________________________________________
+AliTOFhit& AliTOFhit::operator = (const AliTOFhit& hit) {
+
+  if (this == &hit)
+    return *this;
+
+  TObject::operator=(hit);
+  fSector=hit.fSector;
+  fPlate=hit.fPlate;
+  fStrip=hit.fStrip;
+  fPadx=hit.fPadx;
+  fPadz=hit.fPadz;
+  fPx=hit.fPx;
+  fPy=hit.fPy;
+  fPz=hit.fPz;
+  fPmom=hit.fPmom;
+  fTof=hit.fTof;
+  fDx=hit.fDx;
+  fDy=hit.fDy;
+  fDz=hit.fDz;
+  fIncA=hit.fIncA;
+  fEdep=hit.fEdep;
+  fTrack = hit.fTrack;
+  return *this;
+
+}
+
 //______________________________________________________________________________
 AliTOFhit::AliTOFhit(Int_t shunt, Int_t track, Int_t * const vol,
-                     Float_t * const hits)
-  :AliHit(shunt, track),
+                     Float_t * const hits) :
+  AliHit(shunt, track),
   fSector(-1),
   fPlate(-1),
   fStrip(-1),