|
[Rivet-svn] r3221 - trunk/include/LWHblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Jul 19 19:02:34 BST 2011
Author: hoeth Date: Tue Jul 19 19:02:33 2011 New Revision: 3221 Log: fix bug in LWH, but nobody ever used it, so it doesnt matter, and it will be replaced by YODA now. Modified: trunk/include/LWH/Histogram1D.h trunk/include/LWH/Histogram2D.h trunk/include/LWH/Profile1D.h Modified: trunk/include/LWH/Histogram1D.h ============================================================================== --- trunk/include/LWH/Histogram1D.h Tue Jul 19 18:48:12 2011 (r3220) +++ trunk/include/LWH/Histogram1D.h Tue Jul 19 19:02:33 2011 (r3221) @@ -177,7 +177,7 @@ sw += sumw[i]; sw2 += sumw2[i]; } - return sw2/(sw*sw); + return (sw*sw)/sw2; } /** Modified: trunk/include/LWH/Histogram2D.h ============================================================================== --- trunk/include/LWH/Histogram2D.h Tue Jul 19 18:48:12 2011 (r3220) +++ trunk/include/LWH/Histogram2D.h Tue Jul 19 19:02:33 2011 (r3221) @@ -210,7 +210,7 @@ sw += sumw[ix][iy]; sw2 += sumw2[ix][iy]; } - return sw2/(sw*sw); + return (sw*sw)/sw2; } /** Modified: trunk/include/LWH/Profile1D.h ============================================================================== --- trunk/include/LWH/Profile1D.h Tue Jul 19 18:48:12 2011 (r3220) +++ trunk/include/LWH/Profile1D.h Tue Jul 19 19:02:33 2011 (r3221) @@ -187,7 +187,7 @@ sw += sumw[i]; sw2 += sumw2[i]; } - return sw2/(sw*sw); + return (sw*sw)/sw2; } /**
More information about the Rivet-svn mailing list |