Changeset 5604 for trunk/MagicSoft/Mars
- Timestamp:
- 12/15/04 20:13:16 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractFixedWindowSpline.cc
r5149 r5604 267 267 sum += (Float_t)*ptr/2.; 268 268 fHiGainSecondDeriv[++i] = 0.; 269 270 269 } 271 270 else … … 280 279 i++; 281 280 282 pp = fHiGainSecondDeriv[i-1] + 4.; 283 fHiGainSecondDeriv[i] = -1.0/pp; 284 fHiGainFirstDeriv [i] = *(logain) - 2.* *(ptr) + *(ptr-1); 285 fHiGainFirstDeriv [i] = (6.0*fHiGainFirstDeriv[i]-fHiGainFirstDeriv[i-1])/pp; 286 281 if (*logain >= fSaturationLimit) 282 sat++; 283 287 284 if (fHiLoLast == 1) 288 { 289 sum += (Float_t)*logain/2; 290 fHiGainSecondDeriv[++i] = 0.; 291 if (*logain >= fSaturationLimit) 292 sat++; 293 } 285 sum += (Float_t)*logain/2; 294 286 else 295 287 { 288 pp = fHiGainSecondDeriv[i-1] + 4.; 289 fHiGainSecondDeriv[i] = -1.0/pp; 290 fHiGainFirstDeriv [i] = *(logain) - 2.* *(ptr) + *(ptr-1); 291 fHiGainFirstDeriv [i] = (6.0*fHiGainFirstDeriv[i]-fHiGainFirstDeriv[i-1])/pp; 292 296 293 // 297 294 // Second, the first low-gain slice as center … … 325 322 326 323 } 327 sum += (Float_t)*logain/2;328 fHiGainSecondDeriv[++i] = 0.;329 324 } 330 325 } 331 326 327 fHiGainSecondDeriv[range-1] = 0.; 328 332 329 for (Int_t k=range-2;k>0;k--) 333 330 {
Note:
See TracChangeset
for help on using the changeset viewer.