Reducing the memory size needed for raw data reconstruction
[u/mrichter/AliRoot.git] / TOF / AliTOFReconstructor.cxx
index 74fed57a157cea25cdf9c6ee435598bf5da6b375..72473ff31e6a9bc8386b53c0da22698b6ac6ec55 100644 (file)
@@ -47,13 +47,13 @@ ClassImp(AliTOFReconstructor)
 {
 // reconstruct clusters from digits
 
-  AliTOFClusterFinder *tofClus = new AliTOFClusterFinder(runLoader);
-  tofClus->Load();
+  AliTOFClusterFinder tofClus(runLoader);
+  tofClus.Load();
   for (Int_t iEvent = 0; iEvent < runLoader->GetNumberOfEvents(); iEvent++)
     {
-      tofClus->Digits2RecPoints(iEvent);
+      tofClus.Digits2RecPoints(iEvent);
     }
-  tofClus->UnLoad();
+  tofClus.UnLoad();
 
 }