Line | |
---|
1 | #ifndef MARS_MBadPixelsCalc
|
---|
2 | #define MARS_MBadPixelsCalc
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MBadPixelsPix
|
---|
8 | #include "MBadPixelsPix.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class MBadPixelsCam;
|
---|
12 | class MGeomCam;
|
---|
13 | class MPedPhotCam;
|
---|
14 |
|
---|
15 | class MBadPixelsCalc : public MTask
|
---|
16 | {
|
---|
17 | private:
|
---|
18 | MGeomCam *fGeomCam; //! Input container storing the pixel sizes
|
---|
19 | MPedPhotCam *fPedPhotCam; //! Input container storing the pedestal and pedestal rms of all pixels
|
---|
20 | MBadPixelsCam *fBadPixels; //! Output container holding the bad pixels
|
---|
21 |
|
---|
22 | Float_t fPedestalLevel;
|
---|
23 | Float_t fPedestalLevelVariance;
|
---|
24 |
|
---|
25 | TString fNamePedPhotCam; // name of the 'MPedPhotCam' container
|
---|
26 |
|
---|
27 | Bool_t fCheckInProcess;
|
---|
28 | Bool_t fCheckInPostProcess;
|
---|
29 |
|
---|
30 | // MBadPixelsCalc
|
---|
31 | Bool_t CheckPedestalRms(MBadPixelsPix::UnsuitableType_t t) const;
|
---|
32 |
|
---|
33 | // MTask
|
---|
34 | Int_t PreProcess(MParList *pList);
|
---|
35 | Int_t Process();
|
---|
36 | Int_t PostProcess();
|
---|
37 |
|
---|
38 | // MParContainer
|
---|
39 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
|
---|
40 |
|
---|
41 | public:
|
---|
42 | MBadPixelsCalc(const char *name=NULL, const char *title=NULL);
|
---|
43 |
|
---|
44 | // Setter
|
---|
45 | void SetPedestalLevel(Float_t f) { fPedestalLevel=f; }
|
---|
46 | void SetPedestalLevelVariance(Float_t f) { fPedestalLevelVariance=f; }
|
---|
47 | void SetNamePedPhotCam(const char *name) { fNamePedPhotCam = name; }
|
---|
48 |
|
---|
49 | void EnableCheckInProcess(Bool_t b=kTRUE) { fCheckInProcess = b; }
|
---|
50 | void EnableCheckInPostProcess(Bool_t b=kTRUE) { fCheckInPostProcess = b; }
|
---|
51 |
|
---|
52 | ClassDef(MBadPixelsCalc, 1) // Task to find bad pixels (star, broken pixels, etc)
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif
|
---|
56 |
|
---|
57 |
|
---|
58 |
|
---|
59 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.