Update master to aliroot
[u/mrichter/AliRoot.git] / test / merge / signal / sim.C
CommitLineData
3928b038 1void sim(Int_t nev=1) {
3390182c 2 // libraries required by geant321
3
4 gSystem->Load("liblhapdf");
5 gSystem->Load("libEGPythia6");
6 gSystem->Load("libpythia6");
7 gSystem->Load("libAliPythia6");
8 gSystem->Load("libgeant321");
9
257e1b2b 10 gSystem->Load("libHIJING");
3390182c 11 gSystem->Load("libTHijing");
12
3928b038 13 AliSimulation simulator;
14 simulator.MergeWith("../backgr/galice.root",3);
15 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
16
162637e4 17 simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
29451c4c 18 simulator.SetSpecificStorage("GRP/GRP/Data",
19 Form("local://%s",gSystem->pwd()));
20
3928b038 21 TStopwatch timer;
22 timer.Start();
23 simulator.Run(nev);
24 timer.Stop();
25 timer.Print();
26}