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