Possibility to run on Windows/Cygwin
[u/mrichter/AliRoot.git] / test / fpprod / sim.C
index ba38dc9..2ce92f1 100644 (file)
@@ -1,9 +1,18 @@
-void sim(Int_t nev=20) {
+void sim(Int_t nev=50) {
+  if (!strcmp(gSystem->GetBuildArch(),"win32gcc")) {
+    gSystem->Load("libProof");
+    gSystem->Load("libGui");
+    gROOT->Macro("loadlibssim.C");
+    new AliRun("gAlice","The ALICE Off-line Simulation Framework");
+  }
 
+  AliLog::SetClassDebugLevel("AliGeomManager",3);
   AliSimulation simulator;
   simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
   simulator.SetMakeDigitsFromHits("ITS TPC");
-  simulator.SetWriteRawData("ALL","raw.root",kTRUE);
+  if (strcmp(gSystem->GetBuildArch(),"win32gcc")) {
+    simulator.SetWriteRawData("ALL","raw.root",kTRUE);
+  }
   simulator.SetRunHLT("");
   simulator.SetRunQA("");