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