Changeset 5226 for trunk/MagicSoft


Ignore:
Timestamp:
10/11/04 21:22:14 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc

    r5225 r5226  
    110110//  1) If Charge Type: kAmplitude was chosen: 1.
    111111//  2) If Charge Type: kIntegral was chosen: TMath::Floor(fRiseTime + fFallTime)
     112//                 or: TMath::Floor(fRiseTime + fFallTime + 1.) in the case of the low-gain
    112113//
    113114//  Call: SetRange(fHiGainFirst, fHiGainLast, fLoGainFirst, fLoGainLast)
     
    138139//          computation of the integral beneith the spline between fRiseTime
    139140//          from the position of the maximum to fFallTime after the position of
    140 //          the maximum.
     141//          the maximum. The Low Gain is computed with one more slice at the falling
     142//          edge.
    141143//          --> needs one more simple summation loop over 7 slices.
    142144//       
     
    272274    {
    273275      fNumHiGainSamples  = TMath::Floor(fRiseTime + fFallTime);
    274       fNumLoGainSamples  = fNumHiGainSamples;
     276      fNumLoGainSamples  = fNumHiGainSamples + 1.;
    275277      fSqrtHiGainSamples = TMath::Sqrt(fNumHiGainSamples);
    276       fSqrtLoGainSamples = fSqrtHiGainSamples;
     278      fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples);
    277279    }
    278280}
     
    859861  // Try a better precision.
    860862  //
    861   const Float_t up = fAbMaxPos+step-0.055;
    862   const Float_t lo = fAbMaxPos-step+0.055;
     863  const Float_t up = fAbMaxPos+step-0.035;
     864  const Float_t lo = fAbMaxPos-step+0.035;
    863865  const Float_t maxpossave = fAbMaxPos;
    864866 
     
    867869  b     = x - lower;
    868870 
    869   step  = 0.02; // step size of 42 ps
     871  step  = 0.025; // step size of 83 ps
    870872 
    871873  while (x<up)
     
    890892
    891893  //
    892   // Second, try from time down to time-0.2 in steps of 0.04.
     894  // Second, try from time down to time-0.2 in steps of 0.025.
    893895  //
    894896  x     = maxpossave;
     
    962964      Bool_t back = kFALSE;
    963965     
    964       Int_t maxcnt = 1000;
     966      Int_t maxcnt = 50;
    965967      Int_t cnt    = 0;
    966968
     
    10161018      //
    10171019      Int_t startslice = (Int_t)(fAbMaxPos - fRiseTime);
    1018       Int_t lastslice  = (Int_t)(fAbMaxPos + fFallTime);
     1020      Int_t lastslice  = (Int_t)(fAbMaxPos + fFallTime + 1);
    10191021     
    10201022      if (startslice < 0)
Note: See TracChangeset for help on using the changeset viewer.