| 1 | #ifndef MARS_MExtractFixedWindowPeakSearch
|
|---|
| 2 | #define MARS_MExtractFixedWindowPeakSearch
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MExtractor
|
|---|
| 5 | #include "MExtractor.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MExtractFixedWindowPeakSearch : public MExtractor
|
|---|
| 9 | {
|
|---|
| 10 | private:
|
|---|
| 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 fPeakSearchWindowSize; // Size of FADC window in the search for the highest peak of all pixels.
|
|---|
| 21 |
|
|---|
| 22 | Byte_t fWindowSizeHiGain; // Number of Hi Gain slices in window
|
|---|
| 23 | Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window
|
|---|
| 24 |
|
|---|
| 25 | void FindSignalHiGain(Byte_t *ptr, Int_t last, Int_t &sum, Byte_t &sat) const;
|
|---|
| 26 | void FindSignalLoGain(Byte_t *ptr, Int_t last, 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 |
|
|---|
| 32 | public:
|
|---|
| 33 |
|
|---|
| 34 | MExtractFixedWindowPeakSearch(const char *name=NULL, const char *title=NULL);
|
|---|
| 35 |
|
|---|
| 36 | void SetWindows(Byte_t windowh=fgHiGainWindowSize, Byte_t windowl=fgLoGainWindowSize,
|
|---|
| 37 | Byte_t peaksearchwindow=fgPeakSearchWindowSize);
|
|---|
| 38 |
|
|---|
| 39 | ClassDef(MExtractFixedWindowPeakSearch, 0) // Signal Extractor for fixed size trigger-corrected extraction window
|
|---|
| 40 | };
|
|---|
| 41 |
|
|---|
| 42 | #endif
|
|---|