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