Ignore:
Timestamp:
01/05/05 11:18:12 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5604 r5697  
    3030//
    3131//   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.
    3442//
    3543//  Defaults are:
    3644//
    37 //   fHiGainFirst =  fgHiGainFirst =  3
     45//   fHiGainFirst =  fgHiGainFirst =  2
    3846//   fHiGainLast  =  fgHiGainLast  =  14
    3947//   fLoGainFirst =  fgLoGainFirst =  3
    40 //   fLoGainLast  =  fgLoGainLast  =  14
     48//   fLoGainLast  =  fgLoGainLast  =  13
    4149//
    4250//////////////////////////////////////////////////////////////////////////////
     
    5563const Byte_t  MExtractFixedWindowSpline::fgHiGainLast   = 14;
    5664const Byte_t  MExtractFixedWindowSpline::fgLoGainFirst  = 3;
    57 const Byte_t  MExtractFixedWindowSpline::fgLoGainLast   = 14;
     65const Byte_t  MExtractFixedWindowSpline::fgLoGainLast   = 13;
    5866// --------------------------------------------------------------------------
    5967//
     
    110118{
    111119
    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;
    114122
    115123  if (whieven != windowhi)
     
    129137    }
    130138
    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;
    133141
    134142  if (lolast != 0)
     
    235243 
    236244  const Byte_t *end = ptr + fHiGainLast - fHiGainFirst;
     245
    237246  Int_t range = fHiGainLast - fHiGainFirst + fHiLoLast + 1;
    238247 
Note: See TracChangeset for help on using the changeset viewer.