]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFClusterFinder.cxx
use eta-phi cuts instead of R-z cuts for track matching, add track momentum cut ...
[u/mrichter/AliRoot.git] / TOF / AliTOFClusterFinder.cxx
index 6c0ffcd94a7ddd4ff44431c634c793aa60f3c049..8de8eb7d93b9271eaab96cf4a7fe51ec38db359e 100644 (file)
@@ -263,8 +263,10 @@ AliTOFClusterFinder::~AliTOFClusterFinder()
 
   //if (fTofClusters || fNumberOfTofClusters) {
   if (fNumberOfTofClusters) {
-    for (Int_t ii=0; ii<fNumberOfTofClusters; ii++)
+    for (Int_t ii=0; ii<kTofMaxCluster; ii++) {
       if (fTofClusters[ii]) fTofClusters[ii]->Delete();
+      delete fTofClusters[ii];
+    }
     fNumberOfTofClusters=0;
    }