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

Last change on this file since 7113 was 7109, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.9 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;
14class MPedestalCam;
15
16class MBadPixelsCalc : public MTask
17{
18private:
19 const MGeomCam *fGeomCam; //! Input container storing the pixel sizes
20 const MPedPhotCam *fPedPhotCam; //! Input container storing the pedestal and pedestal rms of all pixels
21 MBadPixelsCam *fBadPixels; //! Output container holding the bad pixels
22
23 Float_t fPedestalLevel;
24 Float_t fPedestalLevelVariance;
25
26 TString fNamePedPhotCam; // name of the 'MPedPhotCam' container
27
28 Bool_t fCheckInProcess;
29 Bool_t fCheckInPostProcess;
30
31 // MTask
32 Int_t PreProcess(MParList *pList);
33 Int_t Process();
34 Int_t PostProcess();
35
36 // MParContainer
37 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
38
39public:
40 MBadPixelsCalc(const char *name=NULL, const char *title=NULL);
41
42 // Setter
43 void SetPedestalLevel(Float_t f) { fPedestalLevel=f; }
44 void SetPedestalLevelVariance(Float_t f) { fPedestalLevelVariance=f; }
45 void SetNamePedPhotCam(const char *name) { fNamePedPhotCam = name; }
46
47 void SetGeomCam(const MGeomCam *geom) { fGeomCam = geom; }
48
49 void EnableCheckInProcess(Bool_t b=kTRUE) { fCheckInProcess = b; }
50 void EnableCheckInPostProcess(Bool_t b=kTRUE) { fCheckInPostProcess = b; }
51
52 // MBadPixelsCalc
53 Bool_t CheckPedestalRms(MBadPixelsPix::UnsuitableType_t t) const;
54 Bool_t CheckPedestalRms(MBadPixelsCam &cam, const MPedPhotCam &ped, MBadPixelsPix::UnsuitableType_t t=MBadPixelsPix::kUnsuitableRun);
55 Bool_t CheckPedestalRms(MBadPixelsCam &cam, const MPedestalCam &ped, MBadPixelsPix::UnsuitableType_t t=MBadPixelsPix::kUnsuitableRun);
56
57 ClassDef(MBadPixelsCalc, 1) // Task to find bad pixels (star, broken pixels, etc)
58};
59
60#endif
61
62
63
64
Note: See TracBrowser for help on using the repository browser.