| Line | |
|---|
| 1 | #ifndef MARS_MDataChain
|
|---|
| 2 | #define MARS_MDataChain
|
|---|
| 3 |
|
|---|
| 4 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MDataList //
|
|---|
| 7 | // //
|
|---|
| 8 | // List of several filters //
|
|---|
| 9 | // //
|
|---|
| 10 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MARS_MData
|
|---|
| 13 | #include "MData.h"
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | class MDataChain : public MData
|
|---|
| 17 | {
|
|---|
| 18 | private:
|
|---|
| 19 | MData *fMember; // Filter
|
|---|
| 20 |
|
|---|
| 21 | typedef enum {
|
|---|
| 22 | kENoop,
|
|---|
| 23 | kELog10,
|
|---|
| 24 | kELog,
|
|---|
| 25 | kEAbs,
|
|---|
| 26 | kESin,
|
|---|
| 27 | kECos,
|
|---|
| 28 | kETan,
|
|---|
| 29 | kESinH,
|
|---|
| 30 | kECosH,
|
|---|
| 31 | kETanH,
|
|---|
| 32 | kEASin,
|
|---|
| 33 | kEACos,
|
|---|
| 34 | kEATan,
|
|---|
| 35 | kESqrt,
|
|---|
| 36 | kESqr,
|
|---|
| 37 | kEPow10,
|
|---|
| 38 | kEExp,
|
|---|
| 39 | kESgn,
|
|---|
| 40 | kEPositive,
|
|---|
| 41 | kENegative,
|
|---|
| 42 | kEFloor
|
|---|
| 43 | } OperatorType_t;
|
|---|
| 44 |
|
|---|
| 45 | OperatorType_t fOperatorType;
|
|---|
| 46 |
|
|---|
| 47 | OperatorType_t ParseOperator(TString txt) const;
|
|---|
| 48 |
|
|---|
| 49 | Int_t IsAlNum(TString txt);
|
|---|
| 50 | Int_t GetBracket(TString txt, char open, char close);
|
|---|
| 51 |
|
|---|
| 52 | MData *ParseString(TString txt, Int_t level);
|
|---|
| 53 |
|
|---|
| 54 | MDataChain(const char *rule, OperatorType_t op);
|
|---|
| 55 |
|
|---|
| 56 | public:
|
|---|
| 57 | MDataChain();
|
|---|
| 58 | MDataChain(const char *rule, const char *name=NULL, const char *title=NULL);
|
|---|
| 59 | ~MDataChain();
|
|---|
| 60 |
|
|---|
| 61 | Double_t GetValue() const;
|
|---|
| 62 | Bool_t PreProcess(const MParList *plist);
|
|---|
| 63 |
|
|---|
| 64 | Bool_t IsValid() const { return fMember ? kTRUE : kFALSE; }
|
|---|
| 65 | Bool_t IsReadyToSave() const;
|
|---|
| 66 |
|
|---|
| 67 | // void Print(Option_t *opt = "") const;
|
|---|
| 68 |
|
|---|
| 69 | TString GetRule() const;
|
|---|
| 70 | TString GetDataMember() const;
|
|---|
| 71 |
|
|---|
| 72 | ClassDef(MDataChain, 1) // A chain/concatenation of MData objects
|
|---|
| 73 | };
|
|---|
| 74 |
|
|---|
| 75 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.