[Rivet-svn] r3075 - trunk/include/LWH

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue May 3 13:32:50 BST 2011


Author: hoeth
Date: Tue May  3 13:32:50 2011
New Revision: 3075

Log:
bin heights are double, not int

Modified:
   trunk/include/LWH/Histogram2D.h

Modified: trunk/include/LWH/Histogram2D.h
==============================================================================
--- trunk/include/LWH/Histogram2D.h	Tue May  3 13:31:15 2011	(r3074)
+++ trunk/include/LWH/Histogram2D.h	Tue May  3 13:32:50 2011	(r3075)
@@ -240,7 +240,7 @@
      * @return The sum of the heights of the out-of-range bins.
      */
     double sumExtraBinHeights() const {
-      int esum = sumw[0][0] + sumw[1][0] + sumw[0][1] + sumw[1][1];
+      double esum = sumw[0][0] + sumw[1][0] + sumw[0][1] + sumw[1][1];
       for ( int ix = 2; ix < xax->bins() + 2; ++ix )
         esum += sumw[ix][0] + sumw[ix][1];
       for ( int iy = 2; iy < yax->bins() + 2; ++iy )


More information about the Rivet-svn mailing list