f8bf6f1f9ed7352ac4e5faf23ee7b6d3a6094119
[u/mrichter/AliRoot.git] / MFT / runReconstruction.C
1 void runReconstruction(Int_t seed, const Char_t *recOptions) {\r
2   \r
3   gRandom->SetSeed(seed);\r
4 \r
5   AliReconstruction *reco = new AliReconstruction("galice.root");\r
6 \r
7   // switch off cleanESD\r
8   reco->SetCleanESD(kFALSE);\r
9 \r
10   // GRP from local OCDB\r
11   reco->SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd()));\r
12   \r
13   // MUON Tracker -> local:///$OCDB should reflect the content of alien://folder=/alice\r
14   reco->SetSpecificStorage("MUON/Align/Data",      "local:///$OCDB/simulation/2008/v4-15-Release/Residual");\r
15   reco->SetSpecificStorage("MUON/Calib/RecoParam", "local:///$OCDB/simulation/2008/v4-15-Release/Full");\r
16 \r
17   reco->SetRunReconstruction("MUON MFT");\r
18   reco->SetRunLocalReconstruction("MUON MFT");\r
19   reco->SetOption("MUON MFT",recOptions);\r
20   reco->SetRunQA("MUON:ALL");\r
21   reco->SetQAWriteExpert(AliQAv1::kMUON);\r
22   reco->SetQARefDefaultStorage("local://$ALICE_ROOT/QAref");\r
23 \r
24   reco->SetWriteESDfriend(kFALSE);\r
25   reco->SetStopOnError(kFALSE);\r
26 \r
27   TStopwatch timer;\r
28   timer.Start();\r
29   reco->Run();\r
30   timer.Stop();\r
31   timer.Print();\r
32 \r
33   delete reco;\r
34 \r
35 }\r