|
[Rivet-svn] r3011 - trunk/include/LWHblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Mar 9 15:29:54 GMT 2011
Author: fsiegert Date: Wed Mar 9 15:29:54 2011 New Revision: 3011 Log: Bugfix for Profile1D in the case of negative distributions. Modified: trunk/include/LWH/Profile1D.h Modified: trunk/include/LWH/Profile1D.h ============================================================================== --- trunk/include/LWH/Profile1D.h Wed Mar 9 15:21:43 2011 (r3010) +++ trunk/include/LWH/Profile1D.h Wed Mar 9 15:29:54 2011 (r3011) @@ -340,7 +340,7 @@ */ double binHeight(int index) const { double bH = 0.; - if (sumw[index+2] > 0. && sumyw[index+2] > 0.) + if (sumw[index+2] != 0. && sumyw[index+2] != 0.) bH = sumyw[index+2]/sumw[index+2]; return bH; }
More information about the Rivet-svn mailing list |