]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/recTPC.C
Correct use of ROOT_INCLUDE_DIR
[u/mrichter/AliRoot.git] / TPC / recTPC.C
index a5695ead5dc15de483f87e8517f7bc75acb0984e..188e8abca03b87bdb07555526170d7cdc46ffc00 100644 (file)
@@ -1,10 +1,8 @@
-//
-// example macro for reconstruction of the TPC raw data
-//
-// The path to the Calibration parameters is for the moment hard-wired in the code
-// Taken from /afs/
-//
-//
+/// \file recTPC.C
+/// \brief Example macro for reconstruction of the TPC raw data
+/// 
+/// The path to the Calibration parameters is for the moment hard-wired in the code
+/// Taken from /afs
 
 void recTPC(Int_t type, const char *filename="data.root")
 {
@@ -14,13 +12,13 @@ void recTPC(Int_t type, const char *filename="data.root")
   // type variable = 0 - cosmic test
   //               = 1 - laser test   
   AliCDBManager * man = AliCDBManager::Instance();
-  man->SetDefaultStorage("local://$ALICE_ROOT");
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   //man->SetRun(0);
   //man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
   //
   // Set reconstruction parameters
   //
-  AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
+  AliLog::SetClassDebugLevel("AliTPCclusterer",2);
   AliTPCRecoParam * tpcRecoParam = 0;
   if (type==0)  tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
   if (type>0)  tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
@@ -31,7 +29,7 @@ void recTPC(Int_t type, const char *filename="data.root")
   //
   //
   AliReconstruction rec;  
-  rec.SetDefaultStorage("local://$ALICE_ROOT");
+  rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
   rec.SetLoadAlignData("");
   rec.SetWriteESDfriend(kTRUE);
@@ -44,8 +42,6 @@ void recTPC(Int_t type, const char *filename="data.root")
   rec.SetFillESD("TPC");
   rec.SetFillTriggerESD(kFALSE);
   rec.SetRunVertexFinder(kFALSE);
-  AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
-  AliTracker::SetFieldMap(field,1);
   rec.SetWriteAlignmentData(kTRUE);
   rec.Run();
 }
@@ -56,13 +52,13 @@ void recTracking(Int_t type, const char *filename="data.root")
   // Set path to calibration data
   //
   AliCDBManager * man = AliCDBManager::Instance();
-  man->SetDefaultStorage("local://$ALICE_ROOT");
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   man->SetRun(0);
   man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
   //
   // Set reconstruction parameters
   //
-  AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
+  AliLog::SetClassDebugLevel("AliTPCclusterer",2);
 
   AliTPCRecoParam * tpcRecoParam = 0;
   if (type==0)  tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
@@ -87,8 +83,6 @@ void recTracking(Int_t type, const char *filename="data.root")
   rec.SetFillESD("TPC");
   rec.SetFillTriggerESD(kFALSE);
   rec.SetRunVertexFinder(kFALSE);
-  AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
-  AliTracker::SetFieldMap(field,1);
   rec.SetWriteAlignmentData(kTRUE);
   rec.Run(0);
 }