]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/ppbench/sim.C
allow to set the number of events throub an env variable
[u/mrichter/AliRoot.git] / test / ppbench / sim.C
1 void sim(Int_t nev=1) {
2   AliSimulation simulator;
3   simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
4   simulator.SetMakeDigitsFromHits("ITS TPC");
5   simulator.SetWriteRawData("ALL","raw.root",kTRUE);
6
7   simulator.SetDefaultStorage("local://$ALICE_ROOT");
8   simulator.SetSpecificStorage("GRP/GRP/Data",
9                                Form("local://%s",gSystem->pwd()));
10   simulator.SetRunQA("ALL:ALL") ; 
11   AliQA::SetQARefStorage("local://$ALICE_ROOT") ;
12   
13   for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
14     simulator.SetQACycles(det, nev+1) ;
15   }
16   
17   TStopwatch timer;
18   timer.Start();
19   simulator.Run(nev);
20   timer.Stop();
21   timer.Print();
22 }