Using VZERO v6
[u/mrichter/AliRoot.git] / macros / grun.C
CommitLineData
fe4da5cc 1void grun (Int_t nevent=1, const char *config="Config.C")
2{
3 //
4 // Simple macro to run aliroot in a batch mode
5 //
6 gAlice->Init(config);
0198c392 7 TStopwatch timer;
8 timer.Start();
a52b6fe4 9//
10// If nevent is negative it is assumed that in config the
11// global variable eventsPerRun has been set.
12//
13 if (nevent < 0)
14 nevent = eventsPerRun;
0198c392 15 gAlice->Run(nevent);
16 timer.Stop();
17 timer.Print();
fe4da5cc 18}