Changeset 5605
- Timestamp:
- 12/15/04 20:45:15 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r5593 r5605 397 397 if (IsNoiseCalculation()) 398 398 { 399 399 400 if (fRandomIter == int(1./fResolution)) 400 401 fRandomIter = 0; … … 435 436 // Don't start if the maxpos is too close to the limits. 436 437 // 437 if (sat > 1 || maxpos < 2|| maxpos > range-2)438 if (sat > 1 || maxpos < 1 || maxpos > range-2) 438 439 { 439 440 time = IsExtractionType(kMaximum) … … 526 527 } 527 528 } 528 529 529 // 530 530 // Now, the time, abmax and khicont and klocont are set correctly within the previous precision. … … 574 574 klo--; 575 575 khi--; 576 upper += 1.;576 upper -= 1.; 577 577 lower -= 1.; 578 578 } … … 662 662 663 663 if (++cnt > maxcnt) 664 { 665 // *fLog << inf << x << " " << y << " " << fHalfMax << endl; 666 break; 667 } 664 break; 668 665 669 666 step /= 2.; … … 789 786 { 790 787 Float_t start = 2. + nsx; 791 Float_t last = start + fRiseTime + fFallTime ;788 Float_t last = start + fRiseTime + fFallTime +1.; 792 789 793 790 if (int(last) > range) … … 949 946 klo--; 950 947 khi--; 951 upper += 1.;948 upper -= 1.; 952 949 lower -= 1.; 953 950 } … … 1060 1057 // Now integrate the whole thing! 1061 1058 // 1062 Float_t start = fAbMaxPos - fRiseTime ;1063 Float_t last = fAbMaxPos + fFallTime + 1.;1059 Float_t start = fAbMaxPos - fRiseTime - 0.5; 1060 Float_t last = fAbMaxPos + fFallTime + 0.5; 1064 1061 1065 1062 const Int_t diff = int(last) - range;
Note:
See TracChangeset
for help on using the changeset viewer.