GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Protected Attributes | List of all members
TGo4FitDependency Class Reference

#include <TGo4FitDependency.h>

+ Inheritance diagram for TGo4FitDependency:

Public Member Functions

 TGo4FitDependency ()
 
 TGo4FitDependency (const char *iParameter, const char *iExpression)
 
 TGo4FitDependency (const char *iParameter, Double_t InitValue)
 
virtual ~TGo4FitDependency ()
 
void SetParameter (const char *iParameter)
 
void SetInitValue (Double_t InitValue)
 
void SetExpression (const char *iExpression)
 
const TString & GetParameter () const
 
const TString & GetExpression () const
 
Double_t GetInitValue () const
 
Bool_t IsResultDepend () const
 
Bool_t IsInitValue () const
 
void Initialize (Int_t iNumPar, const char *iFormula)
 
Double_t ExecuteDependency (Double_t *Params)
 
void Finalize ()
 
void Print (Option_t *option="") const override
 

Protected Attributes

TString fxParameter
 
TString fxExpression
 
Double_t fdInitValue {0.}
 
Int_t fiNumPar {0}
 
TFormula * fxFormula {nullptr}
 

Detailed Description

Object, used to store dependency of one parameter from other, calculated via expression. It used in dependencies calculations, in parameters initialization and in result calculation. Value can be calculated via expression or be just a double constant. The result parameter is sets via it's index in fitter parameters list.

Definition at line 28 of file TGo4FitDependency.h.

Constructor & Destructor Documentation

◆ TGo4FitDependency() [1/3]

TGo4FitDependency::TGo4FitDependency ( )

Definition at line 20 of file TGo4FitDependency.cxx.

◆ TGo4FitDependency() [2/3]

TGo4FitDependency::TGo4FitDependency ( const char *  iParameter,
const char *  iExpression 
)

Definition at line 25 of file TGo4FitDependency.cxx.

◆ TGo4FitDependency() [3/3]

TGo4FitDependency::TGo4FitDependency ( const char *  iParameter,
Double_t  InitValue 
)

Definition at line 29 of file TGo4FitDependency.cxx.

◆ ~TGo4FitDependency()

TGo4FitDependency::~TGo4FitDependency ( )
virtual

Definition at line 33 of file TGo4FitDependency.cxx.

References fxFormula.

Member Function Documentation

◆ ExecuteDependency()

Double_t TGo4FitDependency::ExecuteDependency ( Double_t *  Params)

Definition at line 63 of file TGo4FitDependency.cxx.

References fdInitValue, fiNumPar, and fxFormula.

Referenced by TGo4FitterAbstract::Finalize(), and IsInitValue().

◆ Finalize()

void TGo4FitDependency::Finalize ( )

Definition at line 70 of file TGo4FitDependency.cxx.

References fxFormula.

Referenced by TGo4FitterAbstract::FinalizeDependencies(), and IsInitValue().

◆ GetExpression()

const TString& TGo4FitDependency::GetExpression ( ) const
inline

◆ GetInitValue()

Double_t TGo4FitDependency::GetInitValue ( ) const
inline

Definition at line 41 of file TGo4FitDependency.h.

References fdInitValue.

Referenced by TGo4FitPanel::SetItemText().

◆ GetParameter()

const TString& TGo4FitDependency::GetParameter ( ) const
inline

◆ Initialize()

void TGo4FitDependency::Initialize ( Int_t  iNumPar,
const char *  iFormula 
)

Definition at line 52 of file TGo4FitDependency.cxx.

References fiNumPar, and fxFormula.

Referenced by TGo4FitterAbstract::InitializeDependencies(), and IsInitValue().

◆ IsInitValue()

Bool_t TGo4FitDependency::IsInitValue ( ) const
inline

Definition at line 44 of file TGo4FitDependency.h.

References ExecuteDependency(), Finalize(), fxExpression, Initialize(), and Print().

Referenced by TGo4FitPanel::SetItemText().

◆ IsResultDepend()

Bool_t TGo4FitDependency::IsResultDepend ( ) const
inline

Definition at line 43 of file TGo4FitDependency.h.

References fxParameter.

Referenced by TGo4FitPanel::SetItemText().

◆ Print()

void TGo4FitDependency::Print ( Option_t *  option = "") const
override

Definition at line 78 of file TGo4FitDependency.cxx.

References fdInitValue, fxExpression, and fxParameter.

Referenced by IsInitValue().

◆ SetExpression()

void TGo4FitDependency::SetExpression ( const char *  iExpression)

◆ SetInitValue()

void TGo4FitDependency::SetInitValue ( Double_t  InitValue)

◆ SetParameter()

void TGo4FitDependency::SetParameter ( const char *  iParameter)

Definition at line 37 of file TGo4FitDependency.cxx.

References fxParameter.

Referenced by QFitDependencyWidget::ParamEdit_textChanged().

Member Data Documentation

◆ fdInitValue

Double_t TGo4FitDependency::fdInitValue {0.}
protected

Definition at line 55 of file TGo4FitDependency.h.

Referenced by ExecuteDependency(), GetInitValue(), Print(), and SetInitValue().

◆ fiNumPar

Int_t TGo4FitDependency::fiNumPar {0}
protected

Definition at line 56 of file TGo4FitDependency.h.

Referenced by ExecuteDependency(), and Initialize().

◆ fxExpression

TString TGo4FitDependency::fxExpression
protected

Definition at line 54 of file TGo4FitDependency.h.

Referenced by GetExpression(), IsInitValue(), Print(), SetExpression(), and SetInitValue().

◆ fxFormula

TFormula* TGo4FitDependency::fxFormula {nullptr}
protected

Definition at line 57 of file TGo4FitDependency.h.

Referenced by ExecuteDependency(), Finalize(), Initialize(), and ~TGo4FitDependency().

◆ fxParameter

TString TGo4FitDependency::fxParameter
protected

Definition at line 53 of file TGo4FitDependency.h.

Referenced by GetParameter(), IsResultDepend(), Print(), and SetParameter().


The documentation for this class was generated from the following files: