ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Util/src/CEffUser2D.cc
(Generate patch)

Comparing UserCode/MitHzz4l/Util/src/CEffUser2D.cc (file contents):
Revision 1.3 by dkralph, Thu Jun 14 10:27:47 2012 UTC vs.
Revision 1.4 by dkralph, Tue Jun 19 17:11:29 2012 UTC

# Line 114 | Line 114 | Float_t CEffUser2D::getValue(const TH2D*
114    Double_t xval=x,yval=y;
115  
116    if(keepInBounds) {
117 <    if(x < h->GetXaxis()->GetBinLowEdge(1)) xval = h->GetXaxis()->GetBinCenter(1);
118 <    if(x > h->GetXaxis()->GetBinUpEdge(nx)) xval = h->GetXaxis()->GetBinCenter(nx);
119 <    if(y < h->GetYaxis()->GetBinLowEdge(1)) yval = h->GetYaxis()->GetBinCenter(1);
120 <    if(y > h->GetYaxis()->GetBinUpEdge(ny)) yval = h->GetYaxis()->GetBinCenter(ny);
117 >    if(x <= h->GetXaxis()->GetBinLowEdge(1)) xval = h->GetXaxis()->GetBinCenter(1);
118 >    if(x >= h->GetXaxis()->GetBinUpEdge(nx)) xval = h->GetXaxis()->GetBinCenter(nx);
119 >    if(y <= h->GetYaxis()->GetBinLowEdge(1)) yval = h->GetYaxis()->GetBinCenter(1);
120 >    if(y >= h->GetYaxis()->GetBinUpEdge(ny)) yval = h->GetYaxis()->GetBinCenter(ny);
121    }
122    
123    for(Int_t i=1; i<=nx; i++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines