]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - macros/grun.C
Pass name correctly to base class.
[u/mrichter/AliRoot.git] / macros / grun.C
index e8d6688c9748e4228b242932a08f9ffde631e6a8..b64d793264c33c03c40d385b432cca24c7d37b15 100644 (file)
@@ -6,6 +6,12 @@ void grun (Int_t nevent=1, const char *config="Config.C")
   gAlice->Init(config);
   TStopwatch timer;
   timer.Start();
+//
+//  If nevent is negative it is assumed that in config the 
+//  global variable eventsPerRun has been set.
+//
+  if (nevent < 0) 
+      nevent = eventsPerRun;
   gAlice->Run(nevent);
   timer.Stop();
   timer.Print();