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

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