]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/recTPC.C
Fixes for object target dependencies
[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/OCDB");
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("AliTPCclusterer",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/OCDB");
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");
42   //  rec.SetRunLocalReconstruction("");
43   //  rec.SetRunTracking("TPC");
44   rec.SetFillESD("TPC");
45   rec.SetFillTriggerESD(kFALSE);
46   rec.SetRunVertexFinder(kFALSE);
47   rec.SetWriteAlignmentData(kTRUE);
48   rec.Run();
49 }
50
51 void recTracking(Int_t type, const char *filename="data.root")
52 {
53   //
54   // Set path to calibration data
55   //
56   AliCDBManager * man = AliCDBManager::Instance();
57   man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
58   man->SetRun(0);
59   man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
60   //
61   // Set reconstruction parameters
62   //
63   AliLog::SetClassDebugLevel("AliTPCclusterer",2);
64
65   AliTPCRecoParam * tpcRecoParam = 0;
66   if (type==0)  tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
67   if (type>0)  tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
68
69   AliTPCReconstructor::SetRecoParam(tpcRecoParam);
70   AliTPCReconstructor::SetStreamLevel(1);
71
72   //
73   //
74   //
75   AliReconstruction rec;
76   rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
77   rec.SetLoadAlignData("");
78   rec.SetWriteESDfriend(kTRUE);
79   rec.SetInput(filename);
80   rec.SetEquipmentIdMap("EquipmentIdMap.data");
81   //rec.SetRunReconstruction("TPC");
82   rec.SetOption("TPC","PedestalSubtraction");
83   rec.SetRunLocalReconstruction("");
84   rec.SetRunTracking("TPC");
85   rec.SetFillESD("TPC");
86   rec.SetFillTriggerESD(kFALSE);
87   rec.SetRunVertexFinder(kFALSE);
88   rec.SetWriteAlignmentData(kTRUE);
89   rec.Run(0);
90 }
91
92