| 1 | #ifndef MARS_MImgCleanStd | 
|---|
| 2 | #define MARS_MImgCleanStd | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef MARS_MGTask | 
|---|
| 5 | #include "MGTask.h" | 
|---|
| 6 | #endif | 
|---|
| 7 |  | 
|---|
| 8 | class MGeomCam; | 
|---|
| 9 | class MSigmabar; | 
|---|
| 10 | class MCerPhotPix; | 
|---|
| 11 | class MCerPhotEvt; | 
|---|
| 12 |  | 
|---|
| 13 | class MGGroupFrame; | 
|---|
| 14 |  | 
|---|
| 15 | class MImgCleanStd : public MGTask | 
|---|
| 16 | { | 
|---|
| 17 | public: | 
|---|
| 18 | typedef enum { | 
|---|
| 19 | kStandard, | 
|---|
| 20 | kDemocratic | 
|---|
| 21 | } CleaningMethod_t; | 
|---|
| 22 |  | 
|---|
| 23 | private: | 
|---|
| 24 | const MGeomCam    *fCam;  //! | 
|---|
| 25 | MCerPhotEvt *fEvt;  //! | 
|---|
| 26 | MSigmabar   *fSgb;  //! | 
|---|
| 27 |  | 
|---|
| 28 | CleaningMethod_t fCleaningMethod; | 
|---|
| 29 |  | 
|---|
| 30 | Float_t fCleanLvl1; | 
|---|
| 31 | Float_t fCleanLvl2; | 
|---|
| 32 |  | 
|---|
| 33 | UShort_t fCleanRings; | 
|---|
| 34 |  | 
|---|
| 35 | Float_t fInnerNoise;      //! | 
|---|
| 36 |  | 
|---|
| 37 | void CreateGuiElements(MGGroupFrame *f); | 
|---|
| 38 | void StreamPrimitive(ofstream &out) const; | 
|---|
| 39 |  | 
|---|
| 40 | Int_t  CleanStep1Dem(); | 
|---|
| 41 | Int_t  CleanStep1Std(); | 
|---|
| 42 | Bool_t CleanStep3Dem(const MCerPhotPix &pix); | 
|---|
| 43 | Bool_t CleanStep3Std(const MCerPhotPix &pix); | 
|---|
| 44 | void   CleanStep3b(MCerPhotPix &pix); | 
|---|
| 45 | void   CleanStep4(UShort_t r, MCerPhotPix &pix); | 
|---|
| 46 |  | 
|---|
| 47 | public: | 
|---|
| 48 | MImgCleanStd(const Float_t lvl1=3.0, const Float_t lvl2=2.5, | 
|---|
| 49 | const char *name=NULL, const char *title=NULL); | 
|---|
| 50 |  | 
|---|
| 51 | Int_t CleanStep1(); | 
|---|
| 52 | void  CleanStep2(Int_t max); | 
|---|
| 53 | void  CleanStep3(); | 
|---|
| 54 |  | 
|---|
| 55 | Bool_t PreProcess(MParList *pList); | 
|---|
| 56 | Bool_t Process(); | 
|---|
| 57 |  | 
|---|
| 58 | void Print(Option_t *o="") const; | 
|---|
| 59 |  | 
|---|
| 60 | Float_t  GetCleanLvl1() const { return fCleanLvl1; } | 
|---|
| 61 | Float_t  GetCleanLvl2() const { return fCleanLvl2; } | 
|---|
| 62 | UShort_t GetCleanRings() const { return fCleanRings;} | 
|---|
| 63 |  | 
|---|
| 64 | void SetCleanRings(UShort_t r) { fCleanRings=r; } | 
|---|
| 65 | void SetMethod(CleaningMethod_t m) { fCleaningMethod = m; } | 
|---|
| 66 |  | 
|---|
| 67 | Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2); | 
|---|
| 68 |  | 
|---|
| 69 | ClassDef(MImgCleanStd, 2)    // task doing the image cleaning | 
|---|
| 70 | }; | 
|---|
| 71 |  | 
|---|
| 72 | #endif | 
|---|