]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCReconstructor.cxx
Adding possibility to change the tracking window in ctgTheta
[u/mrichter/AliRoot.git] / TPC / AliTPCReconstructor.cxx
index b0923e8ba153e4cacb0e9526812bc180ab84b7bd..8e284e2d290a20fa6d0bacca4092192b526c2f9f 100644 (file)
@@ -25,7 +25,6 @@
 #include "AliTPCReconstructor.h"
 #include "AliRunLoader.h"
 #include "AliRun.h"
-#include "AliTPC.h"
 #include "AliTPCclustererMI.h"
 #include "AliTPCtrackerMI.h"
 #include "AliTPCpidESD.h"
@@ -33,6 +32,7 @@
 
 ClassImp(AliTPCReconstructor)
 
+Double_t AliTPCReconstructor::fgCtgRange = 1.05;
 
 //_____________________________________________________________________________
 void AliTPCReconstructor::Reconstruct(AliRunLoader* runLoader) const
@@ -104,19 +104,12 @@ AliTPCParam* AliTPCReconstructor::GetTPCParam(AliRunLoader* runLoader) const
 {
 // get the TPC parameters
 
-  if (!runLoader->GetAliRun()) runLoader->LoadgAlice();
-  if (!runLoader->GetAliRun()) {
-    Error("GetTPCParam", "couldn't get AliRun object");
-    return NULL;
-  }
-  AliTPC* tpc = (AliTPC*) runLoader->GetAliRun()->GetDetector("TPC");
-  if (!tpc) {
-    Error("GetTPCParam", "couldn't get TPC detector");
-    return NULL;
-  }
-  if (!tpc->GetParam()) {
-    Error("GetTPCParam", "no TPC parameters available");
-    return NULL;
-  }
-  return tpc->GetParam();
+  TDirectory* saveDir = gDirectory;
+  runLoader->CdGAFile();
+
+  AliTPCParam* param = (AliTPCParam*) gDirectory->Get("75x40_100x60_150x60");
+  if (!param) Error("GetTPCParam", "no TPC parameters found");
+
+  saveDir->cd();
+  return param;
 }