source: trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.h@ 4235

Last change on this file since 4235 was 3962, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MExtractBlindPixel
2#define MARS_MExtractBlindPixel
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MExtractBlindPixel //
7// //
8// Integrates the time slices of the all pixels of a calibration event //
9// and substract the pedestal value //
10// //
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef MARS_MExtractor
14#include "MExtractor.h"
15#endif
16
17class MExtractedSignalBlindPixel;
18class MExtractBlindPixel : public MExtractor
19{
20private:
21
22 static const Int_t fgBlindPixelIdx;
23 static const Int_t fgNSBFilterLimit;
24 static const Byte_t fgHiGainFirst; // First FADC slice Hi-Gain (currently set to: 0)
25 static const Byte_t fgHiGainLast; // Last FADC slice Hi-Gain (currently set to: 11)
26 static const Byte_t fgLoGainFirst; // First FADC slice Lo-Gain (currently set to: 0)
27 static const Byte_t fgLoGainLast; // Last FADC slice Lo-Gain (currently set to: 2)
28
29 MExtractedSignalBlindPixel *fBlindPixel; // Extracted signal of the Blind Pixel
30
31 Int_t fBlindPixelIdx;
32 Int_t fNSBFilterLimit;
33
34 void FindSignalHiGain(Byte_t *firstused, Byte_t *lowgain, Int_t &sum, Byte_t &sat) const;
35 void FindSignalFilter(Byte_t *ptr, Int_t &sum, Byte_t &sat) const;
36
37 Int_t PreProcess(MParList *pList);
38 Int_t Process();
39
40public:
41
42 MExtractBlindPixel(const char *name=NULL, const char *title=NULL);
43
44 // Setters
45 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
46 void SetBlindPixelIdx( const Int_t idx=fgBlindPixelIdx ) { fBlindPixelIdx = idx; }
47 void SetNSBFilterLimit( const Int_t lim=fgNSBFilterLimit ) { fNSBFilterLimit = lim; }
48
49 ClassDef(MExtractBlindPixel, 0) // Signal Extractor for the Blind Pixel
50};
51
52#endif
53
Note: See TracBrowser for help on using the repository browser.