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

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Nov 1 13:44:57 GMT 2010


Author: lonnblad
Date: Mon Nov  1 13:44:56 2010
New Revision: 2741

Log:
Fixed another bug in 2D subtract function.

Modified:
   trunk/include/LWH/HistogramFactory.h

Modified: trunk/include/LWH/HistogramFactory.h
==============================================================================
--- trunk/include/LWH/HistogramFactory.h	Fri Oct 29 18:16:19 2010	(r2740)
+++ trunk/include/LWH/HistogramFactory.h	Mon Nov  1 13:44:56 2010	(r2741)
@@ -863,7 +863,7 @@
       for ( int iy = 0; iy < h->yax->bins() + 2; ++iy ) {
 	h->sum[ix][iy] += h2.sum[ix][iy];
 	h->sumw[ix][iy] -= h2.sumw[ix][iy];
-	h->sumw[ix][iy] -= h2.sumw[ix][iy];
+	h->sumw2[ix][iy] += h2.sumw2[ix][iy];
 	h->sumxw[ix][iy] -= h2.sumxw[ix][iy];
 	h->sumx2w[ix][iy] -= h2.sumx2w[ix][iy];
 	h->sumyw[ix][iy] -= h2.sumyw[ix][iy];


More information about the Rivet-svn mailing list