]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/gun/sim.C
Using GRP instead of local setters
[u/mrichter/AliRoot.git] / test / gun / sim.C
1 void sim(Int_t nev=4) {
2
3   AliSimulation simulator;
4   simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
5   simulator.SetMakeDigitsFromHits("ITS TPC");
6   simulator.SetWriteRawData("ALL","raw.root",kTRUE);
7
8   simulator.SetDefaultStorage("local://$ALICE_ROOT");
9   simulator.SetSpecificStorage("GRP/GRP/Data",
10                                Form("local://%s",gSystem->pwd()));
11
12   TStopwatch timer;
13   timer.Start();
14   simulator.Run(nev);
15   timer.Stop();
16   timer.Print();
17 }