Root6-enabled version
[u/mrichter/AliRoot.git] / test / genkine / sim / sim.C
1 void sim(Int_t nev=1) {
2
3   gSystem->Load("liblhapdf.so");      // Parton density functions
4   gSystem->Load("libEGPythia6.so");   // TGenerator interface
5   gSystem->Load("libpythia6.so");     // Pythia
6   gSystem->Load("libAliPythia6.so");  // ALICE specific implementations
7   gSystem->Load("libgeant321");
8
9   AliSimulation simulator;
10
11   simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
12   simulator.SetSpecificStorage("GRP/GRP/Data",
13                                Form("local://%s",gSystem->pwd()));
14
15   TStopwatch timer;
16   timer.Start();
17   simulator.Run(nev);
18   timer.Stop();
19   timer.Print();
20 }