Implementing the Print
[u/mrichter/AliRoot.git] / test / fpprod / sim.C
... / ...
CommitLineData
1void sim(Int_t nev=50) {
2 if (!strcmp(gSystem->GetBuildArch(),"win32gcc")) {
3 gSystem->Load("libProof");
4 gSystem->Load("libGui");
5 gROOT->Macro("loadlibssim.C");
6 new AliRun("gAlice","The ALICE Off-line Simulation Framework");
7 }
8
9 AliLog::SetClassDebugLevel("AliGeomManager",3);
10 AliSimulation simulator;
11 simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
12 simulator.SetMakeDigitsFromHits("ITS TPC");
13 if (strcmp(gSystem->GetBuildArch(),"win32gcc")) {
14 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
15 }
16 simulator.SetRunHLT("");
17 simulator.SetRunQA("");
18
19 TStopwatch timer;
20 timer.Start();
21 simulator.Run(nev);
22 timer.Stop();
23 timer.Print();
24}