Corrected library names and paths to macros
[u/mrichter/AliRoot.git] / test / merge / backgr / 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
14   AliSimulation simulator;
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   simulator.SetSpecificStorage("VZERO/Calib/Data",
21                                "local://$ALICE_ROOT/OCDB/VZERO/PbPb");
22
23   TStopwatch timer;
24   timer.Start();
25   simulator.Run(nev);
26   timer.Stop();
27   timer.Print();
28 }