source: trunk/MagicSoft/Mars/mimage/MImgCleanStd.h@ 2132

Last change on this file since 2132 was 2052, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MImgCleanStd
2#define MARS_MImgCleanStd
3
4#ifndef MARS_MGTask
5#include "MGTask.h"
6#endif
7
8class MGeomCam;
9class MSigmabar;
10class MCerPhotPix;
11class MCerPhotEvt;
12
13class MGGroupFrame;
14
15class MImgCleanStd : public MGTask
16{
17public:
18 typedef enum {
19 kStandard,
20 kDemocratic
21 } CleaningMethod_t;
22
23private:
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
47public:
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) { if(r==0) r=1; 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
Note: See TracBrowser for help on using the repository browser.