]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - macros/grun.C
Possibility to use loadlibs.C on Solaris x86
[u/mrichter/AliRoot.git] / macros / grun.C
index 21e89e5a8071ea7061fd876a08dbccf00ac938fe..b64d793264c33c03c40d385b432cca24c7d37b15 100644 (file)
@@ -4,5 +4,15 @@ void grun (Int_t nevent=1, const char *config="Config.C")
   // Simple macro to run aliroot in a batch mode
   //
   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();
 }