source: branches/removing_cpp11_features/mimage/MImgCleanSimple.h@ 18281

Last change on this file since 18281 was 14202, checked in by tbretz, 12 years ago
New simple image cleaning.
File size: 2.1 KB
Line 
1#ifndef MARS_MImgCleanSimple
2#define MARS_MImgCleanSimple
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MGeomCam;
9class MGeom;
10class MSignalCam;
11class MArrivalTime;
12
13class MImgCleanSimple : public MTask
14{
15public:
16 typedef enum {
17 kStandard,
18 kSum2,
19 kSum3,
20 } CleaningMethod_t;
21
22private:
23 static const TString gsNameGeomCam; // default name of the 'MGeomCam' container
24 static const TString gsNameSignalCam; // default name of the 'MSignalCam' container
25
26 const MGeomCam *fCam; //!
27 MSignalCam *fEvt; //!
28
29 CleaningMethod_t fCleaningMethod;
30
31 Float_t fCleanLvl1;
32 Float_t fCleanLvl2;
33
34 Float_t fTimeLvl1;
35 Float_t fTimeLvl2;
36
37 TString fNameGeomCam; // name of the 'MGeomCam' container
38 TString fNameSignalCam; // name of the 'MSignalCam' container
39
40 // MImgCleanSimple
41 void ResetCleaning() const;
42 void DoCleanStd() const;
43 void DoCleanSum2() const;
44 void DoCleanSum3() const;
45
46 // MGTask, MTask, MParContainer
47 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
48 //void StreamPrimitive(ostream &out) const;
49
50 Int_t PreProcess(MParList *pList);
51 Int_t Process();
52
53public:
54 MImgCleanSimple(const Float_t lvl1=2.0, const Float_t lvl2=1.75,
55 const char *name=NULL, const char *title=NULL);
56
57 void Print(Option_t *o="") const;
58
59 Float_t GetCleanLvl1() const { return fCleanLvl1; }
60 Float_t GetCleanLvl2() const { return fCleanLvl2; }
61 Float_t GetTimeLvl1() const { return fTimeLvl1; }
62 Float_t GetTimeLvl2() const { return fTimeLvl2; }
63
64 void SetCleanLvl1(Float_t lvl) { fCleanLvl1=lvl; }
65 void SetCleanLvl2(Float_t lvl) { fCleanLvl2=lvl; }
66 void SetTimeLvl1(Float_t lvl) { fTimeLvl1=lvl; }
67 void SetTimeLvl2(Float_t lvl) { fTimeLvl2=lvl; }
68
69 void SetMethod(CleaningMethod_t m) { fCleaningMethod = m; }
70
71 void SetNameSignalCam(const char *name) { fNameSignalCam = name; }
72 void SetNameGeomCam(const char *name) { fNameGeomCam = name; }
73
74 ClassDef(MImgCleanSimple, 1) // task doing the image cleaning
75};
76
77#endif
Note: See TracBrowser for help on using the repository browser.