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.1 by dkralph, Sun Oct 23 11:45:14 2011 UTC vs.
Revision 1.2 by dkralph, Thu May 31 10:43:44 2012 UTC

# Line 126 | Line 126 | Float_t CEffUser2D::getValue(const TH2D*
126      }
127    }
128    
129 <  if(ix>0 && iy>0)
130 <    return h->GetCellContent(ix,iy);
131 <  else
129 >  if(ix>0 && iy>0) {
130 >    double rate = h->GetCellContent(ix,iy);
131 >    if(rate==1) { cerr << "error! rate = 1" << endl; assert(0); }
132 >    return rate;
133 >  }
134 >  else {
135 >    cerr << "CEffUser2D: out of range! " << setw(15) << x << setw(15) << y << endl;
136 >    assert(0);
137      return -1;
138 +  }
139   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines