e6c01043 |
1 | void sim(Int_t nev=1) { |
2bd95377 |
2 | if (gSystem->Getenv("EVENT")) |
3 | nev = atoi(gSystem->Getenv("EVENT")) ; |
27b7c1fb |
4 | AliSimulation simulator; |
5 | simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO"); |
6 | simulator.SetMakeDigitsFromHits("ITS TPC"); |
7 | simulator.SetWriteRawData("ALL","raw.root",kTRUE); |
50258ad8 |
8 | |
9 | simulator.SetDefaultStorage("local://$ALICE_ROOT"); |
10 | simulator.SetSpecificStorage("GRP/GRP/Data", |
11 | Form("local://%s",gSystem->pwd())); |
e98db466 |
12 | simulator.SetRunQA("ALL:ALL") ; |
13 | AliQA::SetQARefStorage("local://$ALICE_ROOT") ; |
14 | |
15 | for (Int_t det = 0 ; det < AliQA::kNDET ; det++) { |
16 | simulator.SetQACycles(det, nev+1) ; |
17 | } |
18 | |
27b7c1fb |
19 | TStopwatch timer; |
20 | timer.Start(); |
21 | simulator.Run(nev); |
22 | timer.Stop(); |
23 | timer.Print(); |
24 | } |