]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/recTPC.C
Overlaps corrected, new shape of sectors
[u/mrichter/AliRoot.git] / TPC / recTPC.C
CommitLineData
a7a1dd76 1/// \file recTPC.C
2/// \brief Example macro for reconstruction of the TPC raw data
3a4edebe 3///
a7a1dd76 4/// The path to the Calibration parameters is for the moment hard-wired in the code
5/// Taken from /afs
53cc7be4 6
f3895d52 7void recTPC(Int_t type, const char *filename="data.root")
53cc7be4 8{
3a4edebe 9 /// Set path to calibration data
10 ///
11 /// type variable = 0 - cosmic test
12 /// = 1 - laser test
13
53cc7be4 14 AliCDBManager * man = AliCDBManager::Instance();
162637e4 15 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
9355efb7 16 //man->SetRun(0);
17 //man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
194b0609 18 //
19 // Set reconstruction parameters
20 //
829455ad 21 AliLog::SetClassDebugLevel("AliTPCclusterer",2);
f5d176d8 22 AliTPCRecoParam * tpcRecoParam = 0;
4f543b2f 23 if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
24 if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
25 tpcRecoParam->Dump();
194b0609 26 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
27 AliTPCReconstructor::SetStreamLevel(1);
28 //
29 //
30 //
53cc7be4 31 AliReconstruction rec;
162637e4 32 rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
cb83f73d 33 rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
53cc7be4 34 rec.SetLoadAlignData("");
35 rec.SetWriteESDfriend(kTRUE);
36 rec.SetInput(filename);
37 rec.SetEquipmentIdMap("EquipmentIdMap.data");
38 rec.SetRunReconstruction("TPC");
9a090ccd 39 rec.SetOption("TPC","PedestalSubtraction");
53cc7be4 40 // rec.SetRunLocalReconstruction("");
41 // rec.SetRunTracking("TPC");
42 rec.SetFillESD("TPC");
43 rec.SetFillTriggerESD(kFALSE);
44 rec.SetRunVertexFinder(kFALSE);
53cc7be4 45 rec.SetWriteAlignmentData(kTRUE);
46 rec.Run();
47}
48
9355efb7 49void recTracking(Int_t type, const char *filename="data.root")
53cc7be4 50{
3a4edebe 51 /// Set path to calibration data
52
53cc7be4 53 AliCDBManager * man = AliCDBManager::Instance();
162637e4 54 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
53cc7be4 55 man->SetRun(0);
cb83f73d 56 man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
194b0609 57 //
58 // Set reconstruction parameters
59 //
829455ad 60 AliLog::SetClassDebugLevel("AliTPCclusterer",2);
f5d176d8 61
62 AliTPCRecoParam * tpcRecoParam = 0;
4f543b2f 63 if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE);
64 if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE);
530474cc 65
194b0609 66 AliTPCReconstructor::SetRecoParam(tpcRecoParam);
67 AliTPCReconstructor::SetStreamLevel(1);
68
69 //
70 //
71 //
53cc7be4 72 AliReconstruction rec;
cb83f73d 73 rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib");
53cc7be4 74 rec.SetLoadAlignData("");
75 rec.SetWriteESDfriend(kTRUE);
76 rec.SetInput(filename);
77 rec.SetEquipmentIdMap("EquipmentIdMap.data");
78 //rec.SetRunReconstruction("TPC");
9a090ccd 79 rec.SetOption("TPC","PedestalSubtraction");
53cc7be4 80 rec.SetRunLocalReconstruction("");
81 rec.SetRunTracking("TPC");
82 rec.SetFillESD("TPC");
83 rec.SetFillTriggerESD(kFALSE);
84 rec.SetRunVertexFinder(kFALSE);
53cc7be4 85 rec.SetWriteAlignmentData(kTRUE);
9355efb7 86 rec.Run(0);
53cc7be4 87}
88
89