]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Possibility to run on Windows/Cygwin
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Jul 2008 21:30:29 +0000 (21:30 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Jul 2008 21:30:29 +0000 (21:30 +0000)
test/fpprod/aod.C
test/fpprod/check.C
test/fpprod/rec.C
test/fpprod/runtest.sh
test/fpprod/sim.C
test/pploadlibs/rec.C
test/pploadlibs/sim.C

index b52e0f64fa16a897a8b82abdef4dcc5c11f2354b..d38cc31a90ca0fe36da1250a2ff37035cb1b4a0f 100644 (file)
@@ -1,4 +1,10 @@
 void aod(){
+  if (!strcmp(gSystem->GetBuildArch(),"win32gcc")) {
+    gSystem->Load("libProof");
+    gSystem->Load("libGui");
+    gROOT->Macro("loadlibs.C");
+    new AliRun("gAlice","The ALICE Off-line Simulation Framework");
+  }
 
   gSystem->Load("libdpmjet");
   gSystem->Load("libTDPMjet");
index cdfcd17df785e47cc9cb1bf2b974edfe67aec171..0f7f32b962a0a8ecd69ae0f7f7dfb7469a82a71c 100644 (file)
@@ -1,4 +1,10 @@
 void check(){
+  if (!strcmp(gSystem->GetBuildArch(),"win32gcc")) {
+    gSystem->Load("libProof");
+    gSystem->Load("libGui");
+    gROOT->Macro("loadlibs.C");
+    new AliRun("gAlice","The ALICE Off-line Simulation Framework");
+  }
 
   gSystem->Load("libdpmjet");
   gSystem->Load("libTDPMjet");
index ac8dd5534bdc38cdf0d2a8ec0eacb5a71fe6c68e..8564ef8635e6d172c58f1295c6a1b04c235aaa22 100644 (file)
@@ -1,4 +1,10 @@
 void rec() {
+  if (!strcmp(gSystem->GetBuildArch(),"win32gcc")) {
+    gSystem->Load("libProof");
+    gSystem->Load("libGui");
+    gROOT->Macro("loadlibsrec.C");
+    new AliRun("gAlice","The ALICE Off-line Simulation Framework");
+  }
   AliReconstruction reco;
 
   reco.SetWriteESDfriend();
index 3c0bd22a73d653c7f0d11c699adabbf6143a834c..0b175ca78b66a05a0d15e206e43cd892144ec3a9 100755 (executable)
@@ -1,12 +1,19 @@
 #!/bin/sh
+if [ "$ALICE_TARGET" = "win32gcc" ]
+    then
+    REXE=root_exe.exe
+else
+    REXE=aliroot
+fi
+
 
 rm -rf *.root *.dat *.log fort* hlt hough raw* *.inp *.o
-aliroot -b -q sim.C      2>&1 | tee sim.log
+${REXE} -b -q sim.C      2>&1 | tee sim.log
 mv syswatch.log simwatch.log
-aliroot -b -q rec.C      2>&1 | tee rec.log
+${REXE} -b -q rec.C      2>&1 | tee rec.log
 mv syswatch.log recwatch.log
-aliroot -b -q check.C 2>&1 | tee check.log
-aliroot -b -q aod.C 2>&1 | tee aod.log
+${REXE} -b -q check.C 2>&1 | tee check.log
+${REXE} -b -q aod.C 2>&1 | tee aod.log
 
 
 
index ba38dc9dd8fd25ba9a08a6986b4a03d556b64991..2ce92f135d157e3836b28bbc01bc9785cb011d6e 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("");
  
index 2c9b455c2c8123bee16d4d733894196e980349ea..e6cfcb80b24257c8417cab3db15d709a193896ce 100644 (file)
@@ -1,8 +1,11 @@
 void rec() {
-  gSystem->Load("libProof");
-  gSystem->Load("libGui");
-  gROOT->Macro("loadlibsrec.C");
-  new AliRun("gAlice","The ALICE Off-line Simulation Framework");
+  if (!strcmp(gSystem->GetBuildArch(),"win32gcc")) {
+    gSystem->Load("libProof");
+    gSystem->Load("libGui");
+    gROOT->Macro("loadlibsrec.C");
+    new AliRun("gAlice","The ALICE Off-line Simulation Framework");
+  }
+
   AliReconstruction reco;
 
   reco.SetWriteESDfriend();
@@ -11,7 +14,7 @@ void rec() {
   AliTPCReconstructor::SetRecoParam(tpcRecoParam);
   AliTPCReconstructor::SetStreamLevel(1);
   //   reco.SetInput("raw.root");
-
+  reco.SetRunReconstruction("ITS TPC TRD TOF HMPID PHOS EMCAL MUON VZERO T0 FMD PMD ZDC");
 // **** The field map settings must be the same as in Config.C !
   AliMagFMaps *field=new AliMagFMaps("Maps","Maps",2,1.,10.,AliMagFMaps::k5kG);
   Bool_t uniform=kFALSE;
index 5eec39aa13c8918027f0922d8d71ccc01710653e..297cd78aa375b75c8dae676c18bce47a84427298 100644 (file)
@@ -1,4 +1,4 @@
-void sim(Int_t nev=4) {
+void sim(Int_t nev=20) {
   gSystem->Load("libProof");
   gSystem->Load("libGui");
   if (!strcmp(gSystem->GetBuildArch(),"macosx")) gSystem->Load("libf95");
@@ -8,7 +8,9 @@ void sim(Int_t nev=4) {
   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);
+/*   simulator.SetWriteRawData("ALL","raw.root",kTRUE); */
+  simulator.SetRunHLT("");
+  simulator.SetQA(kFALSE);
  
   TStopwatch timer;
   timer.Start();