source: branches/Corsika7405Compatibility/mfbase/MFDataMember.h@ 18752

Last change on this file since 18752 was 14448, checked in by tbretz, 12 years ago
Added some missing std::
File size: 1.0 KB
Line 
1#ifndef MARS_MFDataMember
2#define MARS_MFDataMember
3
4#ifndef MARS_MFilter
5#include "MFilter.h"
6#endif
7#ifndef MARS_MDataMember
8#include "MDataMember.h"
9#endif
10
11class MParList;
12
13class MFDataMember : public MFilter
14{
15private:
16 MDataMember fData;
17
18 typedef enum { kELowerThan, kEGreaterThan, kEEqual } FilterType_t;
19 FilterType_t fFilterType;
20
21 Bool_t fResult; //!
22 Double_t fValue;
23
24 void StreamPrimitive(std::ostream &out) const;
25
26 Int_t PreProcess(MParList *pList);
27 Int_t Process();
28
29public:
30 enum {
31 kIsInt = BIT(14)
32 };
33 MFDataMember(const char *member, const char type, const Double_t val,
34 const char *name=NULL, const char *title=NULL);
35
36 Bool_t IsExpressionTrue() const { return fResult; }
37
38 void Print(Option_t *opt = "") const;
39
40 TString GetRule() const;
41 TString GetDataMember() const;
42
43 void SetVariables(const TArrayD &arr) { fData.SetVariables(arr); }
44
45 ClassDef(MFDataMember, 1) // A Filter for cuts in any data member
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.