Line | |
---|
1 | #ifndef MARS_MExtractSlidingWindow
|
---|
2 | #define MARS_MExtractSlidingWindow
|
---|
3 |
|
---|
4 | #ifndef MARS_MExtractor
|
---|
5 | #include "MExtractor.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MExtractSlidingWindow : public MExtractor
|
---|
9 | {
|
---|
10 | private:
|
---|
11 |
|
---|
12 | static const Byte_t fgHiGainFirst; // First FADC slice Hi-Gain (currently set to: 3)
|
---|
13 | static const Byte_t fgHiGainLast; // Last FADC slice Hi-Gain (currently set to: 14)
|
---|
14 | static const Byte_t fgLoGainFirst; // First FADC slice Lo-Gain (currently set to: 3)
|
---|
15 | static const Byte_t fgLoGainLast; // Last FADC slice Lo-Gain (currently set to: 14)
|
---|
16 | static const Byte_t fgHiGainWindowSize; // The extraction window Hi-Gain
|
---|
17 | static const Byte_t fgLoGainWindowSize; // The extraction window Lo-Gain
|
---|
18 |
|
---|
19 | Byte_t fWindowSizeHiGain; // Number of Hi Gain slices in window
|
---|
20 | Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window
|
---|
21 |
|
---|
22 | void FindSignalHiGain(Byte_t *ptr, Int_t &max, Byte_t &sat) const;
|
---|
23 | void FindSignalLoGain(Byte_t *ptr, Int_t &max, Byte_t &sat) const;
|
---|
24 |
|
---|
25 | public:
|
---|
26 | MExtractSlidingWindow(const char *name=NULL, const char *title=NULL);
|
---|
27 |
|
---|
28 | void SetWindowSize(Byte_t windowh=fgHiGainWindowSize,
|
---|
29 | Byte_t windowl=fgLoGainWindowSize);
|
---|
30 |
|
---|
31 | ClassDef(MExtractSlidingWindow, 0) // Signal Extractor for sliding extraction window
|
---|
32 | };
|
---|
33 |
|
---|
34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.