Additiona fix for bug #63491: High virtual memory consumption in the TRD clusterizati...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Feb 2010 20:09:38 +0000 (20:09 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Feb 2010 20:09:38 +0000 (20:09 +0000)
TRD/AliTRDReconstructor.cxx
TRD/AliTRDclusterizer.cxx

index 6b89546..8638476 100644 (file)
@@ -183,6 +183,8 @@ void AliTRDReconstructor::Reconstruct(AliRawReader *rawReader
     return;
   }
 
+  fClusterizer->ResetRecPoints();
+
   fClusterizer->OpenOutput(clusterTree);
   fClusterizer->OpenTrackletOutput();
   fClusterizer->SetUseLabels(kFALSE);
@@ -216,6 +218,8 @@ void AliTRDReconstructor::Reconstruct(TTree *digitsTree
     return;
   }
 
+  fClusterizer->ResetRecPoints();
+
   fClusterizer->OpenOutput(clusterTree);
   fClusterizer->ReadDigits(digitsTree);
   fClusterizer->MakeClusters();
index fd2fb08..191ec02 100644 (file)
@@ -1371,8 +1371,9 @@ void AliTRDclusterizer::ResetRecPoints()
   //
 
   if (fRecPoints) {
-    fRecPoints->Delete();
-    delete fRecPoints;
+    fRecPoints->Clear();
+    fNoOfClusters = 0;
+    //    delete fRecPoints;
   }
 }