source: trunk/MagicSoft/Mars/mimage/MImgCleanTGB.h@ 2887

Last change on this file since 2887 was 2781, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MImgCleanTGB
2#define MARS_MImgCleanTGB
3
4#ifndef MARS_MGTask
5#include "MGTask.h"
6#endif
7
8class MGeomCam;
9class MSigmabar;
10class MCerPhotPix;
11class MCerPhotEvt;
12class MPedPhotCam;
13
14class MGGroupFrame;
15
16class MImgCleanTGB : public MGTask
17{
18public:
19 typedef enum {
20 kStandard,
21 kDemocratic
22 } CleaningMethod_t;
23
24private:
25 const MGeomCam *fCam; //!
26 MCerPhotEvt *fEvt; //!
27 MSigmabar *fSgb; //!
28 MPedPhotCam *fPed; //!
29
30 CleaningMethod_t fCleaningMethod;
31
32 Float_t fCleanLvl1;
33 Float_t fCleanLvl2;
34
35 UShort_t fCleanRings;
36
37 Float_t fInnerNoise; //!
38
39 void CreateGuiElements(MGGroupFrame *f);
40 void StreamPrimitive(ofstream &out) const;
41
42 Int_t CleanStep3b(MCerPhotPix &pix);
43 void CleanStep3(Int_t num1, Int_t num2);
44 void CleanStep3(Byte_t *nb, Int_t num1, Int_t num2);
45
46 Int_t PreProcess(MParList *pList);
47 Int_t Process();
48
49public:
50 MImgCleanTGB(const Float_t lvl1=3.0, const Float_t lvl2=2.5,
51 const char *name=NULL, const char *title=NULL);
52 void Print(Option_t *o="") const;
53
54 Float_t GetCleanLvl1() const { return fCleanLvl1; }
55 Float_t GetCleanLvl2() const { return fCleanLvl2; }
56 UShort_t GetCleanRings() const { return fCleanRings;}
57
58 void SetCleanRings(UShort_t r) { if(r==0) r=1; fCleanRings=r; }
59 void SetMethod(CleaningMethod_t m) { fCleaningMethod = m; }
60
61 Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2);
62
63 ClassDef(MImgCleanTGB, 2) // task doing the image cleaning
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.