Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4Fit/TGo4FitDependency.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4FITDEPENDENCY_H
00017 #define TGO4FITDEPENDENCY_H
00018 #include "TObject.h"
00019 #include "TString.h"
00020 #include "TFormula.h"
00021 
00028 class TGo4FitDependency : public TObject {
00029    public:
00030       TGo4FitDependency();
00031       TGo4FitDependency(const char* iParameter, const char* iExpression);
00032       TGo4FitDependency(const char* iParameter, Double_t InitValue);
00033       virtual ~TGo4FitDependency();
00034 
00035       void SetParameter(const char* iParameter);
00036       void SetInitValue(Double_t InitValue);
00037       void SetExpression(const char* iExpression);
00038 
00039       const TString& GetParameter() { return fxParameter; }
00040       const TString& GetExpression() { return fxExpression; }
00041       Double_t GetInitValue() { return fdInitValue; }
00042 
00043       Bool_t IsResultDepend() { return fxParameter.Length()==0; }
00044       Bool_t IsInitValue() { return fxExpression.Length()==0; }
00045 
00046       void Initialize(Int_t iNumPar, const char* iFormula);
00047       Double_t Execute(Double_t* Params);
00048       void Finalize();
00049 
00050       virtual void Print(Option_t* option) const;
00051 
00052    protected:
00053       TString fxParameter;
00054       TString fxExpression;
00055       Double_t fdInitValue;
00056       Int_t fiNumPar;                  
00057       TFormula *fxFormula;             
00058 
00059    ClassDef(TGo4FitDependency,1)
00060 };
00061 #endif // TGO4FITDEPENDENCY_H
00062 
00063 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:56 2005 for Go4-v2.10-5 by doxygen1.2.15