Line | |
---|
1 | #ifndef MARS_MImgCleanStd
|
---|
2 | #define MARS_MImgCleanStd
|
---|
3 |
|
---|
4 | #ifndef MARS_MGTask
|
---|
5 | #include "MGTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MGeomCam;
|
---|
9 | class MSigmabar;
|
---|
10 | class MCerPhotPix;
|
---|
11 | class MCerPhotEvt;
|
---|
12 | class MPedestalCam;
|
---|
13 |
|
---|
14 | class MGGroupFrame;
|
---|
15 |
|
---|
16 | class MImgCleanStd : public MGTask
|
---|
17 | {
|
---|
18 | public:
|
---|
19 | typedef enum {
|
---|
20 | kStandard,
|
---|
21 | kDemocratic
|
---|
22 | } CleaningMethod_t;
|
---|
23 |
|
---|
24 | private:
|
---|
25 | const MGeomCam *fCam; //!
|
---|
26 | MCerPhotEvt *fEvt; //!
|
---|
27 | MSigmabar *fSgb; //!
|
---|
28 | MPedestalCam *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 | void CleanStep1Dem();
|
---|
43 | void CleanStep1Std();
|
---|
44 | Bool_t CleanStep3Dem(const MCerPhotPix &pix);
|
---|
45 | Bool_t CleanStep3Std(const MCerPhotPix &pix);
|
---|
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 |
|
---|
56 | public:
|
---|
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 |
|
---|
70 | ClassDef(MImgCleanStd, 2) // task doing the image cleaning
|
---|
71 | };
|
---|
72 |
|
---|
73 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.