Adding VZERO to the standard embedding test suite
[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.SetWriteESDfriend(kTRUE);\r
5   reco.SetWriteAlignmentData(kFALSE);\r
6 //    reco.SetRecoParam("ITS",AliITSRecoParam::GetHighFluxParam());\r
7 //    reco.SetRecoParam("TPC",AliTPCRecoParam::GetHighFluxParam());\r
8 //    reco.SetRecoParam("TRD",AliTRDrecoParam::GetHighFluxParam());\r
9 //    reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());\r
10 //    reco.SetRecoParam("MUON",AliMUONRecoParam::GetHighFluxParam());\r
11    \r
12 //   AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();\r
13 //   AliTPCReconstructor::SetRecoParam(tpcRecoParam);\r
14 //   AliTPCReconstructor::SetStreamLevel(0);\r
15   reco.SetRunReconstruction("ITS TPC TRD TOF VZERO");\r
16 //   reco.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal/");\r
17 //   reco.SetRunQA(kFALSE);\r
18 //   reco.SetRunGlobalQA(kFALSE);\r
19 \r
20   reco.SetDefaultStorage("local://$ALICE_ROOT/OCDB");\r
21   if (embrun == 1) {\r
22     reco.SetSpecificStorage("GRP/GRP/Data",\r
23                             Form("local://%s/../BackgroundFull",gSystem->pwd()));\r
24   }\r
25   else {\r
26     reco.SetSpecificStorage("GRP/GRP/Data",\r
27                             Form("local://%s",gSystem->pwd()));\r
28   }\r
29   reco.SetRunPlaneEff(kTRUE);\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