Possibility to run on Windows/Cygwin
[u/mrichter/AliRoot.git] / test / fpprod / sim.C
CommitLineData
7fb59432 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 }
28b75255 8
7fb59432 9 AliLog::SetClassDebugLevel("AliGeomManager",3);
28b75255 10 AliSimulation simulator;
11 simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
12 simulator.SetMakeDigitsFromHits("ITS TPC");
7fb59432 13 if (strcmp(gSystem->GetBuildArch(),"win32gcc")) {
14 simulator.SetWriteRawData("ALL","raw.root",kTRUE);
15 }
28b75255 16 simulator.SetRunHLT("");
11adacfd 17 simulator.SetRunQA("");
28b75255 18
19 TStopwatch timer;
20 timer.Start();
21 simulator.Run(nev);
22 timer.Stop();
23 timer.Print();
24}