- Timestamp:
- 01/05/05 11:18:12 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/getExtractor.C
r5614 r5697 45 45 // 5: SetRange('maxbin'-5,'maxbin'+8,'maxbin'-1.5,'maxbin'+7.5) 46 46 // MExtractFixedWindowSpline: 47 // 6: SetRange('maxbin'-1 ,'maxbin'+2,'maxbin'+0.5,'maxbin'+3.5)48 // 7: SetRange('maxbin'-1 ,'maxbin'+2,'maxbin'-0.5,'maxbin'+4.5)49 // 8: SetRange('maxbin'-2 ,'maxbin'+3,'maxbin'-0.5,'maxbin'+4.5)50 // 9: SetRange('maxbin'-3 ,'maxbin'+4,'maxbin'-1.5,'maxbin'+5.5)51 // 10: SetRange('maxbin'-5 ,'maxbin'+8,'maxbin'-1.5,'maxbin'+7.5)47 // 6: SetRange('maxbin'-1.5,'maxbin'+2.5,'maxbin','maxbin'+4) 48 // 7: SetRange('maxbin'-1.5,'maxbin'+2.5,'maxbin'-1,'maxbin'+5) 49 // 8: SetRange('maxbin'-2.5,'maxbin'+3.5,'maxbin'-1,'maxbin'+5) 50 // 9: SetRange('maxbin'-3.5,'maxbin'+4.5,'maxbin'-2,'maxbin'+6) 51 // 10: SetRange('maxbin'-5.5,'maxbin'+8.5,'maxbin'-2,'maxbin'+8) 52 52 // MExtractFixedWindowPeakSearch: 53 53 // SetRange(0,18,2,14) and the following parameters: … … 214 214 // MExtractFixedWindowSpline: 215 215 case 6: 216 extractor->SetRange( 4,7,6,9);216 extractor->SetRange(3,7,5,9); 217 217 break; 218 218 case 7: 219 extractor->SetRange( 4,7,5,10);219 extractor->SetRange(3,7,5,11); 220 220 break; 221 221 case 8: 222 extractor->SetRange(3, 8,5,10);222 extractor->SetRange(3,9,5,11); 223 223 break; 224 224 case 9: 225 extractor->SetRange(2, 9,4,11);225 extractor->SetRange(2,10,4,12); 226 226 break; 227 227 case 10: 228 extractor->SetRange(0,1 3,4,13);228 extractor->SetRange(0,14,4,14); 229 229 break; 230 230 // MExtractFixedWindowPeakSearch: -
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.