source: branches/Corsika7405Compatibility/mbadpixels/MBadPixelsCalc.h@ 18752

Last change on this file since 18752 was 7126, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.1 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 fPedestalLevelVarianceLo;
25 Float_t fPedestalLevelVarianceHi;
26
27 TString fNamePedPhotCam; // name of the 'MPedPhotCam' container
28
29 Bool_t fCheckInProcess;
30 Bool_t fCheckInPostProcess;
31
32 // MTask
33 Int_t PreProcess(MParList *pList);
34 Int_t Process();
35 Int_t PostProcess();
36
37 // MParContainer
38 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
39
40public:
41 MBadPixelsCalc(const char *name=NULL, const char *title=NULL);
42
43 // Setter
44 void SetPedestalLevel(Float_t f=-1) { fPedestalLevel=f; }
45 void SetPedestalLevelVariance(Float_t f=-1) { fPedestalLevelVarianceLo=fPedestalLevelVarianceHi=f; }
46 void SetPedestalLevelVarianceLo(Float_t f=-1) { fPedestalLevelVarianceLo=f; }
47 void SetPedestalLevelVarianceHi(Float_t f=-1) { fPedestalLevelVarianceHi=f; }
48
49 void SetNamePedPhotCam(const char *name) { fNamePedPhotCam = name; }
50 void SetGeomCam(const MGeomCam *geom) { fGeomCam = geom; }
51
52 void EnableCheckInProcess(Bool_t b=kTRUE) { fCheckInProcess = b; }
53 void EnableCheckInPostProcess(Bool_t b=kTRUE) { fCheckInPostProcess = b; }
54
55 // MBadPixelsCalc
56 Bool_t CheckPedestalRms(MBadPixelsPix::UnsuitableType_t t) const;
57 Bool_t CheckPedestalRms(MBadPixelsCam &cam, const MPedPhotCam &ped, MBadPixelsPix::UnsuitableType_t t=MBadPixelsPix::kUnsuitableRun);
58 Bool_t CheckPedestalRms(MBadPixelsCam &cam, const MPedestalCam &ped, MBadPixelsPix::UnsuitableType_t t=MBadPixelsPix::kUnsuitableRun);
59
60 ClassDef(MBadPixelsCalc, 1) // Task to find bad pixels (star, broken pixels, etc)
61};
62
63#endif
64
65
66
67
Note: See TracBrowser for help on using the repository browser.