]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - test/PbPbbench/sim.C
Using recraw.C from the top directory
[u/mrichter/AliRoot.git] / test / PbPbbench / sim.C
index b1453349ea3bd83bc53f4a0792de91241546bcf5..2918ddcda28dee6b181c27c047be23e3056c0220 100644 (file)
@@ -1,7 +1,18 @@
 void sim(Int_t nev=1) {
   AliSimulation simulator;
+  if (gSystem->Getenv("EVENT"))
+   nev = atoi(gSystem->Getenv("EVENT")) ;   
   simulator.SetWriteRawData("ALL","raw.root",kTRUE);
+
+  simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  simulator.SetSpecificStorage("GRP/GRP/Data",
+                              Form("local://%s",gSystem->pwd()));
+  simulator.SetRunQA("ALL:ALL") ; 
+  AliQA::SetQARefStorage("local://$ALICE_ROOT/QAref") ;
+  
+  for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
+    simulator.SetQACycles(det, nev+1) ;
+  }
   TStopwatch timer;
   timer.Start();
   simulator.Run(nev);