CID 17915: Other violation (DIVIDE_BY_ZERO)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 May 2013 14:47:10 +0000 (14:47 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 May 2013 14:47:10 +0000 (14:47 +0000)
PYTHIA8/pythia8175/src/ProcessLevel.cxx

index bd2bf1c..538c4ad 100644 (file)
@@ -433,7 +433,9 @@ void ProcessLevel::accumulate() {
   double sigmaComb  = 0.5 * (sigmaSum * sig2SelSum + sigSelSum * sigma2Sum);
   sigmaComb        *= impactFac / sigmaND;
   if (allHardSame) sigmaComb *= 0.5; 
-  double deltaComb  = sqrtpos(2. / nAccSum + impactErr2) * sigmaComb;
+  double deltaComb = -1.;
+  if (nAccSum > 0.) 
+    deltaComb  = sqrtpos(2. / nAccSum + impactErr2) * sigmaComb;
 
   // Store info and done.
   infoPtr->setSigma( 0, nTrySum, nSelSum, nAccSum, sigmaComb, deltaComb,