]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/sim/RunFast.C
Minor updates and add participant information to output for fast simulations
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / sim / RunFast.C
index 2c318002ad4c42131b2bbbd1b29869a44d723761..fef9df9ebb6a34704069090bca9383cb49f55b3c 100644 (file)
@@ -5,7 +5,8 @@ RunFast(Bool_t      proof=false,
        Double_t    bMin=0,
        Double_t    bMax=20,
        const char* eg="default",
-       Int_t       monitor=5)
+       Int_t       monitor=5,
+       const char* opt="")
 {
   TString ali = gSystem->ExpandPathName("${ALICE_ROOT}");
   // TString fwd = gSystem->ExpandPathName("$ANA_SRC");
@@ -38,7 +39,7 @@ RunFast(Bool_t      proof=false,
     gROOT->LoadClass(obj->GetName(), obj->GetTitle());
   }
 
-  const char* opt="";
+
   gROOT->LoadMacro(Form("%s/sim/FastSim.C+%s",fwd.Data(),opt));
 
   const char* cleanFiles[] = { "grp.dat",
@@ -52,9 +53,12 @@ RunFast(Bool_t      proof=false,
     gSystem->Unlink(*pClean);
     pClean++;
   }
-
+  // Uncomment next line to use number of diffractive processes for SD
+  // detection.
+  // gSystem->AddIncludePath("-DNO_DPMJET_TYPE");
+  
   const char* url = "lite:///?workers=8";
   ::Info("runFast", "Monitor=%d", monitor);
-  if (proof) FastSim::Proof(url,maxEvents, runNo, eg, bMin, bMax, monitor);
+  if (proof) FastSim::Proof(url,maxEvents,runNo,eg,bMin,bMax,monitor,opt);
   else       FastSim::Run(maxEvents, runNo, eg, bMin, bMax, monitor);
 }