313d5d68 |
1 | void sim(Int_t nev=1) { |
2 | AliSimulation simulator; |
421fc2ac |
3 | if (gSystem->Getenv("EVENT")) |
4 | nev = atoi(gSystem->Getenv("EVENT")) ; |
313d5d68 |
5 | simulator.SetWriteRawData("ALL","raw.root",kTRUE); |
8bd4ae25 |
6 | |
162637e4 |
7 | simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
8bd4ae25 |
8 | simulator.SetSpecificStorage("GRP/GRP/Data", |
9 | Form("local://%s",gSystem->pwd())); |
a143c29a |
10 | simulator.SetSpecificStorage("VZERO/Calib/Data", |
11 | "local://$ALICE_ROOT/OCDB/VZERO/PbPb"); |
421fc2ac |
12 | simulator.SetRunQA("ALL:ALL") ; |
f1c1204d |
13 | simulator.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ; |
421fc2ac |
14 | |
15 | for (Int_t det = 0 ; det < AliQA::kNDET ; det++) { |
16 | simulator.SetQACycles(det, nev+1) ; |
17 | } |
313d5d68 |
18 | TStopwatch timer; |
19 | timer.Start(); |
20 | simulator.Run(nev); |
21 | timer.Stop(); |
22 | timer.Print(); |
23 | } |