source: trunk/MagicSoft/Mars/mfilter/MFSelStandard.h@ 3105

Last change on this file since 3105 was 2663, checked in by wittek, 21 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MFSelStandard
2#define MARS_MFSelStandard
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MFSelStandard //
7// //
8// Class to evaluate standard cuts //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MFilter
13#include "MFilter.h"
14#endif
15
16class MHillas;
17class MHillasSrc;
18class MNewImagePar;
19
20class MFSelStandard : public MFilter
21{
22private:
23 MHillas *fHil;
24 MHillasSrc *fHilSrc;
25 MNewImagePar *fNewImgPar;
26
27 TString fHilName;
28 TString fHilSrcName;
29 TString fImgParName;
30
31 Float_t fUsedPixelsMax;
32 Float_t fCorePixelsMin;
33 Float_t fSizeMin;
34 Float_t fDistMin;
35 Float_t fDistMax;
36 Float_t fLengthMin;
37 Float_t fWidthMin;
38
39 Double_t fMm2Deg; // conversion mm to degrees in camera
40
41 Int_t fCut[5];
42
43 Bool_t fResult;
44
45 Int_t PreProcess(MParList *pList);
46 Int_t Process();
47 Int_t PostProcess();
48
49 Bool_t IsExpressionTrue() const { return fResult; }
50
51 Bool_t Set(Int_t rc);
52
53public:
54 MFSelStandard(const char *HilSrcName="MHillasSrc",
55 const char *name=NULL, const char *title=NULL);
56
57 void SetHillasName(const char *name) { fHilName = name; }
58 void SetImgParName(const char *name) { fImgParName = name; }
59
60 void SetCuts(Float_t usedpixelsmax, Float_t corepixelsmin,
61 Float_t sizemin, Float_t distmin, Float_t distmax,
62 Float_t lengthmin, Float_t widthmin);
63
64 ClassDef(MFSelStandard, 0) // Class to evaluate standard cuts
65};
66
67#endif
68
69
70
71
72
73
74
75
76
77
78
Note: See TracBrowser for help on using the repository browser.