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