0ca174d0b27e4223511ad0a495a8929577ed3819
[u/mrichter/AliRoot.git] / ITS / UPGRADE / macros / recGloCooked.C
1 // 
2 //  A macro to test the Global + Cooked Matrix ITSU tracker 
3 //
4
5 #if !defined(__CINT__) || defined(__MAKECINT__)
6    #include <TSystem.h>
7    #include <TStopwatch.h>
8    #include <TPluginManager.h>
9
10    #include "AliLog.h"
11    #include "AliReconstruction.h"
12    #include "AliITSURecoParam.h"
13 #endif
14
15 extern TSystem *gSystem;
16 extern TPluginManager *gPluginMgr;
17
18 void recGloCooked() {
19   AliLog::SetClassDebugLevel("AliITSUReconstructor",1);
20
21   gSystem->Load("libITSUpgradeBase.so");
22   gSystem->Load("libITSUpgradeSim.so");
23   gSystem->Load("libITSUpgradeRec.so");
24
25   // Set ITS upgrade reconstructor
26   gPluginMgr->AddHandler("AliReconstructor", "ITS",
27                  "AliITSUReconstructor","ITS", "AliITSUReconstructor()");
28   
29   AliReconstruction rec;
30   rec.SetRunReconstruction(""); // run cluster finder
31   rec.SetRunTracking("ITS TPC"); // Turn on with ITS when tracker is implemented
32   
33   rec.SetRunVertexFinder(kTRUE); // to be implemented - CreateVertexer
34   rec.SetRunMultFinder(kFALSE);   // to be implemented - CreateMultFinder
35   rec.SetRunPlaneEff(kFALSE);     // to be implemented - CreateTrackleter
36
37   //  rec.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
38   rec.SetSpecificStorage("GRP/GRP/Data",
39                          Form("local://%s",gSystem->pwd()));
40   rec.SetSpecificStorage("ITS/Align/Data",
41                          Form("local://%s",gSystem->pwd()));
42   rec.SetSpecificStorage("ITS/Calib/RecoParam",
43                          Form("local://%s",gSystem->pwd()));
44   
45
46   rec.SetRunQA(":");
47   rec.SetRunGlobalQA(0);
48   //AliLog::Flush();
49
50   AliITSURecoParam *par=AliITSURecoParam::GetHighFluxParam();
51   par->SetTracker(1);     // 1 is the Cooked Matrix tracker  
52   par->SetSAonly(kFALSE); // kFALSE is the TPC+ITS mode
53   rec.SetRecoParam("ITS",par);
54
55   TStopwatch timer;
56   timer.Start();
57   rec.Run();
58   timer.Stop();
59   timer.Print();
60 }
61