8498bdf5 |
1 | void sim(Int_t nev=5) { |
bb06dc65 |
2 | // Libraries required by geant321 |
3 | gSystem->Load("liblhapdf"); // Parton density functions |
4 | gSystem->Load("libEGPythia6"); // TGenerator interface |
5 | gSystem->Load("libpythia6"); // Pythia |
6 | gSystem->Load("libAliPythia6"); // ALICE specific implementations |
257e1b2b |
7 | gSystem->Load("libDPMJET"); // DPMJET |
bb06dc65 |
8 | gSystem->Load("libTDPMjet"); // DPMJET interface |
9 | |
10 | gSystem->Load("libgeant321"); |
8498bdf5 |
11 | |
12 | AliSimulation simulator; |
13 | simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO"); |
14 | simulator.SetMakeDigitsFromHits("ITS TPC"); |
15 | if (strcmp(gSystem->GetBuildArch(),"win32gcc")) { |
16 | simulator.SetWriteRawData("ALL","raw.root",kTRUE); |
17 | } |
18 | |
162637e4 |
19 | simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
8498bdf5 |
20 | simulator.SetSpecificStorage("GRP/GRP/Data", |
21 | Form("local://%s",gSystem->pwd())); |
22 | |
23 | TStopwatch timer; |
24 | timer.Start(); |
25 | simulator.Run(nev); |
26 | timer.Stop(); |
27 | timer.Print(); |
28 | } |