|
[Rivet-svn] r2675 - trunk/include/LWHblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Aug 23 21:51:09 BST 2010
Author: holsch Date: Mon Aug 23 21:51:09 2010 New Revision: 2675 Log: Make some more private members accessible via get functions Modified: trunk/include/LWH/Histogram1D.h Modified: trunk/include/LWH/Histogram1D.h ============================================================================== --- trunk/include/LWH/Histogram1D.h Mon Aug 23 21:50:38 2010 (r2674) +++ trunk/include/LWH/Histogram1D.h Mon Aug 23 21:51:09 2010 (r2675) @@ -332,7 +332,27 @@ ax->upperEdge() - ax->lowerEdge(); } - /** + /** The weights. */ + double getSumW(int index) const { + return sumw[index + 2]; + } + + /** The squared weights. */ + double getSumW2(int index) const { + return sumw2[index + 2]; + } + + /** The weighted x-values. */ + double getSumXW(int index) const { + return sumxw[index + 2]; + } + + /** The weighted x-square-values. */ + double getSumX2W(int index) const { + return sumx2w[index + 2]; + } + + /** * Get the x axis of the IHistogram1D. * @return The x coordinate IAxis. */
More information about the Rivet-svn mailing list |