|
[Rivet-svn] r3133 - trunk/src/Coreblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Jun 6 23:11:12 BST 2011
Author: hoeth Date: Mon Jun 6 23:11:12 2011 New Revision: 3133 Log: another negative cross-section fix Modified: trunk/src/Core/Analysis.cc Modified: trunk/src/Core/Analysis.cc ============================================================================== --- trunk/src/Core/Analysis.cc Mon Jun 6 23:06:50 2011 (r3132) +++ trunk/src/Core/Analysis.cc Mon Jun 6 23:11:12 2011 (r3133) @@ -169,7 +169,7 @@ } double Analysis::crossSection() const { - if (!_gotCrossSection || _crossSection < 0) { + if (!_gotCrossSection || std::isnan(_crossSection)) { string errMsg = "You did not set the cross section for the analysis " + name(); throw Error(errMsg); }
More information about the Rivet-svn mailing list |