Using EMCAL_COMPLETEV1 (Gustavo)
[u/mrichter/AliRoot.git] / test / embedding / rec.C
index a1060f443c23c96381185b5a9ba76665f2928bfb..5909a902c707c3f3e519336d99ac8916a7705e99 100644 (file)
@@ -1,17 +1,41 @@
 void rec(Int_t embrun=0) {\r
-  new AliRun("gAlice","The ALICE Off-line Simulation Framework");\r
+//  new AliRun("gAlice","The ALICE Off-line Simulation Framework");\r
   AliReconstruction reco;\r
-  reco.SetUniformFieldTracking(kFALSE);\r
   reco.SetWriteESDfriend(kTRUE);\r
   reco.SetWriteAlignmentData(kFALSE);\r
-  AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();\r
-  AliTPCReconstructor::SetRecoParam(tpcRecoParam);\r
-  AliTPCReconstructor::SetStreamLevel(0);\r
-  reco.SetRunReconstruction("ITS TPC TRD TOF");\r
-  reco.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-12-Release/Ideal/");\r
-  reco.SetRunQA(kFALSE);\r
-  reco.SetRunGlobalQA(kFALSE);\r
+//    reco.SetRecoParam("ITS",AliITSRecoParam::GetHighFluxParam());\r
+//    reco.SetRecoParam("TPC",AliTPCRecoParam::GetHighFluxParam());\r
+//    reco.SetRecoParam("TRD",AliTRDrecoParam::GetHighFluxParam());\r
+//    reco.SetRecoParam("PHOS",AliPHOSRecoParam::GetDefaultParameters());\r
+//    reco.SetRecoParam("MUON",AliMUONRecoParam::GetHighFluxParam());\r
+   \r
+//   AliTPCRecoParam * tpcRecoParam = AliTPCRecoParam::GetLowFluxParam();\r
+//   AliTPCReconstructor::SetRecoParam(tpcRecoParam);\r
+//   AliTPCReconstructor::SetStreamLevel(0);\r
+  reco.SetRunReconstruction("ITS TPC TRD TOF VZERO");\r
+//   reco.SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal/");\r
+//   reco.SetRunQA(kFALSE);\r
+//   reco.SetRunGlobalQA(kFALSE);\r
 \r
+  reco.SetDefaultStorage("local://$ALICE_ROOT/OCDB");\r
+  if (embrun == 1) {\r
+    reco.SetSpecificStorage("GRP/GRP/Data",\r
+                           Form("local://%s/../BackgroundFull",gSystem->pwd()));\r
+  }\r
+  else {\r
+    reco.SetSpecificStorage("GRP/GRP/Data",\r
+                           Form("local://%s",gSystem->pwd()));\r
+  }\r
+  reco.SetRunPlaneEff(kTRUE);\r
+  reco.SetRunQA("ALL:ALL") ;\r
+  \r
+  AliQA::SetQARefStorage("local://$ALICE_ROOT/OCDB") ;\r
+  \r
+  for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {\r
+    reco.SetQACycles(det, 999) ;\r
+    reco.SetQAWriteExpert(det) ; \r
+  }\r
+  \r
   TStopwatch timer;\r
   timer.Start();\r
   reco.Run();\r