|
[Rivet-svn] r2726 - trunk/include/LWHblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Oct 28 09:21:38 BST 2010
Author: lonnblad Date: Thu Oct 28 09:21:38 2010 New Revision: 2726 Log: Corrected an error in the projectionX/Y function. Modified: trunk/include/LWH/HistogramFactory.h Modified: trunk/include/LWH/HistogramFactory.h ============================================================================== --- trunk/include/LWH/HistogramFactory.h Tue Oct 26 15:03:34 2010 (r2725) +++ trunk/include/LWH/HistogramFactory.h Thu Oct 28 09:21:38 2010 (r2726) @@ -1020,7 +1020,7 @@ * along its x axis. */ Histogram1D * projectionX(const std::string & path, const Histogram2D & h) { - return sliceX(path, h, h.xax->bins() - 1); + return sliceX(path, h, 0, h.yax->bins() - 1); } /** @@ -1036,7 +1036,7 @@ * along its y axis. */ Histogram1D * projectionY(const std::string & path, const Histogram2D & h) { - return sliceY(path, h, h.yax->bins() - 1); + return sliceY(path, h, 0, h.xax->bins() - 1); } /**
More information about the Rivet-svn mailing list |