allow to set the number of events throub an env variable
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Jan 2009 13:35:51 +0000 (13:35 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Jan 2009 13:35:51 +0000 (13:35 +0000)
test/ppbench/sim.C

index 98b54f3899ab6d312c946deffcbfa5fb72cfdf84..7caab8586f91196b89bf49c92d62b85c12c7fe79 100644 (file)
@@ -1,4 +1,6 @@
 void sim(Int_t nev=1) {
+  if (gSystem->Getenv("EVENT"))
+   nev = atoi(gSystem->Getenv("EVENT")) ;   
   AliSimulation simulator;
   simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
   simulator.SetMakeDigitsFromHits("ITS TPC");