[Rivet-svn] r3410 - trunk/src/Core

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Oct 6 13:53:16 BST 2011


Author: fsiegert
Date: Thu Oct  6 13:53:16 2011
New Revision: 3410

Log:
Allow for negative sum of weights, as can happen at NLO.

Modified:
   trunk/src/Core/Analysis.cc

Modified: trunk/src/Core/Analysis.cc
==============================================================================
--- trunk/src/Core/Analysis.cc	Thu Oct  6 13:52:00 2011	(r3409)
+++ trunk/src/Core/Analysis.cc	Thu Oct  6 13:53:16 2011	(r3410)
@@ -173,7 +173,7 @@
 
   double Analysis::crossSectionPerEvent() const {
     const double sumW = sumOfWeights();
-    assert(sumW > 0);
+    assert(sumW != 0.0);
     return _crossSection / sumW;
   }
 


More information about the Rivet-svn mailing list