3928b038 |
1 | void sim(Int_t nev=4) { |
2 | gSystem->Load("libTree"); |
3 | if (!strcmp(gSystem->GetBuildArch(),"macosx")) gSystem->Load("libf95"); |
4 | gROOT->Macro("loadlibssim.C"); |
5 | new AliRun("gAlice","The ALICE Off-line Simulation Framework"); |
6 | |
7 | AliSimulation simulator; |
8 | simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO"); |
9 | simulator.SetMakeDigitsFromHits("ITS TPC"); |
10 | simulator.SetWriteRawData("ALL","raw.root",kTRUE); |
11 | |
12 | TStopwatch timer; |
13 | timer.Start(); |
14 | simulator.Run(nev); |
15 | timer.Stop(); |
16 | timer.Print(); |
17 | } |