source: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.h@ 7094

Last change on this file since 7094 was 7094, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.5 KB
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
11class MBadPixelsCam;
12class MGeomCam;
13class MPedPhotCam;
14
15class MBadPixelsCalc : public MTask
16{
17private:
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
41public:
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.