Corrected library names and paths to macros
[u/mrichter/AliRoot.git] / test / merge / signal / sim.C
1 void sim(Int_t nev=1) {
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     
10     gSystem->Load("libHIJING");
11     gSystem->Load("libTHijing");
12
13   AliSimulation simulator;
14   simulator.MergeWith("../backgr/galice.root",3);
15   simulator.SetWriteRawData("ALL","raw.root",kTRUE);
16
17   simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
18   simulator.SetSpecificStorage("GRP/GRP/Data",
19                                Form("local://%s",gSystem->pwd()));
20
21   TStopwatch timer;
22   timer.Start();
23   simulator.Run(nev);
24   timer.Stop();
25   timer.Print();
26 }