Changeset 5697 for trunk


Ignore:
Timestamp:
01/05/05 11:18:12 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/getExtractor.C

    r5614 r5697  
    4545//       5:           SetRange('maxbin'-5,'maxbin'+8,'maxbin'-1.5,'maxbin'+7.5)
    4646//         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)
    5252//         MExtractFixedWindowPeakSearch: 
    5353//                    SetRange(0,18,2,14) and the following parameters:
     
    214214      // MExtractFixedWindowSpline:
    215215    case 6:
    216       extractor->SetRange(4,7,6,9);
     216      extractor->SetRange(3,7,5,9);
    217217      break;
    218218    case 7:
    219       extractor->SetRange(4,7,5,10);
     219      extractor->SetRange(3,7,5,11);
    220220      break;
    221221    case 8:
    222       extractor->SetRange(3,8,5,10);
     222      extractor->SetRange(3,9,5,11);
    223223      break;
    224224    case 9:
    225       extractor->SetRange(2,9,4,11);
     225      extractor->SetRange(2,10,4,12);
    226226      break;
    227227    case 10:
    228       extractor->SetRange(0,13,4,13);
     228      extractor->SetRange(0,14,4,14);
    229229      break;
    230230      // MExtractFixedWindowPeakSearch:
  • 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.