allow to set the number of events throub an env variable
[u/mrichter/AliRoot.git] / test / PbPbbench / sim.C
... / ...
CommitLineData
1void sim(Int_t nev=1) {
2 AliSimulation simulator;
3 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
4
5 simulator.SetDefaultStorage("local://$ALICE_ROOT");
6 simulator.SetSpecificStorage("GRP/GRP/Data",
7 Form("local://%s",gSystem->pwd()));
8
9 TStopwatch timer;
10 timer.Start();
11 simulator.Run(nev);
12 timer.Stop();
13 timer.Print();
14}