Changeset 8704 for trunk/MagicSoft/Mars/mdata
- Timestamp:
- 08/24/07 09:37:31 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mdata
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataMember.cc
r8073 r8704 97 97 Double_t MDataMember::GetValue() const 98 98 { 99 if (!fObject) 100 { 101 *fLog << err << "ERROR - MDataMember::GetValue: fObject not initialized "; 102 *fLog << "(not PreProcessed)... returning 0." << endl; 103 return 0; 104 } 105 99 106 if (!fCall) 100 107 { … … 138 145 // the original statement "if (fCall)" is replaced by the statement 139 146 if (fCall && !fObject) 140 147 return kTRUE; 141 148 142 149 TString cname(fDataMember); -
trunk/MagicSoft/Mars/mdata/MDataPhrase.cc
r8635 r8704 469 469 // Evaluates and returns the result of the member list. 470 470 // 471 Double_t MDataPhrase:: GetValue() const471 Double_t MDataPhrase::Eval(const Double_t *x) const 472 472 { 473 473 const Int_t n = fMembers.GetEntriesFast(); … … 490 490 491 491 // Evaluate function 492 return fFormula->EvalPar( 0, arr);492 return fFormula->EvalPar(x, arr); 493 493 } 494 494 -
trunk/MagicSoft/Mars/mdata/MDataPhrase.h
r8635 r8704 46 46 Bool_t IsValid() const; 47 47 Bool_t HasValidRule() const { return fFormula ? kTRUE : kFALSE; } 48 Double_t GetValue() const; 48 Double_t GetValue() const { return Eval((Double_t*)NULL); } 49 Double_t Eval(const Double_t *x) const; 50 Double_t Eval(Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const 51 { 52 const Double_t xx[4] = { x, y, z, t }; 53 return Eval(xx); 54 } 49 55 TString GetRule() const; 50 56 TString GetRuleRaw() const;
Note:
See TracChangeset
for help on using the changeset viewer.