GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Model and data objects parameter. More...
#include <TGo4FitParameter.h>
Public Member Functions | |
TGo4FitParameter () | |
Default constructor. | |
TGo4FitParameter (const char *name, const char *title, Double_t iValue) | |
Create TGo4FitParameter object with given name, title and initial value. | |
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. | |
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. | |
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. | |
virtual | ~TGo4FitParameter () |
Destroy TGo4FitParameter object. | |
void | ChangeEpsilon (Double_t iEpsilon) |
Change epsilon value. | |
void | ChangeRangeMax (Double_t iRangeMax) |
Change value of range maximum. | |
void | ChangeRangeMin (Double_t iRangeMin) |
Change value of range minimum. | |
void | ClearBlocked () |
Release blocking of parameter. | |
void | ClearEpsilon () |
Set status, what epsilon is not specified. | |
void | ClearRange () |
Clear status, that range was specified. | |
Bool_t | GetEpsilon (Double_t &eps) const |
Return value of parameter epsilon. | |
Double_t | GetError () const |
Get value of parameter error. | |
Bool_t | GetFixed () const |
Return status, if parameter fixed or not. | |
Bool_t | GetRange (Double_t &min, Double_t &max) const |
Return range left (minimum) and right (maximum) values. | |
Double_t | GetRangeMax () const |
Return value of range maximum. | |
Double_t | GetRangeMin () const |
Return value of range minimum. | |
Double_t | GetValue () const |
Return parameter value. | |
void | MemorizeValue () |
Memorize value of parameter. | |
void | Print (Option_t *option="") const override |
Print TGo4FitParameter object to standard output. | |
void | RememberValue () |
Restore value, which was previously memorized. | |
void | SetBlocked () |
Blocks parameter value. | |
void | SetEpsilon (Double_t iEpsilon) |
Return epsilon value of parameter. | |
void | SetEpsilonUse (Bool_t use) |
Set status, if epsilon value was specified or not. | |
void | SetError (Double_t iError) |
Set value of parameter error. | |
void | SetFixed (Bool_t iFixed) |
Set status of parameter fixed or not. | |
void | SetRange (Double_t iRangeMin, Double_t iRangeMax) |
Set range minimum and maximum values. | |
void | SetRangeUse (Bool_t use) |
Change status, is range was specified or not. | |
void | SetValue (Double_t iValue) |
Set parameter value. | |
![]() | |
TGo4FitNamed () | |
Default constructor. | |
TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=nullptr) | |
Creates TGo4FitNamed object and set name and title. | |
virtual | ~TGo4FitNamed () |
Destroy TGo4FitNamed object. | |
const char * | GetFullName () |
Returns full name of object. | |
TNamed * | GetOwner () |
Return owner of object. | |
const char * | GetOwnerFullName () |
Return full name of owner. | |
void | Print (Option_t *option="") const override |
void | SetOwner (TNamed *iOwner) |
Sets owner of object. | |
Protected Member Functions | |
void | Reset () |
Protected Attributes | |
Bool_t | fbEpsilon {kFALSE} |
Bool_t | fbFixed {kFALSE} |
Bool_t | fbRange {kFALSE} |
Double_t | fdEpsilon {0.} |
Double_t | fdError {0.} |
Double_t | fdRangeMax {0.} |
Double_t | fdRangeMin {0.} |
Double_t | fdValue {0.} |
Private Attributes | |
Bool_t | fbBlocked {kFALSE} |
Double_t | fdRememberedValue {0.} |
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 25 of file TGo4FitParameter.h.
TGo4FitParameter::TGo4FitParameter | ( | ) |
Default constructor.
Definition at line 18 of file TGo4FitParameter.cxx.
References TGo4FitNamed::TGo4FitNamed(), and Reset().
Referenced by Print().
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 TGo4FitNamed::TGo4FitNamed(), fdValue, and Reset().
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 TGo4FitNamed::TGo4FitNamed(), fdValue, Reset(), and SetRange().
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 TGo4FitNamed::TGo4FitNamed(), fdValue, Reset(), and SetEpsilon().
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 TGo4FitNamed::TGo4FitNamed(), fdValue, Reset(), SetEpsilon(), and SetRange().
|
virtual |
Destroy TGo4FitParameter object.
Definition at line 55 of file TGo4FitParameter.cxx.
|
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 122 of file TGo4FitParameter.h.
References fdEpsilon.
Referenced by QFitParWidget::EpsilonEdt_textChanged().
|
inline |
Change value of range maximum.
Definition at line 155 of file TGo4FitParameter.h.
References fbRange, and fdRangeMax.
Referenced by QFitParWidget::RangeMaxEdt_textChanged().
|
inline |
Change value of range minimum.
Definition at line 150 of file TGo4FitParameter.h.
References fbRange, and fdRangeMin.
Referenced by QFitParWidget::RangeMinEdt_textChanged().
|
inline |
Release blocking of parameter.
Definition at line 98 of file TGo4FitParameter.h.
References fbBlocked.
Referenced by TGo4FitParsList::ClearParsBlocking().
|
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 128 of file TGo4FitParameter.h.
References fbEpsilon.
|
inline |
Clear status, that range was specified.
Equivalent to SetRangeUse(kFALSE).
Definition at line 171 of file TGo4FitParameter.h.
References fbRange, fdRangeMax, and fdRangeMin.
Referenced by TGo4FitPanel::ParsTableChanged().
|
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 105 of file TGo4FitParameter.h.
References fbEpsilon, and fdEpsilon.
Referenced by TGo4FitPanel::FillParsTable(), QFitParWidget::FillSpecificData(), and TGo4FitParsList::GetParEpsilon().
|
inline |
Get value of parameter error.
Definition at line 71 of file TGo4FitParameter.h.
References fdError.
Referenced by TGo4FitPanel::FillParsTable(), QFitParWidget::FillSpecificData(), TGo4FitComponent::GetAmplError(), and TGo4FitParsList::GetParError().
|
inline |
Return status, if parameter fixed or not.
Definition at line 81 of file TGo4FitParameter.h.
References fbBlocked, and fbFixed.
Referenced by TGo4FitAmplEstimation::CalculateWithBuffers(), TGo4FitAmplEstimation::CalculateWithIterators(), TGo4FitPanel::FillParsTable(), QFitParWidget::FillSpecificData(), TGo4FitPanel::ParsTableChanged(), and Print().
|
inline |
Return range left (minimum) and right (maximum) values.
If range was not specified before, return kFALSE.
Definition at line 134 of file TGo4FitParameter.h.
References fbRange, fdRangeMax, and fdRangeMin.
Referenced by TGo4FitPanel::FillParsTable(), QFitParWidget::FillSpecificData(), and TGo4FitPanel::ParsTableChanged().
|
inline |
Return value of range maximum.
Definition at line 165 of file TGo4FitParameter.h.
References fdRangeMax.
|
inline |
Return value of range minimum.
Definition at line 160 of file TGo4FitParameter.h.
References fdRangeMin.
|
inline |
Return parameter value.
Definition at line 61 of file TGo4FitParameter.h.
References fdValue.
Referenced by TGo4FitModelGauss1::BeforeEval(), TGo4FitModelGauss2::BeforeEval(), TGo4FitPanel::Button_FitterDraw(), TGo4FitterAbstract::CopyParsValuesFrom(), TGo4FitModelGaussN::FillMuVector(), TGo4FitPanel::FillParsTable(), TGo4FitModelGaussN::FillSigmaMatrix(), QFitParWidget::FillSpecificData(), TGo4FitComponent::GetAmplValue(), TGo4FitLinearTrans::GetCoefB(), TGo4FitLinearTrans::GetCoefK(), TGo4FitParsList::GetParsValues(), TGo4FitModelPolynom::GetPolynomOrder(), TGo4FitModel::GetPosition(), TGo4FitModel::GetWidth(), TGo4FitModelGauss1::Integral(), TGo4FitPanel::ParsTableChanged(), TGo4FitPanel::SetItemText(), and TGo4FitMatrixTrans::Transformation().
|
inline |
Memorize value of parameter.
Definition at line 176 of file TGo4FitParameter.h.
References fdRememberedValue, and fdValue.
Referenced by TGo4FitPanel::Cmd_MemorizePar(), and TGo4FitParsList::MemorizePars().
|
override |
Print TGo4FitParameter object to standard output.
Definition at line 58 of file TGo4FitParameter.cxx.
References TGo4FitParameter(), fbEpsilon, fbRange, fdEpsilon, fdError, fdRangeMax, fdRangeMin, fdValue, GetFixed(), and TGo4FitNamed::GetFullName().
Referenced by TGo4FitParsList::Print().
|
inline |
Restore value, which was previously memorized.
Definition at line 181 of file TGo4FitParameter.h.
References fdRememberedValue, and fdValue.
Referenced by TGo4FitPanel::Cmd_RememberPar(), and TGo4FitParsList::RememberPars().
|
protected |
Definition at line 68 of file TGo4FitParameter.cxx.
References fbBlocked, fbEpsilon, fbFixed, fbRange, fdEpsilon, fdError, fdRangeMax, fdRangeMin, fdRememberedValue, and fdValue.
Referenced by TGo4FitParameter(), TGo4FitParameter(), TGo4FitParameter(), TGo4FitParameter(), and TGo4FitParameter().
|
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 93 of file TGo4FitParameter.h.
References fbBlocked.
Referenced by TGo4FitterAbstract::InitializeDependencies().
|
inline |
Return epsilon value of parameter.
Definition at line 110 of file TGo4FitParameter.h.
References fbEpsilon, and fdEpsilon.
Referenced by TGo4FitParameter(), TGo4FitParameter(), QFitParCfgWidget::EpsilonEdit_textChanged(), TGo4FitPanel::ParsTableChanged(), TGo4FitParsList::SetParEpsilon(), and TGo4FitterConfig::SetParEpsilon().
|
inline |
Set status, if epsilon value was specified or not.
Did not change epsilon value itself. Designed for usage in GUI.
Definition at line 116 of file TGo4FitParameter.h.
References fbEpsilon.
Referenced by QFitParWidget::EpsilonChk_toggled(), and QFitParCfgWidget::EpsilonEdit_textChanged().
|
inline |
Set value of parameter error.
Definition at line 76 of file TGo4FitParameter.h.
References fdError.
Referenced by QFitParWidget::ErrorEdt_textChanged(), TGo4FitPanel::ParsTableChanged(), and TGo4FitComponent::SetAmplError().
|
inline |
Set status of parameter fixed or not.
Definition at line 86 of file TGo4FitParameter.h.
References fbFixed.
Referenced by TGo4FitLinearTrans::TGo4FitLinearTrans(), TGo4FitModel::AssignToData(), QFitParWidget::FixedChk_toggled(), TGo4FitComponent::MakeAmpl(), TGo4FitComponent::NewAmplitude(), TGo4FitComponent::NewParameter(), QFitParCfgWidget::ParFixedChk_toggled(), TGo4FitPanel::ParsTableChanged(), and TGo4FitterConfig::SetParFixed().
void TGo4FitParameter::SetRange | ( | Double_t | iRangeMin, |
Double_t | iRangeMax ) |
Set range minimum and maximum values.
Definition at line 46 of file TGo4FitParameter.cxx.
References fbFixed, fbRange, fdRangeMax, fdRangeMin, and fdValue.
Referenced by TGo4FitParameter(), TGo4FitParameter(), QFitParCfgWidget::AnalyzeRangeValues(), TGo4FitPanel::ParsTableChanged(), and TGo4FitterConfig::SetParRange().
|
inline |
Change status, is range was specified or not.
Not change range values themself. Designed for usage in GUI.
Definition at line 145 of file TGo4FitParameter.h.
References fbRange.
Referenced by QFitParCfgWidget::AnalyzeRangeValues(), and QFitParWidget::RangeChk_toggled().
|
inline |
Set parameter value.
Definition at line 66 of file TGo4FitParameter.h.
References fdValue.
Referenced by TGo4FitterAbstract::CopyParsValuesFrom(), TGo4FitPanel::ParsTableChanged(), TGo4FitComponent::SetAmplValue(), TGo4FitLinearTrans::SetCoef(), TGo4FitLinearTrans::SetCoefB(), TGo4FitLinearTrans::SetCoefK(), TGo4FitParsList::SetParsValues(), TGo4FitParsList::SetParsValues(), TGo4FitModel::SetPosition(), TGo4FitModel::SetWidth(), and QFitParWidget::ValueEdt_textChanged().
|
private |
Definition at line 203 of file TGo4FitParameter.h.
Referenced by ClearBlocked(), GetFixed(), Reset(), and SetBlocked().
|
protected |
Definition at line 195 of file TGo4FitParameter.h.
Referenced by ClearEpsilon(), GetEpsilon(), Print(), Reset(), SetEpsilon(), and SetEpsilonUse().
|
protected |
Definition at line 193 of file TGo4FitParameter.h.
Referenced by GetFixed(), Reset(), SetFixed(), and SetRange().
|
protected |
Definition at line 198 of file TGo4FitParameter.h.
Referenced by ChangeRangeMax(), ChangeRangeMin(), ClearRange(), GetRange(), Print(), Reset(), SetRange(), and SetRangeUse().
|
protected |
Definition at line 196 of file TGo4FitParameter.h.
Referenced by ChangeEpsilon(), GetEpsilon(), Print(), Reset(), and SetEpsilon().
|
protected |
Definition at line 192 of file TGo4FitParameter.h.
Referenced by GetError(), Print(), Reset(), and SetError().
|
protected |
Definition at line 200 of file TGo4FitParameter.h.
Referenced by ChangeRangeMax(), ClearRange(), GetRange(), GetRangeMax(), Print(), Reset(), and SetRange().
|
protected |
Definition at line 199 of file TGo4FitParameter.h.
Referenced by ChangeRangeMin(), ClearRange(), GetRange(), GetRangeMin(), Print(), Reset(), and SetRange().
|
private |
Definition at line 204 of file TGo4FitParameter.h.
Referenced by MemorizeValue(), RememberValue(), and Reset().
|
protected |
Definition at line 191 of file TGo4FitParameter.h.
Referenced by TGo4FitParameter(), TGo4FitParameter(), TGo4FitParameter(), TGo4FitParameter(), GetValue(), MemorizeValue(), Print(), RememberValue(), Reset(), SetRange(), and SetValue().