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

Last change on this file since 2233 was 2209, checked in by tbretz, 21 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 void CleanStep1Dem();
41 void 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 void CleanStep1();
48 void CleanStep2();
49 void CleanStep3();
50
51 Int_t PreProcess(MParList *pList);
52 Int_t Process();
53
54public:
55 MImgCleanStd(const Float_t lvl1=3.0, const Float_t lvl2=2.5,
56 const char *name=NULL, const char *title=NULL);
57 void Print(Option_t *o="") const;
58
59 Float_t GetCleanLvl1() const { return fCleanLvl1; }
60 Float_t GetCleanLvl2() const { return fCleanLvl2; }
61 UShort_t GetCleanRings() const { return fCleanRings;}
62
63 void SetCleanRings(UShort_t r) { if(r==0) r=1; fCleanRings=r; }
64 void SetMethod(CleaningMethod_t m) { fCleaningMethod = m; }
65
66 Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2);
67
68 ClassDef(MImgCleanStd, 2) // task doing the image cleaning
69};
70
71#endif
Note: See TracBrowser for help on using the repository browser.