| 1 | void sim(Int_t nev=20) { |
| 2 | |
| 3 | gSystem->Load("liblhapdf"); |
| 4 | gSystem->Load("libEGPythia6"); |
| 5 | gSystem->Load("libpythia6"); |
| 6 | gSystem->Load("libAliPythia6"); |
| 7 | gSystem->Load("libHIJING"); |
| 8 | gSystem->Load("libTHijing"); |
| 9 | gSystem->Load("libgeant321"); |
| 10 | |
| 11 | if (gSystem->Getenv("EVENT")) |
| 12 | nev = atoi(gSystem->Getenv("EVENT")) ; |
| 13 | |
| 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); |
| 18 | |
| 19 | simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
| 20 | simulator.SetSpecificStorage("GRP/GRP/Data", |
| 21 | Form("local://%s",gSystem->pwd())); |
| 22 | |
| 23 | simulator.SetRunQA("ALL:ALL") ; |
| 24 | |
| 25 | simulator.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ; |
| 26 | |
| 27 | for (Int_t det = 0 ; det < AliQA::kNDET ; det++) { |
| 28 | simulator.SetQACycles((AliQAv1::DETECTORINDEX_t)det, nev+1) ; |
| 29 | } |
| 30 | |
| 31 | TStopwatch timer; |
| 32 | timer.Start(); |
| 33 | simulator.Run(nev); |
| 34 | timer.Stop(); |
| 35 | timer.Print(); |
| 36 | } |