Changeset 1899 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 04/03/03 13:45:35 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MBinning.h
r1891 r1899 46 46 for (int i=0; i<fEdges.GetSize(); i++) 47 47 { 48 if ( val >= ((TArrayD)fEdges)[i])48 if (((TArrayD)fEdges)[i] <= val) 49 49 return i; 50 50 } … … 53 53 Int_t FindHiEdge(Double_t val) const 54 54 { 55 for (int i=0; i<fEdges.GetSize() ; i++)55 for (int i=0; i<fEdges.GetSize()-1; i++) 56 56 { 57 if (val < ((TArrayD)fEdges)[i])58 return i ;57 if (val <= ((TArrayD)fEdges)[i]) 58 return i+1; 59 59 } 60 60 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.