]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/recTPC.C
Merge branch 'feature-doxygen'
[u/mrichter/AliRoot.git] / TPC / recTPC.C
1 /// \file recTPC.C
2 /// \brief 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 void recTPC(Int_t type, const char *filename="data.root")
8 {
9   /// Set path to calibration data
10   ///
11   /// type variable = 0 - cosmic test
12   ///               = 1 - laser test
13
14   AliCDBManager * man = AliCDBManager::Instance();
15   man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
16   //man->SetRun(0);
17   //man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
18   //
19   // Set reconstruction parameters
20   //
21   AliLog::SetClassDebugLevel("AliTPCclusterer",2);
22   AliTPCRecoParam * tpcRecoParam = 0;
23   if (type==0)  tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
24   if (type>0)  tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
25   tpcRecoParam->Dump();
26   AliTPCReconstructor::SetRecoParam(tpcRecoParam);
27   AliTPCReconstructor::SetStreamLevel(1);
28   //
29   //
30   //
31   AliReconstruction rec;  
32   rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
33   rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
34   rec.SetLoadAlignData("");
35   rec.SetWriteESDfriend(kTRUE);
36   rec.SetInput(filename);
37   rec.SetEquipmentIdMap("EquipmentIdMap.data");
38   rec.SetRunReconstruction("TPC");
39   rec.SetOption("TPC","PedestalSubtraction");
40   //  rec.SetRunLocalReconstruction("");
41   //  rec.SetRunTracking("TPC");
42   rec.SetFillESD("TPC");
43   rec.SetFillTriggerESD(kFALSE);
44   rec.SetRunVertexFinder(kFALSE);
45   rec.SetWriteAlignmentData(kTRUE);
46   rec.Run();
47 }
48
49 void recTracking(Int_t type, const char *filename="data.root")
50 {
51   /// Set path to calibration data
52
53   AliCDBManager * man = AliCDBManager::Instance();
54   man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
55   man->SetRun(0);
56   man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
57   //
58   // Set reconstruction parameters
59   //
60   AliLog::SetClassDebugLevel("AliTPCclusterer",2);
61
62   AliTPCRecoParam * tpcRecoParam = 0;
63   if (type==0)  tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
64   if (type>0)  tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
65
66   AliTPCReconstructor::SetRecoParam(tpcRecoParam);
67   AliTPCReconstructor::SetStreamLevel(1);
68
69   //
70   //
71   //
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");
80   rec.SetRunLocalReconstruction("");
81   rec.SetRunTracking("TPC");
82   rec.SetFillESD("TPC");
83   rec.SetFillTriggerESD(kFALSE);
84   rec.SetRunVertexFinder(kFALSE);
85   rec.SetWriteAlignmentData(kTRUE);
86   rec.Run(0);
87 }
88
89