Changeset 5246
- Timestamp:
- 10/12/04 14:32:24 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc
r5240 r5246 27 27 // MExtractSlidingWindow 28 28 // 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: 36 46 // 37 47 // fHiGainFirst = fgHiGainFirst = 0 … … 41 51 // 42 52 // 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. 45 55 // 46 56 // Defaults are: 47 57 // 48 // fHiGainWindowSize = fgHiGainWindowSize = 649 // fLoGainWindowSize = fgLoGainWindowSize = 658 // fHiGainWindowSize = 6 59 // fLoGainWindowSize = 6 50 60 // 51 61 //////////////////////////////////////////////////////////////////////////////
Note:
See TracChangeset
for help on using the changeset viewer.