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

Last change on this file since 3916 was 3883, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.4 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
25
26public:
27 MExtractSlidingWindow(const char *name=NULL, const char *title=NULL);
28
29 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
30 void SetWindowSize(Byte_t windowh=fgHiGainWindowSize,
31 Byte_t windowl=fgLoGainWindowSize);
32
33 ClassDef(MExtractSlidingWindow, 0) // Signal Extractor for sliding extraction window
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.