New ResetDetector method required by AMORE
[u/mrichter/AliRoot.git] / test / ppbench / sim.C
... / ...
CommitLineData
1void sim(Int_t nev=20) {
2 if (gSystem->Getenv("EVENT"))
3 nev = atoi(gSystem->Getenv("EVENT")) ;
4
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);
9
10 simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
11 simulator.SetSpecificStorage("GRP/GRP/Data",
12 Form("local://%s",gSystem->pwd()));
13
14 simulator.SetRunQA("ALL:ALL") ;
15
16 simulator.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
17
18 for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
19 simulator.SetQACycles(det, nev+1) ;
20 }
21
22 TStopwatch timer;
23 timer.Start();
24 simulator.Run(nev);
25 timer.Stop();
26 timer.Print();
27}