Changeset 1901 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 04/03/03 13:58:19 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MBinning.h
r1900 r1901 47 47 return -1; 48 48 49 for (int i=1; i<fEdges.GetSize() ; i++)49 for (int i=1; i<fEdges.GetSize()-1; i++) 50 50 { 51 51 if (((TArrayD)fEdges)[i] >= val) … … 56 56 Int_t FindHiEdge(Double_t val) const 57 57 { 58 if (val<GetEdgeLo() || val>=GetEdgeHi()) 59 return -1; 60 61 for (int i=1; i<fEdges.GetSize()-1; i++) 62 { 63 if (((TArrayD)fEdges)[i] >= val) 64 return i; 65 } 66 return -1; 58 const Int_t i = FindLoEdge(val); 59 return i<0 ? -1 : i+1; 67 60 } 68 61
Note:
See TracChangeset
for help on using the changeset viewer.