source: trunk/MagicSoft/Mars/mfilter/MFDataMember.h@ 1292

Last change on this file since 1292 was 1283, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MFDataMember
2#define MARS_MFDataMember
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MFDataMember //
7// //
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef MARS_MFilter
11#include "MFilter.h"
12#endif
13
14class MParList;
15class TMethodCall;
16
17class MFDataMember : public MFilter
18{
19private:
20 TString fDataMember; // Data member which should be used for the filter
21
22 MParContainer *fObject; // Object from which the value is retrieved
23 TMethodCall *fMethodCall; // Method call to the getter method of the requested value
24
25 typedef enum { kELowerThan, kEGreaterThan } FilterType_t;
26 FilterType_t fFilterType;
27
28 Bool_t fResult;
29 Double_t fValue;
30
31 void Init(const char type, const Int_t val,
32 const char *name, const char *title);
33
34public:
35 MFDataMember(const char *member, const char type, const Double_t deg,
36 const char *name=NULL, const char *title=NULL);
37
38 Bool_t IsExpressionTrue() const { return fResult; }
39 Bool_t PreProcess(MParList *pList);
40 Bool_t Process();
41
42 void Print(Option_t *opt = "") const;
43
44 ClassDef(MFDataMember, 0) // A Filter for cuts in any data member
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.