source: trunk/Mars/mimage/MImgCleanFAMOUS.h@ 20096

Last change on this file since 20096 was 19969, checked in by tbretz, 4 years ago
Added new cleaning method as introduced by M. Schaufen and J. Audehm for HAWC's Eye.
File size: 1.8 KB
Line 
1#ifndef MARS_MImgCleanFAMOUS
2#define MARS_MImgCleanFAMOUS
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MGeomCam;
9class MGeom;
10class MSignalCam;
11class MArrivalTime;
12
13class MImgCleanFAMOUS : public MTask
14{
15private:
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
45public:
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
Note: See TracBrowser for help on using the repository browser.