source: trunk/MagicSoft/Mars/msignal/MExtractFixedWindowPeakSearch.h@ 3887

Last change on this file since 3887 was 3887, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MExtractFixedWindowPeakSearch
2#define MARS_MExtractFixedWindowPeakSearch
3
4#ifndef MARS_MExtractor
5#include "MExtractor.h"
6#endif
7
8class MExtractFixedWindowPeakSearch : public MExtractor
9{
10private:
11
12 static const Byte_t fgHiGainFirst;
13 static const Byte_t fgHiGainLast;
14 static const Byte_t fgLoGainFirst;
15 static const Byte_t fgLoGainLast;
16 static const Byte_t fgHiGainWindowSize; // The extraction window Hi-Gain
17 static const Byte_t fgLoGainWindowSize; // The extraction window Lo-Gain
18 static const Byte_t fgPeakSearchWindowSize; // The window in which the global peak is searched for
19
20 Byte_t fWindowSizeHiGain; // Number of Hi Gain slices in window
21 Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window
22 Byte_t fPeakSearchWindowSize; // Size of FADC window in the search for the highest peak of all pixels.
23
24
25 void FindSignalHiGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const;
26 void FindSignalLoGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const;
27
28 void FindPeak(Byte_t *ptr, Byte_t window, Byte_t &startslice, Int_t &signal, Int_t &sat) const;
29
30 Int_t Process();
31
32public:
33
34 MExtractFixedWindowPeakSearch(const char *name=NULL, const char *title=NULL);
35
36 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
37 void SetWindows(Byte_t windowh=fgHiGainWindowSize, Byte_t windowl=fgLoGainWindowSize,
38 Byte_t peaksearchwindow=fgPeakSearchWindowSize);
39
40 ClassDef(MExtractFixedWindowPeakSearch, 0) // Signal Extractor for fixed size trigger-corrected extraction window
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.