protection against xPDFmotherOld == 0
authorjgrosseo <jgrosseo@cern.ch>
Tue, 13 Jan 2015 13:34:10 +0000 (14:34 +0100)
committerjgrosseo <jgrosseo@cern.ch>
Tue, 13 Jan 2015 13:34:10 +0000 (14:34 +0100)
PYTHIA8/pythia8175/src/SpaceShower.cxx

index 00005a7..52707af 100644 (file)
@@ -785,6 +785,11 @@ void SpaceShower::pT2nearQCDthreshold( BeamParticle& beam,
   double logM2Lambda2  = log( m2Massive / Lambda2 );
   double xPDFmotherOld = beam.xfISR(iSysNow, 21, xDaughter, 
     factorMultFac * m2Threshold);
+  if (xPDFmotherOld == 0) {
+    infoPtr->errorMsg("Error in SpaceShower::pT2nearQCDthreshold: "
+      "xPDFmotherOld is 0"); 
+    return; 
+  }
 
   // Variables used inside evolution loop. (Mainly dummy start values.)
   int    loop    = 0;