]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/recTPC.C
Temporary disable the raw version, it will be taken from FEE
[u/mrichter/AliRoot.git] / TPC / recTPC.C
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
9 void recTPC(Int_t type, const char *filename="data.root")
10 {
11   //
12   // Set path to calibration data
13   //
14   // type variable = 0 - cosmic test
15   //               = 1 - laser test   
16   AliCDBManager * man = AliCDBManager::Instance();
17   man->SetDefaultStorage("local://$ALICE_ROOT");
18   //man->SetRun(0);
19   //man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
20   //
21   // Set reconstruction parameters
22   //
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);
27   tpcRecoParam->Dump();
28   AliTPCReconstructor::SetRecoParam(tpcRecoParam);
29   AliTPCReconstructor::SetStreamLevel(1);
30   //
31   //
32   //
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);
50   rec.Run();
51 }
52
53 void recTracking(Int_t type, const char *filename="data.root")
54 {
55   //
56   // Set path to calibration data
57   //
58   AliCDBManager * man = AliCDBManager::Instance();
59   man->SetDefaultStorage("local://$ALICE_ROOT");
60   man->SetRun(0);
61   man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
62   //
63   // Set reconstruction parameters
64   //
65   AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
66
67   AliTPCRecoParam * tpcRecoParam = 0;
68   if (type==0)  tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
69   if (type>0)  tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
70
71   AliTPCReconstructor::SetRecoParam(tpcRecoParam);
72   AliTPCReconstructor::SetStreamLevel(1);
73
74   //
75   //
76   //
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);
93   rec.Run(0);
94 }
95
96