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

#include <TGo4FitParameter.h>

+ Inheritance diagram for TGo4FitParameter:

Public Member Functions

 TGo4FitParameter ()
 
 TGo4FitParameter (const char *name, const char *title, Double_t iValue)
 
 TGo4FitParameter (const char *name, const char *title, Double_t iValue, Double_t iRangeMin, Double_t iRangeMax)
 
 TGo4FitParameter (const char *name, const char *title, Double_t iValue, Double_t iEpsilon)
 
 TGo4FitParameter (const char *name, const char *title, Double_t iValue, Double_t iRangeMin, Double_t iRangeMax, Double_t iEpsilon)
 
virtual ~TGo4FitParameter ()
 
Double_t GetValue () const
 
void SetValue (Double_t iValue)
 
Double_t GetError () const
 
void SetError (Double_t iError)
 
Bool_t GetFixed () const
 
void SetFixed (Bool_t iFixed)
 
void SetBlocked ()
 
void ClearBlocked ()
 
Bool_t GetEpsilon (Double_t &eps) const
 
void SetEpsilon (Double_t iEpsilon)
 
void SetEpsilonUse (Bool_t use)
 
void ChangeEpsilon (Double_t iEpsilon)
 
void ClearEpsilon ()
 
Bool_t GetRange (Double_t &min, Double_t &max) const
 
void SetRange (Double_t iRangeMin, Double_t iRangeMax)
 
void SetRangeUse (Bool_t use)
 
void ChangeRangeMin (Double_t iRangeMin)
 
void ChangeRangeMax (Double_t iRangeMax)
 
Double_t GetRangeMin () const
 
Double_t GetRangeMax () const
 
void ClearRange ()
 
void MemorizeValue ()
 
void RememberValue ()
 
void Print (Option_t *option="") const override
 
- Public Member Functions inherited from TGo4FitNamed
 TGo4FitNamed ()
 
 TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=nullptr)
 
virtual ~TGo4FitNamed ()
 
const char * GetFullName ()
 
const char * GetOwnerFullName ()
 
void SetOwner (TNamed *iOwner)
 
TNamed * GetOwner ()
 
void Print (Option_t *option="") const override
 

Protected Member Functions

void Reset ()
 

Protected Attributes

Double_t fdValue {0.}
 
Double_t fdError {0.}
 
Bool_t fbFixed {kFALSE}
 
Bool_t fbEpsilon {kFALSE}
 
Double_t fdEpsilon {0.}
 
Bool_t fbRange {kFALSE}
 
Double_t fdRangeMin {0.}
 
Double_t fdRangeMax {0.}
 

Private Attributes

Bool_t fbBlocked {kFALSE}
 
Double_t fdRememberedValue {0.}
 

Detailed Description

Model and data objects parameter. Has value, error, range and epsilon attributes. From TGo4FitNamed class obtains full name, which consist of owner name (name of data object or model component) and name of parameter like "Gauss1.Width".

Definition at line 24 of file TGo4FitParameter.h.

Constructor & Destructor Documentation

◆ TGo4FitParameter() [1/5]

TGo4FitParameter::TGo4FitParameter ( )

Default constructor.

Definition at line 18 of file TGo4FitParameter.cxx.

References Reset().

◆ TGo4FitParameter() [2/5]

TGo4FitParameter::TGo4FitParameter ( const char *  name,
const char *  title,
Double_t  iValue 
)

Create TGo4FitParameter object with given name, title and initial value.

Definition at line 22 of file TGo4FitParameter.cxx.

References fdValue, and Reset().

◆ TGo4FitParameter() [3/5]

TGo4FitParameter::TGo4FitParameter ( const char *  name,
const char *  title,
Double_t  iValue,
Double_t  iRangeMin,
Double_t  iRangeMax 
)

Create TGo4FitParameter object with given name, title, initial value and given range limits.

Definition at line 27 of file TGo4FitParameter.cxx.

References fdValue, Reset(), and SetRange().

◆ TGo4FitParameter() [4/5]

TGo4FitParameter::TGo4FitParameter ( const char *  name,
const char *  title,
Double_t  iValue,
Double_t  iEpsilon 
)

Create TGo4FitParameter object with given name, title, initial value and given epsilon.

Definition at line 33 of file TGo4FitParameter.cxx.

References fdValue, Reset(), and SetEpsilon().

◆ TGo4FitParameter() [5/5]

TGo4FitParameter::TGo4FitParameter ( const char *  name,
const char *  title,
Double_t  iValue,
Double_t  iRangeMin,
Double_t  iRangeMax,
Double_t  iEpsilon 
)

Create TGo4FitParameter object with given name, title, initial value, given range and epsilon.

Definition at line 39 of file TGo4FitParameter.cxx.

References fdValue, Reset(), SetEpsilon(), and SetRange().

◆ ~TGo4FitParameter()

TGo4FitParameter::~TGo4FitParameter ( )
virtual

Destroy TGo4FitParameter object.

Definition at line 55 of file TGo4FitParameter.cxx.

Member Function Documentation

◆ ChangeEpsilon()

void TGo4FitParameter::ChangeEpsilon ( Double_t  iEpsilon)
inline

Change epsilon value. This is not affect on status of epsilon - if epsilon was not specified before, GetEpsilon() method still return kFALSE. Method should not used in normal program. Designed for usage in GUI.

Definition at line 121 of file TGo4FitParameter.h.

References fdEpsilon.

Referenced by QFitParWidget::EpsilonEdt_textChanged().

◆ ChangeRangeMax()

void TGo4FitParameter::ChangeRangeMax ( Double_t  iRangeMax)
inline

Change value of range maximum.

Definition at line 154 of file TGo4FitParameter.h.

References fbRange, and fdRangeMax.

Referenced by QFitParWidget::RangeMaxEdt_textChanged().

◆ ChangeRangeMin()

void TGo4FitParameter::ChangeRangeMin ( Double_t  iRangeMin)
inline

Change value of range minimum.

Definition at line 149 of file TGo4FitParameter.h.

References fbRange, and fdRangeMin.

Referenced by QFitParWidget::RangeMinEdt_textChanged().

◆ ClearBlocked()

void TGo4FitParameter::ClearBlocked ( )
inline

Release blocking of parameter.

Definition at line 97 of file TGo4FitParameter.h.

References fbBlocked.

Referenced by TGo4FitParsList::ClearParsBlocking().

◆ ClearEpsilon()

void TGo4FitParameter::ClearEpsilon ( )
inline

Set status, what epsilon is not specified. Not affect on epsilon value, therefore after SetEpsilonUse(kTRUE) GetEpsilon() method return old epsilon value.

Definition at line 127 of file TGo4FitParameter.h.

References fbEpsilon.

◆ ClearRange()

void TGo4FitParameter::ClearRange ( )
inline

Clear status, that range was specified. Equivalent to SetRangeUse(kFALSE).

Definition at line 170 of file TGo4FitParameter.h.

References fbRange, fdRangeMax, and fdRangeMin.

Referenced by TGo4FitPanel::ParsTableChanged().

◆ GetEpsilon()

Bool_t TGo4FitParameter::GetEpsilon ( Double_t &  eps) const
inline

Return value of parameter epsilon. If epsilon was not specified (by default), return kFALSE. Epsilon means minimum step of parameter value, which can be used during minimization process.

Definition at line 104 of file TGo4FitParameter.h.

References fbEpsilon, and fdEpsilon.

Referenced by TGo4FitPanel::FillParsTable(), QFitParWidget::FillSpecificData(), and TGo4FitParsList::GetParEpsilon().

◆ GetError()

Double_t TGo4FitParameter::GetError ( ) const
inline

◆ GetFixed()

Bool_t TGo4FitParameter::GetFixed ( ) const
inline

◆ GetRange()

Bool_t TGo4FitParameter::GetRange ( Double_t &  min,
Double_t &  max 
) const
inline

Return range left (minimum) and right (maximum) values. If range was not specified before, return kFALSE.

Definition at line 133 of file TGo4FitParameter.h.

References fbRange, fdRangeMax, fdRangeMin, and SetRange().

Referenced by TGo4FitPanel::FillParsTable(), QFitParWidget::FillSpecificData(), and TGo4FitPanel::ParsTableChanged().

◆ GetRangeMax()

Double_t TGo4FitParameter::GetRangeMax ( ) const
inline

Return value of range maximum.

Definition at line 164 of file TGo4FitParameter.h.

References fdRangeMax.

◆ GetRangeMin()

Double_t TGo4FitParameter::GetRangeMin ( ) const
inline

Return value of range minimum.

Definition at line 159 of file TGo4FitParameter.h.

References fdRangeMin.

◆ GetValue()

Double_t TGo4FitParameter::GetValue ( ) const
inline

◆ MemorizeValue()

void TGo4FitParameter::MemorizeValue ( )
inline

Memorize value of parameter.

Definition at line 175 of file TGo4FitParameter.h.

References fdRememberedValue, and fdValue.

Referenced by TGo4FitPanel::Cmd_MemorizePar(), and TGo4FitParsList::MemorizePars().

◆ Print()

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

Print TGo4FitParameter object to standard output.

Definition at line 58 of file TGo4FitParameter.cxx.

References fbEpsilon, fbRange, fdEpsilon, fdError, fdRangeMax, fdRangeMin, fdValue, GetFixed(), and TGo4FitNamed::GetFullName().

Referenced by TGo4FitParsList::Print(), and RememberValue().

◆ RememberValue()

void TGo4FitParameter::RememberValue ( )
inline

Restore value, which was previously memorized.

Definition at line 180 of file TGo4FitParameter.h.

References fdRememberedValue, fdValue, Print(), and Reset().

Referenced by TGo4FitPanel::Cmd_RememberPar(), and TGo4FitParsList::RememberPars().

◆ Reset()

void TGo4FitParameter::Reset ( )
protected

◆ SetBlocked()

void TGo4FitParameter::SetBlocked ( )
inline

Blocks parameter value. This means, that parameter can not be changed during minimization routine. If parameter block, GetFixed() method returns kTRUE value. This method is used by fitter, when parameter not fixed, but for it dependency calculation is created. Thus, it can not be changed directly by minimization routine, but changing by fitter itself.

Definition at line 92 of file TGo4FitParameter.h.

References fbBlocked.

Referenced by TGo4FitterAbstract::InitializeDependencies().

◆ SetEpsilon()

void TGo4FitParameter::SetEpsilon ( Double_t  iEpsilon)
inline

◆ SetEpsilonUse()

void TGo4FitParameter::SetEpsilonUse ( Bool_t  use)
inline

Set status, if epsilon value was specified or not. Did not change epsilon value itself. Designed for usage in GUI.

Definition at line 115 of file TGo4FitParameter.h.

References fbEpsilon.

Referenced by QFitParWidget::EpsilonChk_toggled(), and QFitParCfgWidget::EpsilonEdit_textChanged().

◆ SetError()

void TGo4FitParameter::SetError ( Double_t  iError)
inline

Set value of parameter error.

Definition at line 75 of file TGo4FitParameter.h.

References fdError.

Referenced by QFitParWidget::ErrorEdt_textChanged(), TGo4FitPanel::ParsTableChanged(), and TGo4FitComponent::SetAmplError().

◆ SetFixed()

void TGo4FitParameter::SetFixed ( Bool_t  iFixed)
inline

◆ SetRange()

void TGo4FitParameter::SetRange ( Double_t  iRangeMin,
Double_t  iRangeMax 
)

◆ SetRangeUse()

void TGo4FitParameter::SetRangeUse ( Bool_t  use)
inline

Change status, is range was specified or not. Not change range values themself. Designed for usage in GUI.

Definition at line 144 of file TGo4FitParameter.h.

References fbRange.

Referenced by QFitParCfgWidget::AnalyzeRangeValues(), and QFitParWidget::RangeChk_toggled().

◆ SetValue()

void TGo4FitParameter::SetValue ( Double_t  iValue)
inline

Member Data Documentation

◆ fbBlocked

Bool_t TGo4FitParameter::fbBlocked {kFALSE}
private

Definition at line 202 of file TGo4FitParameter.h.

Referenced by ClearBlocked(), GetFixed(), Reset(), and SetBlocked().

◆ fbEpsilon

Bool_t TGo4FitParameter::fbEpsilon {kFALSE}
protected

Definition at line 194 of file TGo4FitParameter.h.

Referenced by ClearEpsilon(), GetEpsilon(), Print(), Reset(), SetEpsilon(), and SetEpsilonUse().

◆ fbFixed

Bool_t TGo4FitParameter::fbFixed {kFALSE}
protected

Definition at line 192 of file TGo4FitParameter.h.

Referenced by GetFixed(), Reset(), SetFixed(), and SetRange().

◆ fbRange

Bool_t TGo4FitParameter::fbRange {kFALSE}
protected

◆ fdEpsilon

Double_t TGo4FitParameter::fdEpsilon {0.}
protected

Definition at line 195 of file TGo4FitParameter.h.

Referenced by ChangeEpsilon(), GetEpsilon(), Print(), Reset(), and SetEpsilon().

◆ fdError

Double_t TGo4FitParameter::fdError {0.}
protected

Definition at line 191 of file TGo4FitParameter.h.

Referenced by GetError(), Print(), Reset(), and SetError().

◆ fdRangeMax

Double_t TGo4FitParameter::fdRangeMax {0.}
protected

◆ fdRangeMin

Double_t TGo4FitParameter::fdRangeMin {0.}
protected

◆ fdRememberedValue

Double_t TGo4FitParameter::fdRememberedValue {0.}
private

Definition at line 203 of file TGo4FitParameter.h.

Referenced by MemorizeValue(), RememberValue(), and Reset().

◆ fdValue

Double_t TGo4FitParameter::fdValue {0.}
protected

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