Extacting the OCDB in a separate module. The detectors have write permission in the...
[u/mrichter/AliRoot.git] / test / ppbench / sim.C
CommitLineData
73b4ce38 1void sim(Int_t nev=20) {
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
162637e4 9 simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
50258ad8 10 simulator.SetSpecificStorage("GRP/GRP/Data",
11 Form("local://%s",gSystem->pwd()));
e98db466 12 simulator.SetRunQA("ALL:ALL") ;
162637e4 13 AliQA::SetQARefStorage("local://$ALICE_ROOT/OCDB") ;
e98db466 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}