| 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 MPedPhotCam;
|
|---|
| 13 | class MArrivalTime;
|
|---|
| 14 | class MCameraData;
|
|---|
| 15 |
|
|---|
| 16 | class MGGroupFrame;
|
|---|
| 17 |
|
|---|
| 18 | class MImgCleanStd : public MGTask
|
|---|
| 19 | {
|
|---|
| 20 | public:
|
|---|
| 21 | typedef enum {
|
|---|
| 22 | kStandard,
|
|---|
| 23 | kScaled,
|
|---|
| 24 | kDemocratic,
|
|---|
| 25 | kProbability,
|
|---|
| 26 | kAbsolute
|
|---|
| 27 | } CleaningMethod_t;
|
|---|
| 28 |
|
|---|
| 29 | private:
|
|---|
| 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 |
|
|---|
| 62 | public:
|
|---|
| 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
|
|---|