]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/UPGRADE/testITSU/rec.C
Converted printfs to debug messages in the tracker. To reactivate, uncomment
[u/mrichter/AliRoot.git] / ITS / UPGRADE / testITSU / rec.C
1
2 void rec() {
3   
4   //  AliLog::SetClassDebugLevel("AliReconstruction",1);
5   AliLog::SetClassDebugLevel("AliITSUReconstructor",1);
6
7   TDatime t;
8
9   gSystem->Load("libITSUpgradeBase.so");
10   gSystem->Load("libITSUpgradeSim.so");
11   gSystem->Load("libITSUpgradeRec.so");
12
13   //  gSystem->Exec("rm -rf *RecPoints* AliESD*");
14
15   // Set ITS upgrade reconstructor
16   gPluginMgr->AddHandler("AliReconstructor", "ITS",
17                          "AliITSUReconstructor","ITS", "AliITSUReconstructor()");
18   
19   AliReconstruction rec;
20   rec.SetRunReconstruction("ITS TPC"); // run cluster finder
21   //rec.SetRunTracking(""); // Turn on with ITS when tracker is implemented
22   rec.SetRunTracking("ITS TPC"); // Turn on with ITS when tracker is implemented
23   
24   
25   //rec.SetRunReconstruction("");//ITS TPC"); // run cluster finder
26   //rec.SetRunTracking("ITS TPC"); // Turn on with ITS when tracker is implemented
27   
28
29   rec.SetRunVertexFinder(kFALSE); // to be implemented - CreateVertexer
30   rec.SetRunMultFinder(kFALSE);   // to be implemented - CreateMultFinder
31   rec.SetRunPlaneEff(kFALSE);     // to be implemented - CreateTrackleter
32
33   //  rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
34   rec.SetSpecificStorage("GRP/GRP/Data",
35                          Form("local://%s",gSystem->pwd()));
36   rec.SetSpecificStorage("ITS/Align/Data",
37                          Form("local://%s",gSystem->pwd()));
38   rec.SetSpecificStorage("ITS/Calib/RecoParam",
39                          Form("local://%s",gSystem->pwd()));
40   
41
42   rec.SetRunQA(":");
43   rec.SetRunGlobalQA(0);
44   AliLog::Flush();
45
46   TStopwatch timer;
47   timer.Start();
48   //
49   //  AliLog::SetClassDebugLevel("AliITSUTrackerGlo",3);
50   //
51   rec.Run();
52   timer.Stop();
53   timer.Print();
54
55   printf("\n\n\n TDatime \n");
56   t.Print();
57 }