Corrected library names and paths to macros
[u/mrichter/AliRoot.git] / test / ppbench / sim.C
CommitLineData
37fd2be8 1void sim(Int_t nev=20) {
2b919384 2
3 gSystem->Load("liblhapdf");
4 gSystem->Load("libEGPythia6");
5 gSystem->Load("libpythia6");
6 gSystem->Load("libAliPythia6");
257e1b2b 7 gSystem->Load("libHIJING");
2b919384 8 gSystem->Load("libTHijing");
9 gSystem->Load("libgeant321");
10
2bd95377 11 if (gSystem->Getenv("EVENT"))
12 nev = atoi(gSystem->Getenv("EVENT")) ;
f1c1204d 13
27b7c1fb 14 AliSimulation simulator;
15 simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
16 simulator.SetMakeDigitsFromHits("ITS TPC");
17 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
50258ad8 18
162637e4 19 simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
50258ad8 20 simulator.SetSpecificStorage("GRP/GRP/Data",
21 Form("local://%s",gSystem->pwd()));
f1c1204d 22
e98db466 23 simulator.SetRunQA("ALL:ALL") ;
e98db466 24
f1c1204d 25 simulator.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
26
e98db466 27 for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
2b919384 28 simulator.SetQACycles((AliQAv1::DETECTORINDEX_t)det, nev+1) ;
e98db466 29 }
30
27b7c1fb 31 TStopwatch timer;
32 timer.Start();
33 simulator.Run(nev);
34 timer.Stop();
35 timer.Print();
36}