2 /// \brief Example macro for reconstruction of the TPC raw data
4 /// The path to the Calibration parameters is for the moment hard-wired in the code
7 void recTPC(Int_t type, const char *filename="data.root")
9 /// Set path to calibration data
11 /// type variable = 0 - cosmic test
14 AliCDBManager * man = AliCDBManager::Instance();
15 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
17 //man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
19 // Set reconstruction parameters
21 AliLog::SetClassDebugLevel("AliTPCclusterer",2);
22 AliTPCRecoParam * tpcRecoParam = 0;
23 if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
24 if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
26 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
27 AliTPCReconstructor::SetStreamLevel(1);
31 AliReconstruction rec;
32 rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
33 rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
34 rec.SetLoadAlignData("");
35 rec.SetWriteESDfriend(kTRUE);
36 rec.SetInput(filename);
37 rec.SetEquipmentIdMap("EquipmentIdMap.data");
38 rec.SetRunReconstruction("TPC");
39 rec.SetOption("TPC","PedestalSubtraction");
40 // rec.SetRunLocalReconstruction("");
41 // rec.SetRunTracking("TPC");
42 rec.SetFillESD("TPC");
43 rec.SetFillTriggerESD(kFALSE);
44 rec.SetRunVertexFinder(kFALSE);
45 rec.SetWriteAlignmentData(kTRUE);
49 void recTracking(Int_t type, const char *filename="data.root")
51 /// Set path to calibration data
53 AliCDBManager * man = AliCDBManager::Instance();
54 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
56 man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
58 // Set reconstruction parameters
60 AliLog::SetClassDebugLevel("AliTPCclusterer",2);
62 AliTPCRecoParam * tpcRecoParam = 0;
63 if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
64 if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
66 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
67 AliTPCReconstructor::SetStreamLevel(1);
72 AliReconstruction rec;
73 rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
74 rec.SetLoadAlignData("");
75 rec.SetWriteESDfriend(kTRUE);
76 rec.SetInput(filename);
77 rec.SetEquipmentIdMap("EquipmentIdMap.data");
78 //rec.SetRunReconstruction("TPC");
79 rec.SetOption("TPC","PedestalSubtraction");
80 rec.SetRunLocalReconstruction("");
81 rec.SetRunTracking("TPC");
82 rec.SetFillESD("TPC");
83 rec.SetFillTriggerESD(kFALSE);
84 rec.SetRunVertexFinder(kFALSE);
85 rec.SetWriteAlignmentData(kTRUE);