Changeset 5697 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 01/05/05 11:18:12 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractFixedWindowSpline.cc
r5604 r5697 30 30 // 31 31 // Call: SetRange(fHiGainFirst, fHiGainLast, fLoGainFirst, fLoGainLast) 32 // to modify the ranges. Ranges have to be an even number. In case of odd 33 // ranges, the last slice will be reduced by one. 32 // to modify the ranges. 33 // 34 // The spline will then be integrated from fHiGainFirst to fHiGainLast, 35 // including half of the outer edges. The effective number of intergrated 36 // slices ("range") is thus: 37 // 38 // range = fHiGainLast - fHiGainFirst 39 // 40 // Ranges have to be an even number. In case of odd ranges, the last slice 41 // will be reduced by one. 34 42 // 35 43 // Defaults are: 36 44 // 37 // fHiGainFirst = fgHiGainFirst = 345 // fHiGainFirst = fgHiGainFirst = 2 38 46 // fHiGainLast = fgHiGainLast = 14 39 47 // fLoGainFirst = fgLoGainFirst = 3 40 // fLoGainLast = fgLoGainLast = 1 448 // fLoGainLast = fgLoGainLast = 13 41 49 // 42 50 ////////////////////////////////////////////////////////////////////////////// … … 55 63 const Byte_t MExtractFixedWindowSpline::fgHiGainLast = 14; 56 64 const Byte_t MExtractFixedWindowSpline::fgLoGainFirst = 3; 57 const Byte_t MExtractFixedWindowSpline::fgLoGainLast = 1 4;65 const Byte_t MExtractFixedWindowSpline::fgLoGainLast = 13; 58 66 // -------------------------------------------------------------------------- 59 67 // … … 110 118 { 111 119 112 const Byte_t windowhi = hilast-hifirst +1;113 const Byte_t whieven = windowhi & ~1;120 const Byte_t windowhi = hilast-hifirst; 121 const Byte_t whieven = windowhi & ~1; 114 122 115 123 if (whieven != windowhi) … … 129 137 } 130 138 131 const Byte_t windowlo = lolast-lofirst +1;132 const Byte_t wloeven = windowlo & ~1;139 const Byte_t windowlo = lolast-lofirst; 140 const Byte_t wloeven = windowlo & ~1; 133 141 134 142 if (lolast != 0) … … 235 243 236 244 const Byte_t *end = ptr + fHiGainLast - fHiGainFirst; 245 237 246 Int_t range = fHiGainLast - fHiGainFirst + fHiLoLast + 1; 238 247
Note:
See TracChangeset
for help on using the changeset viewer.