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");
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");
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 OldRCUFormat");
42 // rec.SetRunLocalReconstruction("");
43 // rec.SetRunTracking("TPC");
44 rec.SetFillESD("TPC");
45 rec.SetFillTriggerESD(kFALSE);
46 rec.SetRunVertexFinder(kFALSE);
47 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
48 AliTracker::SetFieldMap(field,1);
49 rec.SetWriteAlignmentData(kTRUE);
53 void recTracking(Int_t type, const char *filename="data.root")
56 // Set path to calibration data
58 AliCDBManager * man = AliCDBManager::Instance();
59 man->SetDefaultStorage("local://$ALICE_ROOT");
61 man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
63 // Set reconstruction parameters
65 AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
67 AliTPCRecoParam * tpcRecoParam = 0;
68 if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
69 if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
71 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
72 AliTPCReconstructor::SetStreamLevel(1);
77 AliReconstruction rec;
78 rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
79 rec.SetLoadAlignData("");
80 rec.SetWriteESDfriend(kTRUE);
81 rec.SetInput(filename);
82 rec.SetEquipmentIdMap("EquipmentIdMap.data");
83 //rec.SetRunReconstruction("TPC");
84 rec.SetOption("TPC","PedestalSubtraction OldRCUFormat");
85 rec.SetRunLocalReconstruction("");
86 rec.SetRunTracking("TPC");
87 rec.SetFillESD("TPC");
88 rec.SetFillTriggerESD(kFALSE);
89 rec.SetRunVertexFinder(kFALSE);
90 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
91 AliTracker::SetFieldMap(field,1);
92 rec.SetWriteAlignmentData(kTRUE);