Including TFile.h
[u/mrichter/AliRoot.git] / TOF / AliTOFClusterFinder.cxx
index acbb80497cff02a1b37a8865fc38f3783877638b..8d71d4897bc5f128b1138846a2d97cb888cdec51 100644 (file)
@@ -54,6 +54,7 @@ Revision 0.01  2005/07/25 A. De Caro
 #include <TTree.h>
 #include <TObjArray.h>
 #include <TClonesArray.h>
+#include <TFile.h>
 
 #include "AliLog.h"
 #include "AliRunLoader.h"
@@ -62,6 +63,8 @@ Revision 0.01  2005/07/25 A. De Caro
 #include "AliTOFdigit.h"
 #include "AliTOFcluster.h"
 #include "AliTOFGeometry.h"
+#include "AliTOFGeometryV4.h"
+#include "AliTOFGeometryV5.h"
 #include "AliTOFRawStream.h"
 
 #include "AliTOFClusterFinder.h"
@@ -99,7 +102,10 @@ AliTOFClusterFinder::AliTOFClusterFinder(AliRunLoader* runLoader):
 // Constructor
 //
 
-  fTOFGeometry = new AliTOFGeometry();
+  runLoader->CdGAFile();
+  TFile *in=(TFile*)gFile;
+  in->cd();
+  fTOFGeometry = (AliTOFGeometry*)in->Get("TOFgeometry");
 
 }
 //______________________________________________________________________________