source: trunk/MagicSoft/Mars/mfilter/MFAlpha.h@ 4795

Last change on this file since 4795 was 2206, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MFAlpha
2#define MARS_MFAlpha
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MFAlpha //
7// //
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef MARS_MFilter
11#include "MFilter.h"
12#endif
13
14class MParList;
15class MHillasSrc;
16
17class MFAlpha : public MFilter
18{
19private:
20 MHillasSrc *fHillas;
21 TString fContName;
22
23 typedef enum { kELowerThan, kEGreaterThan } FilterType_t;
24 FilterType_t fFilterType;
25
26 Bool_t fResult; //!
27 Float_t fValue; // [deg]
28
29 void Init(const char type, const Float_t val,
30 const char *name, const char *title);
31
32 void StreamPrimitive(ofstream &out) const;
33
34 Int_t PreProcess(MParList *pList);
35 Int_t Process();
36
37public:
38 MFAlpha(const char *cname="MHillas", const char type='>', const Float_t deg=15,
39 const char *name=NULL, const char *title=NULL);
40 MFAlpha(MHillasSrc *hillas, const char type='>', const Float_t deg=15,
41 const char *name=NULL, const char *title=NULL);
42
43 Bool_t IsExpressionTrue() const { return fResult; }
44
45 ClassDef(MFAlpha, 1) // A Filter for cuts in fabs(alpha)
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.