TGo4FitDependency.h

Go to the documentation of this file.
00001 // $Id: TGo4FitDependency.h 478 2009-10-29 12:26:09Z linev $
00002 //-----------------------------------------------------------------------
00003 //       The GSI Online Offline Object Oriented (Go4) Project
00004 //         Experiment Data Processing at EE department, GSI
00005 //-----------------------------------------------------------------------
00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
00007 //                     Planckstr. 1, 64291 Darmstadt, Germany
00008 // Contact:            http://go4.gsi.de
00009 //-----------------------------------------------------------------------
00010 // This software can be used under the license agreements as stated
00011 // in Go4License.txt file which is part of the distribution.
00012 //-----------------------------------------------------------------------
00013 
00014 #ifndef TGO4FITDEPENDENCY_H
00015 #define TGO4FITDEPENDENCY_H
00016 
00017 #include "TObject.h"
00018 #include "TString.h"
00019 
00020 class TFormula;
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 ExecuteDependency(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

Generated on Thu Oct 28 15:54:12 2010 for Go4-Fitpackagev4.04-2 by  doxygen 1.5.1