7fb59432 |
1 | void sim(Int_t nev=20) { |
3928b038 |
2 | gROOT->Macro("loadlibssim.C"); |
3 | new AliRun("gAlice","The ALICE Off-line Simulation Framework"); |
4 | |
5 | AliSimulation simulator; |
6 | simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO"); |
7 | simulator.SetMakeDigitsFromHits("ITS TPC"); |
3928b038 |
8 | |
16b2f4a1 |
9 | simulator.SetDefaultStorage("local://$ALICE_ROOT"); |
10 | simulator.SetSpecificStorage("GRP/GRP/Data", |
11 | Form("local://%s",gSystem->pwd())); |
3928b038 |
12 | TStopwatch timer; |
13 | timer.Start(); |
14 | simulator.Run(nev); |
15 | timer.Stop(); |
16 | timer.Print(); |
17 | } |