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