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

Last change on this file since 4371 was 4342, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.8 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
17#ifndef ROOT_TArrayI
18#include <TArrayI.h>
19#endif
20
21class MExtractedSignalBlindPixel;
22class MExtractBlindPixel : public MExtractor
23{
24private:
25
26 static const Int_t fgBlindPixelIdx;
27 static const Int_t fgNSBFilterLimit;
28 static const Byte_t fgHiGainFirst; // First FADC slice Hi-Gain (currently set to: 0)
29 static const Byte_t fgHiGainLast; // Last FADC slice Hi-Gain (currently set to: 11)
30 static const Byte_t fgLoGainFirst; // First FADC slice Lo-Gain (currently set to: 0)
31 static const Byte_t fgLoGainLast; // Last FADC slice Lo-Gain (currently set to: 2)
32 static const Float_t fgResolution; // Default for fResolution (now set to: 0.003)
33
34 MExtractedSignalBlindPixel *fBlindPixel; // Extracted signal of the Blind Pixel
35
36 Byte_t fHiLoFirst;
37 Float_t *fHiGainSignal; // Need fast access to the signals in a float way
38 Float_t *fHiGainFirstDeriv;
39 Float_t *fHiGainSecondDeriv;
40
41 Float_t fResolution; // The time resolution in FADC units
42 TArrayI fBlindPixelIdx;
43 Int_t fNSBFilterLimit;
44
45 void FindAmplitude(Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat) const;
46 void FindSignalHiGain(Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat) const;
47 void FindSignalFilter(Byte_t *ptr, Int_t &sum, Byte_t &sat) const;
48
49 Int_t PreProcess(MParList *pList);
50 Bool_t ReInit(MParList *pList);
51 Int_t Process();
52
53public:
54
55 MExtractBlindPixel(const char *name=NULL, const char *title=NULL);
56 ~MExtractBlindPixel();
57
58 // Setters
59 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
60 void SetBlindPixelIdx( const Int_t idx=fgBlindPixelIdx, const Int_t nr=0) {
61 if (nr>fBlindPixelIdx.GetSize()+1)
62 fBlindPixelIdx.Set(nr+1);
63 fBlindPixelIdx.AddAt(idx,nr); }
64 void SetNSBFilterLimit( const Int_t lim=fgNSBFilterLimit ) { fNSBFilterLimit = lim; }
65 void SetResolution(Float_t f=fgResolution) { fResolution = f; }
66
67 ClassDef(MExtractBlindPixel, 0) // Signal Extractor for the Blind Pixel
68};
69
70#endif
71
Note: See TracBrowser for help on using the repository browser.