]>
Commit | Line | Data |
---|---|---|
53cc7be4 | 1 | // |
2 | // example macro for reconstruction of the TPC raw data | |
3 | // | |
4 | // The path to the Calibration parameters is for the moment hard-wired in the code | |
5 | // Taken from /afs/ | |
6 | // | |
7 | // | |
8 | ||
f3895d52 | 9 | void recTPC(Int_t type, const char *filename="data.root") |
53cc7be4 | 10 | { |
194b0609 | 11 | // |
12 | // Set path to calibration data | |
13 | // | |
530474cc | 14 | // type variable = 0 - cosmic test |
15 | // = 1 - laser test | |
53cc7be4 | 16 | AliCDBManager * man = AliCDBManager::Instance(); |
17 | man->SetDefaultStorage("local://$ALICE_ROOT"); | |
18 | man->SetRun(0); | |
53cc7be4 | 19 | man->SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib"); |
194b0609 | 20 | // |
21 | // Set reconstruction parameters | |
22 | // | |
23 | AliLog::SetClassDebugLevel("AliTPCclustererMI",2); | |
530474cc | 24 | AliTPCRecoParam * tpcRecoParam = (type==0)? AliTPCRecoParam::GetCosmicTestParam(kTRUE): |
25 | AliTPCRecoParam::GetLaserTestParam(kTRUE); | |
194b0609 | 26 | AliTPCReconstructor::SetRecoParam(tpcRecoParam); |
27 | AliTPCReconstructor::SetStreamLevel(1); | |
28 | // | |
29 | // | |
30 | // | |
53cc7be4 | 31 | AliReconstruction rec; |
32 | rec.SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib"); | |
33 | rec.SetLoadAlignData(""); | |
34 | rec.SetWriteESDfriend(kTRUE); | |
35 | rec.SetInput(filename); | |
36 | rec.SetEquipmentIdMap("EquipmentIdMap.data"); | |
37 | rec.SetRunReconstruction("TPC"); | |
38 | rec.SetOption("TPC","PedestalSubtraction OldRCUFormat"); | |
39 | // rec.SetRunLocalReconstruction(""); | |
40 | // rec.SetRunTracking("TPC"); | |
41 | rec.SetFillESD("TPC"); | |
42 | rec.SetFillTriggerESD(kFALSE); | |
43 | rec.SetRunVertexFinder(kFALSE); | |
44 | AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1); | |
45 | AliTracker::SetFieldMap(field,1); | |
53cc7be4 | 46 | rec.SetWriteAlignmentData(kTRUE); |
47 | rec.Run(); | |
48 | } | |
49 | ||
f3895d52 | 50 | void recTracking(Int_t type, const char *filename="data.root", Int_t nevents=1) |
53cc7be4 | 51 | { |
194b0609 | 52 | // |
53 | // Set path to calibration data | |
54 | // | |
53cc7be4 | 55 | AliCDBManager * man = AliCDBManager::Instance(); |
56 | man->SetDefaultStorage("local://$ALICE_ROOT"); | |
57 | man->SetRun(0); | |
53cc7be4 | 58 | man->SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib"); |
194b0609 | 59 | // |
60 | // Set reconstruction parameters | |
61 | // | |
62 | AliLog::SetClassDebugLevel("AliTPCclustererMI",2); | |
530474cc | 63 | AliTPCRecoParam * tpcRecoParam = (type==0)? AliTPCRecoParam::GetCosmicTestParam(kTRUE): |
64 | AliTPCRecoParam::GetLaserTestParam(kTRUE); | |
65 | ||
194b0609 | 66 | AliTPCReconstructor::SetRecoParam(tpcRecoParam); |
67 | AliTPCReconstructor::SetStreamLevel(1); | |
68 | ||
69 | // | |
70 | // | |
71 | // | |
53cc7be4 | 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 OldRCUFormat"); | |
80 | rec.SetRunLocalReconstruction(""); | |
81 | rec.SetRunTracking("TPC"); | |
82 | rec.SetFillESD("TPC"); | |
83 | rec.SetFillTriggerESD(kFALSE); | |
84 | rec.SetRunVertexFinder(kFALSE); | |
85 | AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1); | |
86 | AliTracker::SetFieldMap(field,1); | |
53cc7be4 | 87 | rec.SetWriteAlignmentData(kTRUE); |
88 | rec.Run(0,nevents); | |
89 | } | |
90 | ||
91 |