source: trunk/MagicSoft/Mars/mfilter/MFDataChain.h@ 1969

Last change on this file since 1969 was 1661, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MFDataChain
2#define MARS_MFDataChain
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MFDataChain //
7// //
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef MARS_MFilter
11#include "MFilter.h"
12#endif
13#ifndef MARS_MDataChain
14#include "MDataChain.h"
15#endif
16
17class MParList;
18
19class MFDataChain : public MFilter
20{
21private:
22 MDataChain fData;
23
24 typedef enum { kELowerThan, kEGreaterThan } FilterType_t;
25 FilterType_t fFilterType;
26
27 Bool_t fResult; //!
28 Double_t fValue;
29
30 void StreamPrimitive(ofstream &out) const;
31
32public:
33 MFDataChain(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 Bool_t PreProcess(MParList *pList);
38 Bool_t Process();
39
40 void Print(Option_t *opt = "") const;
41 TString GetRule() const;
42
43 ClassDef(MFDataChain, 1) // A Filter for cuts in any data member
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.