Changeset 5246


Ignore:
Timestamp:
10/12/04 14:32:24 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5240 r5246  
    2727//   MExtractSlidingWindow
    2828//
    29 //  Extracts the signal from a sliding window of size fHiGainWindowSize and
    30 //  fLoGainWindowSize. The signal is the one which maximizes the integral
    31 //  contents.
    32 //
    33 //  Call: SetRange(higainfirst, higainlast, logainfirst, logainlast)
    34 //  to modify the ranges in which the window is allowed to move.
    35 //  Defaults are:
     29//   Extracts the signal from a sliding window of size fHiGainWindowSize and
     30//   fLoGainWindowSize, respectively. The signal is the one which maximizes
     31//   the clock-noise and pedestal-corrected integral contents.
     32//
     33//   The amplitude-weighted arrival time is calculated from the window with
     34//   the highest integral using the following formula:
     35//
     36//   t = sum(s(i) * i) / sum(i)
     37//
     38//   where i denotes the FADC slice index and s(i) the clock-noise and
     39///  pedestal-corrected FADC value at slice index i. The sum runs over the
     40//   extraction window size.
     41//
     42//   Call: SetRange(higainfirst, higainlast, logainfirst, logainlast)
     43//         to modify the ranges in which the window is allowed to move.
     44//
     45//   Defaults are:
    3646//
    3747//   fHiGainFirst =  fgHiGainFirst =  0
     
    4151//
    4252//  Call: SetWindowSize(windowhigain, windowlogain)
    43 //  to modify the sliding window widths. Windows have to be an even number.
    44 //  In case of odd numbers, the window will be modified.
     53//        to modify the sliding window widths. Windows have to be an even number.
     54//        Odd numbers are possible since the clock-noise is corrected for.
    4555//
    4656//  Defaults are:
    4757//
    48 //   fHiGainWindowSize = fgHiGainWindowSize = 6
    49 //   fLoGainWindowSize = fgLoGainWindowSize = 6
     58//  fHiGainWindowSize = 6
     59//  fLoGainWindowSize = 6
    5060//
    5161//////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.