Root6-enabled test
[u/mrichter/AliRoot.git] / test / gun / sim.C
CommitLineData
3928b038 1void sim(Int_t nev=4) {
d79ed896 2
7979be2b 3 // libraries required by geant321
4 gSystem->Load("liblhapdf");
5 gSystem->Load("libEGPythia6");
6 gSystem->Load("libpythia6");
7 gSystem->Load("libAliPythia6");
8 gSystem->Load("libgeant321");
9
3928b038 10 AliSimulation simulator;
b546ca27 11 simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO ACORDE");
3928b038 12 simulator.SetMakeDigitsFromHits("ITS TPC");
b87d8fcd 13 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
3928b038 14
162637e4 15 simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
d79ed896 16 simulator.SetSpecificStorage("GRP/GRP/Data",
17 Form("local://%s",gSystem->pwd()));
18
3928b038 19 TStopwatch timer;
20 timer.Start();
21 simulator.Run(nev);
22 timer.Stop();
23 timer.Print();
24}