]> git.uio.no Git - u/mrichter/AliRoot.git/blame - test/ppbench/sim.C
New ResetDetector method required by AMORE
[u/mrichter/AliRoot.git] / test / ppbench / sim.C
CommitLineData
37fd2be8 1void sim(Int_t nev=20) {
2bd95377 2 if (gSystem->Getenv("EVENT"))
3 nev = atoi(gSystem->Getenv("EVENT")) ;
f1c1204d 4
27b7c1fb 5 AliSimulation simulator;
6 simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
7 simulator.SetMakeDigitsFromHits("ITS TPC");
8 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
50258ad8 9
162637e4 10 simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
50258ad8 11 simulator.SetSpecificStorage("GRP/GRP/Data",
12 Form("local://%s",gSystem->pwd()));
f1c1204d 13
e98db466 14 simulator.SetRunQA("ALL:ALL") ;
e98db466 15
f1c1204d 16 simulator.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
17
e98db466 18 for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
19 simulator.SetQACycles(det, nev+1) ;
20 }
21
27b7c1fb 22 TStopwatch timer;
23 timer.Start();
24 simulator.Run(nev);
25 timer.Stop();
26 timer.Print();
27}