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

Last change on this file since 5137 was 4838, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.0 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 MArrivalTime;
14class MCameraData;
15
16class MGGroupFrame;
17
18class MImgCleanStd : public MGTask
19{
20public:
21 typedef enum {
22 kStandard,
23 kScaled,
24 kDemocratic,
25 kProbability,
26 kAbsolute
27 } CleaningMethod_t;
28
29private:
30 static const TString gsNamePedPhotCam; // default name of the 'MPedPhotCam' container
31
32 const MGeomCam *fCam; //!
33 MCerPhotEvt *fEvt; //!
34 MPedPhotCam *fPed; //!
35 MArrivalTime *fTime; //!
36 MCameraData *fData; //!
37
38 CleaningMethod_t fCleaningMethod;
39
40 Float_t fCleanLvl1;
41 Float_t fCleanLvl2;
42
43 UShort_t fCleanRings;
44
45 TString fNamePedPhotCam; // name of the 'MPedPhotCam' container
46
47
48 void CreateGuiElements(MGGroupFrame *f);
49 void StreamPrimitive(ofstream &out) const;
50 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
51
52 void CleanStep3b(MCerPhotPix &pix);
53 void CleanStep4(UShort_t r, MCerPhotPix &pix);
54
55 void CleanStep1();
56 void CleanStep2();
57 void CleanStep3();
58
59 Int_t PreProcess(MParList *pList);
60 Int_t Process();
61
62public:
63 MImgCleanStd(const Float_t lvl1=3.0, const Float_t lvl2=2.5,
64 const char *name=NULL, const char *title=NULL);
65 void Print(Option_t *o="") const;
66
67 Float_t GetCleanLvl1() const { return fCleanLvl1; }
68 Float_t GetCleanLvl2() const { return fCleanLvl2; }
69 UShort_t GetCleanRings() const { return fCleanRings;}
70
71 void SetCleanRings(UShort_t r) { if(r==0) r=1; fCleanRings=r; }
72 void SetMethod(CleaningMethod_t m) { fCleaningMethod = m; }
73
74 Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2);
75 void SetNamePedPhotCam(const char *name) { fNamePedPhotCam = name; }
76
77 ClassDef(MImgCleanStd, 2) // task doing the image cleaning
78};
79
80#endif
Note: See TracBrowser for help on using the repository browser.