source: branches/MarsMoreSimulationTruth/msignal/MExtractSlidingWindow.h@ 19128

Last change on this file since 19128 was 4723, checked in by tbretz, 20 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, Byte_t *logain, Float_t &max, Byte_t &sat) const;
23 void FindSignalLoGain(Byte_t *ptr, Float_t &max, Byte_t &sat) const;
24
25 Bool_t ReInit(MParList *pList);
26
27public:
28 MExtractSlidingWindow(const char *name=NULL, const char *title=NULL);
29
30 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
31 void SetWindowSize(Byte_t windowh=fgHiGainWindowSize,
32 Byte_t windowl=fgLoGainWindowSize);
33
34 ClassDef(MExtractSlidingWindow, 1) // Signal Extractor for sliding extraction window
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.