Add option to run on some local files with test mode using the alien plugin
[u/mrichter/AliRoot.git] / MFT / runReconstruction.C
CommitLineData
c95698be 1void 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
274c2dce 13 reco->SetDefaultStorage("alien://folder=/alice/data/2011/OCDB");\r
14\r
15 reco->SetSpecificStorage("MUON/Align/Data", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
16 reco->SetSpecificStorage("MUON/Calib/Capacitances", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
17 reco->SetSpecificStorage("MUON/Calib/Config", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
18 reco->SetSpecificStorage("MUON/Calib/Gain", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
19 reco->SetSpecificStorage("MUON/Calib/GlobalTriggerBoardMasks", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
20 reco->SetSpecificStorage("MUON/Calib/GlobalTriggerCrateConfig", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
21 reco->SetSpecificStorage("MUON/Calib/HV", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
22 reco->SetSpecificStorage("MUON/Calib/LocalTriggerBoardMasks", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
23 reco->SetSpecificStorage("MUON/Calib/MappingData", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
24 reco->SetSpecificStorage("MUON/Calib/MappingRunData", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
25 reco->SetSpecificStorage("MUON/Calib/Neighbours", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
26 reco->SetSpecificStorage("MUON/Calib/OccupancyMap", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
27 reco->SetSpecificStorage("MUON/Calib/Pedestals", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
28 reco->SetSpecificStorage("MUON/Calib/RegionalTriggerBoardMasks", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
29 reco->SetSpecificStorage("MUON/Calib/RegionalTriggerConfig", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
30 reco->SetSpecificStorage("MUON/Calib/RejectList", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
31 reco->SetSpecificStorage("MUON/Calib/TriggerDCS", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
32 reco->SetSpecificStorage("MUON/Calib/TriggerEfficiency", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
33 reco->SetSpecificStorage("MUON/Calib/TriggerLut", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");\r
34\r
35 reco->SetSpecificStorage("MUON/Calib/RecoParam", "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");\r
36 reco->SetSpecificStorage("MFT/Align/Data", "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");\r
37 reco->SetSpecificStorage("MFT/Calib/RecoParam", "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");\r
c95698be 38\r
39 reco->SetRunReconstruction("MUON MFT");\r
40 reco->SetRunLocalReconstruction("MUON MFT");\r
41 reco->SetOption("MUON MFT",recOptions);\r
3a775f35 42 // reco->SetRunQA("DetectorList:ActionList");\r
43 // reco->SetQAWriteExpert(AliQAv1::kMUON);\r
c95698be 44\r
45 reco->SetWriteESDfriend(kFALSE);\r
46 reco->SetStopOnError(kFALSE);\r
47\r
48 TStopwatch timer;\r
49 timer.Start();\r
50 reco->Run();\r
51 timer.Stop();\r
52 timer.Print();\r
53\r
54 delete reco;\r
55\r
56}\r