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

Last change on this file since 3842 was 2781, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.6 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;
12class MPedPhotCam;
13class MCameraData;
14
15class MGGroupFrame;
16
17class MImgCleanStd : public MGTask
18{
19public:
20 typedef enum {
21 kStandard,
22 kDemocratic
23 } CleaningMethod_t;
24
25private:
26 const MGeomCam *fCam; //!
27 MCerPhotEvt *fEvt; //!
28 MSigmabar *fSgb; //!
29 MPedPhotCam *fPed; //!
30 MCameraData *fData; //!
31
32 CleaningMethod_t fCleaningMethod;
33
34 Float_t fCleanLvl1;
35 Float_t fCleanLvl2;
36
37 UShort_t fCleanRings;
38
39 Float_t fInnerNoise; //!
40
41 void CreateGuiElements(MGGroupFrame *f);
42 void StreamPrimitive(ofstream &out) const;
43
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.