|
[Rivet-svn] rivet: Fix insan std::isnanRivet Mercurial rivet at projects.hepforge.orgMon Sep 19 13:45:02 BST 2016
details: https://rivet.hepforge.org/hg/rivet/rev/9c870475c197 branches: release-2-5-x changeset: 5497:9c870475c197 user: Holger Schulz <holger.schulz at durham.ac.uk> date: Mon Sep 19 13:33:22 2016 +0100 description: Fix insan std::isnan diffs (13 lines): --- a/src/Analyses/CMS_2015_I1397174.cc Sun Sep 18 21:37:22 2016 +0100 +++ b/src/Analyses/CMS_2015_I1397174.cc Mon Sep 19 13:33:22 2016 +0100 @@ -289,8 +289,8 @@ void finalize() { - const double ttbarXS = !isnan(crossSectionPerEvent()) ? crossSection() : 252.89*picobarn; - if (isnan(crossSectionPerEvent())) + const double ttbarXS = !std::isnan(crossSectionPerEvent()) ? crossSection() : 252.89*picobarn; + if (std::isnan(crossSectionPerEvent())) MSG_INFO("No valid cross-section given, using NNLO (arXiv:1303.6254; sqrt(s)=8 TeV, m_t=172.5 GeV): " << ttbarXS/picobarn << " pb"); normalize({_hVis_nJet30,_hVis_nJet60, _hVis_nJet100,
More information about the Rivet-svn mailing list |