]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/recTPC.C
Replacing the friend declarations by setters and getters (Federico)
[u/mrichter/AliRoot.git] / TPC / recTPC.C
CommitLineData
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 9void 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);
cb83f73d 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);
f5d176d8 24 AliTPCRecoParam * tpcRecoParam = 0;
4f543b2f 25 if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
26 if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
27 tpcRecoParam->Dump();
194b0609 28 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
29 AliTPCReconstructor::SetStreamLevel(1);
30 //
31 //
32 //
53cc7be4 33 AliReconstruction rec;
cb83f73d 34 rec.SetDefaultStorage("local://$ALICE_ROOT");
35 rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
53cc7be4 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);
53cc7be4 49 rec.SetWriteAlignmentData(kTRUE);
50 rec.Run();
51}
52
f3895d52 53void recTracking(Int_t type, const char *filename="data.root", Int_t nevents=1)
53cc7be4 54{
194b0609 55 //
56 // Set path to calibration data
57 //
53cc7be4 58 AliCDBManager * man = AliCDBManager::Instance();
59 man->SetDefaultStorage("local://$ALICE_ROOT");
60 man->SetRun(0);
cb83f73d 61 man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
194b0609 62 //
63 // Set reconstruction parameters
64 //
65 AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
f5d176d8 66
67 AliTPCRecoParam * tpcRecoParam = 0;
4f543b2f 68 if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
69 if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
530474cc 70
194b0609 71 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
72 AliTPCReconstructor::SetStreamLevel(1);
73
74 //
75 //
76 //
53cc7be4 77 AliReconstruction rec;
cb83f73d 78 rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
53cc7be4 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);
53cc7be4 92 rec.SetWriteAlignmentData(kTRUE);
93 rec.Run(0,nevents);
94}
95
96