|
[yoda-svn] r354 - trunk/srcblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Aug 24 14:56:50 BST 2011
Author: mkawalec Date: Wed Aug 24 14:56:50 2011 New Revision: 354 Log: Made profile1D also fill under/over flows. Modified: trunk/src/Profile1D.cc Modified: trunk/src/Profile1D.cc ============================================================================== --- trunk/src/Profile1D.cc Wed Aug 24 14:47:51 2011 (r353) +++ trunk/src/Profile1D.cc Wed Aug 24 14:56:50 2011 (r354) @@ -19,11 +19,17 @@ void Profile1D::fill(double x, double y, double weight) { - /// @todo Fill the underflow and overflow nicely - ProfileBin1D& b = binByCoord(x); - b.fill(x, y, weight); + + /// Filling under/over flows + if(x < _axis.xMin()) _axis.underflow().fill(x, y, weight); + else if(x >= _axis.xMax()) _axis.overflow().fill(x, y, weight); + else { + ProfileBin1D& b = binByCoord(x); + b.fill(x, y, weight); + } _axis.totalDbn().fill(x, y, weight); + }
More information about the yoda-svn mailing list |