]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFReconstructor.cxx
Removing the fake copy constructors and assignment operator, moving their declaration...
[u/mrichter/AliRoot.git] / TOF / AliTOFReconstructor.cxx
index 74fed57a157cea25cdf9c6ee435598bf5da6b375..e1a9c7d182f77d23d514a03a0ea32f5068d31ead 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "AliTOFClusterFinder.h"
 #include "AliTOFGeometry.h"
+#include "AliTOFGeometryV5.h"
 #include "AliTOFtrackerMI.h"
 #include "AliTOFtracker.h"
 #include "AliTOFReconstructor.h"
@@ -47,13 +48,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();
 
 }
 
@@ -91,7 +92,8 @@ AliTracker* AliTOFReconstructor::CreateTracker(AliRunLoader* runLoader) const
 {
 // create a TOF tracker
 
-  AliTOFGeometry* geom = GetTOFGeometry(runLoader);
+//  AliTOFGeometry* geom = GetTOFGeometry(runLoader);
+  AliTOFGeometry* geom = new AliTOFGeometryV5();
   if (!geom) return NULL;
   //  Double_t parPID[] = {130., 5.};
   Double_t parPID[] = {80., 5.};
@@ -122,7 +124,7 @@ AliTOFGeometry* AliTOFReconstructor::GetTOFGeometry(AliRunLoader* runLoader) con
   TFile *in=(TFile*)gFile;  
   if (!in->IsOpen()) {
     AliWarning("Geometry file is not open default  TOF geometry will be used");
-    tofGeom = new AliTOFGeometry();
+    tofGeom = new AliTOFGeometryV5();
   }
   else {
     in->cd();