//
//
-void recTPC(const char *filename="../dataroot/run385.001.root")
+void recTPC(Int_t type, const char *filename="data.root")
{
- AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
+ //
+ // Set path to calibration data
+ //
+ // type variable = 0 - cosmic test
+ // = 1 - laser test
AliCDBManager * man = AliCDBManager::Instance();
man->SetDefaultStorage("local://$ALICE_ROOT");
man->SetRun(0);
-
man->SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib");
-
+ //
+ // Set reconstruction parameters
+ //
+ AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
+ AliTPCRecoParam * tpcRecoParam = 0;
+ if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
+ if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
+ tpcRecoParam->Dump();
+ AliTPCReconstructor::SetRecoParam(tpcRecoParam);
+ AliTPCReconstructor::SetStreamLevel(1);
+ //
+ //
+ //
AliReconstruction rec;
rec.SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib");
rec.SetLoadAlignData("");
rec.SetRunVertexFinder(kFALSE);
AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
AliTracker::SetFieldMap(field,1);
- AliTPCReconstructor::SetCtgRange(100.);
- AliTPCReconstructor::SetStreamLevel(1);
rec.SetWriteAlignmentData(kTRUE);
rec.Run();
}
-void recTracking(const char *filename="../run439.001.root", Int_t nevents=1)
+void recTracking(Int_t type, const char *filename="data.root", Int_t nevents=1)
{
+ //
+ // Set path to calibration data
+ //
AliCDBManager * man = AliCDBManager::Instance();
man->SetDefaultStorage("local://$ALICE_ROOT");
man->SetRun(0);
-
man->SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib");
+ //
+ // Set reconstruction parameters
+ //
+ AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
+
+ AliTPCRecoParam * tpcRecoParam = 0;
+ if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
+ if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
+
+ AliTPCReconstructor::SetRecoParam(tpcRecoParam);
+ AliTPCReconstructor::SetStreamLevel(1);
+
+ //
+ //
+ //
AliReconstruction rec;
//rec.SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib");
rec.SetLoadAlignData("");
rec.SetRunVertexFinder(kFALSE);
AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
AliTracker::SetFieldMap(field,1);
- AliTPCReconstructor::SetCtgRange(100.);
- AliTPCReconstructor::SetStreamLevel(1);
rec.SetWriteAlignmentData(kTRUE);
rec.Run(0,nevents);
}