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

Last change on this file since 4692 was 4586, checked in by hbartko, 20 years ago
*** empty log message ***
File size: 1.8 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 kScaled,
23 kDemocratic
24 } CleaningMethod_t;
25
26private:
27 const MGeomCam *fCam; //!
28 MCerPhotEvt *fEvt; //!
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 TString fNamePedPhotContainer; // name of the 'MPedPhotCam' container
41
42
43 void CreateGuiElements(MGGroupFrame *f);
44 void StreamPrimitive(ofstream &out) const;
45
46 void CleanStep3b(MCerPhotPix &pix);
47 void CleanStep4(UShort_t r, MCerPhotPix &pix);
48
49 void CleanStep1();
50 void CleanStep2();
51 void CleanStep3();
52
53 Int_t PreProcess(MParList *pList);
54 Int_t Process();
55
56public:
57 MImgCleanStd(const Float_t lvl1=3.0, const Float_t lvl2=2.5,
58 const char *name=NULL, const char *title=NULL);
59 void Print(Option_t *o="") const;
60
61 Float_t GetCleanLvl1() const { return fCleanLvl1; }
62 Float_t GetCleanLvl2() const { return fCleanLvl2; }
63 UShort_t GetCleanRings() const { return fCleanRings;}
64
65 void SetCleanRings(UShort_t r) { if(r==0) r=1; fCleanRings=r; }
66 void SetMethod(CleaningMethod_t m) { fCleaningMethod = m; }
67
68 Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2);
69 void SetNamePedPhotContainer(const char *name) { fNamePedPhotContainer = name; }
70
71 ClassDef(MImgCleanStd, 2) // task doing the image cleaning
72};
73
74#endif
Note: See TracBrowser for help on using the repository browser.