1 | #ifndef MARS_MImgCleanFAMOUS
|
---|
2 | #define MARS_MImgCleanFAMOUS
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MGeomCam;
|
---|
9 | class MGeom;
|
---|
10 | class MSignalCam;
|
---|
11 | class MArrivalTime;
|
---|
12 |
|
---|
13 | class MImgCleanFAMOUS : public MTask
|
---|
14 | {
|
---|
15 | private:
|
---|
16 | static const TString gsNameGeomCam; // default name of the 'MGeomCam' container
|
---|
17 | static const TString gsNameSignalCam; // default name of the 'MSignalCam' container
|
---|
18 |
|
---|
19 | const MGeomCam *fCam; //!
|
---|
20 | MSignalCam *fEvt; //!
|
---|
21 |
|
---|
22 | Float_t fSignalMin;
|
---|
23 | Float_t fSignalMax;
|
---|
24 | Float_t fTimeMin;
|
---|
25 | Float_t fTimeMax;
|
---|
26 | Float_t fSlopeMin;
|
---|
27 | Float_t fSlopeMax;
|
---|
28 | Float_t fTimeWindow;
|
---|
29 |
|
---|
30 | TString fNameGeomCam; // name of the 'MGeomCam' container
|
---|
31 | TString fNameSignalCam; // name of the 'MSignalCam' container
|
---|
32 |
|
---|
33 | // MImgCleanFAMOUS
|
---|
34 | void ResetCleaning() const;
|
---|
35 | void FindIsland(Int_t) const;
|
---|
36 | void DoCleaning() const;
|
---|
37 |
|
---|
38 | // MGTask, MTask, MParContainer
|
---|
39 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
|
---|
40 | //void StreamPrimitive(ostream &out) const;
|
---|
41 |
|
---|
42 | Int_t PreProcess(MParList *pList);
|
---|
43 | Int_t Process();
|
---|
44 |
|
---|
45 | public:
|
---|
46 | MImgCleanFAMOUS(const char *name=NULL, const char *title=NULL);
|
---|
47 |
|
---|
48 | void Print(Option_t *o="") const;
|
---|
49 |
|
---|
50 | void SetSignalMinMax(const Float_t &min, const Float_t &max) { fSignalMin=min; fSignalMax=max; }
|
---|
51 | void SetTimeMinMax(const Float_t &min, const Float_t &max) { fTimeMin=min; fTimeMax=max; }
|
---|
52 | void SetSlopeMinMax(const Float_t &min, const Float_t &max) { fSlopeMin=min; fSlopeMax=max; }
|
---|
53 | void SetTimeWindow(const Float_t &deltat) { fTimeWindow=deltat; }
|
---|
54 |
|
---|
55 | void SetNameSignalCam(const char *name) { fNameSignalCam = name; }
|
---|
56 | void SetNameGeomCam(const char *name) { fNameGeomCam = name; }
|
---|
57 |
|
---|
58 | ClassDef(MImgCleanFAMOUS, 1) // task doing the image cleaning
|
---|
59 | };
|
---|
60 |
|
---|
61 | #endif
|
---|