Updated event embedding test suite (Adam)
[u/mrichter/AliRoot.git] / test / embedding / rec.C
1 void rec(Int_t embrun=0) {\r
2 //  new AliRun("gAlice","The ALICE Off-line Simulation Framework");\r
3   AliReconstruction reco;\r
4   reco.SetUniformFieldTracking(kFALSE);\r
5   reco.SetWriteESDfriend(kTRUE);\r
6   reco.SetWriteAlignmentData(kFALSE);\r
7 //    reco.SetRecoParam("ITS",AliITSRecoParam::GetHighFluxParam());\r
8 //    reco.SetRecoParam("TPC",AliTPCRecoParam::GetHighFluxParam());\r
9 //    reco.SetRecoParam("TRD",AliTRDrecoParam::GetHighFluxParam());\r
10 //    reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());\r
11 //    reco.SetRecoParam("MUON",AliMUONRecoParam::GetHighFluxParam());\r
12    \r
13 //   AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();\r
14 //   AliTPCReconstructor::SetRecoParam(tpcRecoParam);\r
15 //   AliTPCReconstructor::SetStreamLevel(0);\r
16   reco.SetRunReconstruction("ITS TPC TRD TOF");\r
17 //   reco.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal/");\r
18 //   reco.SetRunQA(kFALSE);\r
19 //   reco.SetRunGlobalQA(kFALSE);\r
20 \r
21   reco.SetDefaultStorage("local://$ALICE_ROOT/OCDB");\r
22   if (embrun == 1) {\r
23     reco.SetSpecificStorage("GRP/GRP/Data",\r
24                             Form("local://%s/../BackgroundFull",gSystem->pwd()));\r
25   }\r
26   else {\r
27     reco.SetSpecificStorage("GRP/GRP/Data",\r
28                             Form("local://%s",gSystem->pwd()));\r
29   }\r
30   reco.SetRunQA("ALL:ALL") ;\r
31   \r
32   AliQA::SetQARefStorage("local://$ALICE_ROOT/OCDB") ;\r
33   \r
34   for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {\r
35     reco.SetQACycles(det, 999) ;\r
36     reco.SetQAWriteExpert(det) ; \r
37   }\r
38   \r
39   TStopwatch timer;\r
40   timer.Start();\r
41   reco.Run();\r
42   timer.Stop();\r
43   timer.Print();\r
44 }\r