3d293b29038f015fb7ff02da0a2cb3e6ebb5691d
[u/mrichter/AliRoot.git] / test / pileup / sim.C
1 void sim(Int_t nev=5) {
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
7   gSystem->Load("libdpmjet");      // DPMJET
8   gSystem->Load("libTDPMjet");     // DPMJET interface
9
10   gSystem->Load("libgeant321");
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
19   simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
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 }