source: trunk/MagicSoft/Mars/msignal/MExtractSlidingWindow.h@ 3869

Last change on this file since 3869 was 3868, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MExtractSlidingWindow
2#define MARS_MExtractSlidingWindow
3
4#ifndef MARS_MExtractor
5#include "MExtractor.h"
6#endif
7
8class MExtractSlidingWindow : public MExtractor
9{
10private:
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
25public:
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.