The example macro for reconstruction of the TPC raw data (Marian)
[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
9void recTPC(const char *filename="../dataroot/run385.001.root")
10{
11 AliLog::SetClassDebugLevel("AliTPCclustererMI",2);
12 AliCDBManager * man = AliCDBManager::Instance();
13 man->SetDefaultStorage("local://$ALICE_ROOT");
14 man->SetRun(0);
15
16 man->SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib");
17
18 AliReconstruction rec;
19 rec.SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib");
20 rec.SetLoadAlignData("");
21 rec.SetWriteESDfriend(kTRUE);
22 rec.SetInput(filename);
23 rec.SetEquipmentIdMap("EquipmentIdMap.data");
24 rec.SetRunReconstruction("TPC");
25 rec.SetOption("TPC","PedestalSubtraction OldRCUFormat");
26 // rec.SetRunLocalReconstruction("");
27 // rec.SetRunTracking("TPC");
28 rec.SetFillESD("TPC");
29 rec.SetFillTriggerESD(kFALSE);
30 rec.SetRunVertexFinder(kFALSE);
31 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
32 AliTracker::SetFieldMap(field,1);
33 AliTPCReconstructor::SetCtgRange(100.);
34 AliTPCReconstructor::SetStreamLevel(1);
35 rec.SetWriteAlignmentData(kTRUE);
36 rec.Run();
37}
38
39void recTracking(const char *filename="../run439.001.root", Int_t nevents=1)
40{
41 AliCDBManager * man = AliCDBManager::Instance();
42 man->SetDefaultStorage("local://$ALICE_ROOT");
43 man->SetRun(0);
44
45 man->SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib");
46 AliReconstruction rec;
47 //rec.SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib");
48 rec.SetLoadAlignData("");
49 rec.SetWriteESDfriend(kTRUE);
50 rec.SetInput(filename);
51 rec.SetEquipmentIdMap("EquipmentIdMap.data");
52 //rec.SetRunReconstruction("TPC");
53 rec.SetOption("TPC","PedestalSubtraction OldRCUFormat");
54 rec.SetRunLocalReconstruction("");
55 rec.SetRunTracking("TPC");
56 rec.SetFillESD("TPC");
57 rec.SetFillTriggerESD(kFALSE);
58 rec.SetRunVertexFinder(kFALSE);
59 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
60 AliTracker::SetFieldMap(field,1);
61 AliTPCReconstructor::SetCtgRange(100.);
62 AliTPCReconstructor::SetStreamLevel(1);
63 rec.SetWriteAlignmentData(kTRUE);
64 rec.Run(0,nevents);
65}
66
67