changes in the MagF constructor
[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");\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.SetRunQA("ALL:ALL") ;\r
30   \r
31   AliQA::SetQARefStorage("local://$ALICE_ROOT/OCDB") ;\r
32   \r
33   for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {\r
34     reco.SetQACycles(det, 999) ;\r
35     reco.SetQAWriteExpert(det) ; \r
36   }\r
37   \r
38   TStopwatch timer;\r
39   timer.Start();\r
40   reco.Run();\r
41   timer.Stop();\r
42   timer.Print();\r
43 }\r