]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/ppbench/sim.C
now mapping in RCU0A.dat RCU0C.data RCU1A.dat RCU1C.dat
[u/mrichter/AliRoot.git] / test / ppbench / sim.C
1 void sim(Int_t nev=20) {
2   if (gSystem->Getenv("EVENT"))
3    nev = atoi(gSystem->Getenv("EVENT")) ;   
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);
8
9   simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
10   simulator.SetSpecificStorage("GRP/GRP/Data",
11                                Form("local://%s",gSystem->pwd()));
12   simulator.SetRunQA("ALL:ALL") ; 
13   AliQA::SetQARefStorage("local://$ALICE_ROOT/QAref") ;
14   
15   for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
16     simulator.SetQACycles(det, nev+1) ;
17   }
18   
19   TStopwatch timer;
20   timer.Start();
21   simulator.Run(nev);
22   timer.Stop();
23   timer.Print();
24 }