2 // 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
9 void recTPC(Int_t type, const char *filename="data.root")
12 // Set path to calibration data
14 // type variable = 0 - cosmic test
16 AliCDBManager * man = AliCDBManager::Instance();
17 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
19 //man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
21 // Set reconstruction parameters
23 AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
24 AliTPCRecoParam * tpcRecoParam = 0;
25 if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
26 if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
28 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
29 AliTPCReconstructor::SetStreamLevel(1);
33 AliReconstruction rec;
34 rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
35 rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
36 rec.SetLoadAlignData("");
37 rec.SetWriteESDfriend(kTRUE);
38 rec.SetInput(filename);
39 rec.SetEquipmentIdMap("EquipmentIdMap.data");
40 rec.SetRunReconstruction("TPC");
41 rec.SetOption("TPC","PedestalSubtraction");
42 // rec.SetRunLocalReconstruction("");
43 // rec.SetRunTracking("TPC");
44 rec.SetFillESD("TPC");
45 rec.SetFillTriggerESD(kFALSE);
46 rec.SetRunVertexFinder(kFALSE);
47 rec.SetWriteAlignmentData(kTRUE);
51 void recTracking(Int_t type, const char *filename="data.root")
54 // Set path to calibration data
56 AliCDBManager * man = AliCDBManager::Instance();
57 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
59 man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
61 // Set reconstruction parameters
63 AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
65 AliTPCRecoParam * tpcRecoParam = 0;
66 if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
67 if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
69 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
70 AliTPCReconstructor::SetStreamLevel(1);
75 AliReconstruction rec;
76 rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
77 rec.SetLoadAlignData("");
78 rec.SetWriteESDfriend(kTRUE);
79 rec.SetInput(filename);
80 rec.SetEquipmentIdMap("EquipmentIdMap.data");
81 //rec.SetRunReconstruction("TPC");
82 rec.SetOption("TPC","PedestalSubtraction");
83 rec.SetRunLocalReconstruction("");
84 rec.SetRunTracking("TPC");
85 rec.SetFillESD("TPC");
86 rec.SetFillTriggerESD(kFALSE);
87 rec.SetRunVertexFinder(kFALSE);
88 rec.SetWriteAlignmentData(kTRUE);