#include <TGo4FitParameter.h>
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 () |
Double_t | GetRangeMax () |
void | ClearRange () |
void | MemorizeValue () |
void | RememberValue () |
virtual void | Print (Option_t *option) const |
Protected Member Functions | |
void | Reset () |
Protected Attributes | |
Double_t | fdValue |
Double_t | fdError |
Bool_t | fbFixed |
Bool_t | fbEpsilon |
Double_t | fdEpsilon |
Bool_t | fbRange |
Double_t | fdRangeMin |
Double_t | fdRangeMax |
Private Attributes | |
Bool_t | fbBlocked |
Double_t | fdRememberedValue |
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.
TGo4FitParameter::TGo4FitParameter | ( | ) |
TGo4FitParameter::TGo4FitParameter | ( | const char * | name, | |
const char * | title, | |||
Double_t | iValue | |||
) |
Create TGo4FitParameter object with given name, title and initial value.
Definition at line 23 of file TGo4FitParameter.cxx.
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 28 of file TGo4FitParameter.cxx.
References 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 34 of file TGo4FitParameter.cxx.
References 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 40 of file TGo4FitParameter.cxx.
References fdValue, Reset(), SetEpsilon(), and SetRange().
TGo4FitParameter::~TGo4FitParameter | ( | ) | [virtual] |
Destroy TGo4FitParameter object.
Definition at line 56 of file TGo4FitParameter.cxx.
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().
void TGo4FitParameter::ChangeRangeMax | ( | Double_t | iRangeMax | ) | [inline] |
Cahnge value of range maximum.
Definition at line 154 of file TGo4FitParameter.h.
References fbRange, and fdRangeMax.
Referenced by QFitParWidget::RangeMaxEdt_textChanged().
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().
void TGo4FitParameter::ClearBlocked | ( | ) | [inline] |
Release blocking of parameter.
Definition at line 97 of file TGo4FitParameter.h.
References fbBlocked.
Referenced by TGo4FitParsList::ClearParsBlocking().
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.
void TGo4FitParameter::ClearRange | ( | ) | [inline] |
Clear status, that range was psecified. Equivalent to SetRangeUse(kFALSE).
Definition at line 170 of file TGo4FitParameter.h.
References fbRange, fdRangeMax, and fdRangeMin.
Referenced by TGo4FitPanel::ParsTableChanged().
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().
Double_t TGo4FitParameter::GetError | ( | ) | const [inline] |
Get value of parameter error.
Definition at line 70 of file TGo4FitParameter.h.
References fdError.
Referenced by TGo4FitPanel::FillParsTable(), QFitParWidget::FillSpecificData(), TGo4FitComponent::GetAmplError(), TGo4FitParsList::GetParError(), and TGo4FitParsList::PrintPars().
Bool_t TGo4FitParameter::GetFixed | ( | ) | const [inline] |
Return status, if parameter fixed or not.
Definition at line 80 of file TGo4FitParameter.h.
References fbBlocked, and fbFixed.
Referenced by TGo4FitAmplEstimation::CalculateWithBuffers(), TGo4FitAmplEstimation::CalculateWithIterators(), TGo4FitPanel::FillParsTable(), QFitParWidget::FillSpecificData(), TGo4FitParsList::GetParFixed(), TGo4FitParsList::IsAllParsFixed(), TGo4FitParsList::NumFixedPars(), TGo4FitPanel::ParsTableChanged(), and Print().
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, and fdRangeMin.
Referenced by TGo4FitPanel::FillParsTable(), QFitParWidget::FillSpecificData(), TGo4FitParsList::GetParRange(), and TGo4FitPanel::ParsTableChanged().
Double_t TGo4FitParameter::GetRangeMax | ( | ) | [inline] |
Return value of range maximum.
Definition at line 164 of file TGo4FitParameter.h.
References fdRangeMax.
Double_t TGo4FitParameter::GetRangeMin | ( | ) | [inline] |
Return value of range minimum.
Definition at line 159 of file TGo4FitParameter.h.
References fdRangeMin.
Double_t TGo4FitParameter::GetValue | ( | ) | const [inline] |
Return parameter value.
Definition at line 60 of file TGo4FitParameter.h.
References fdValue.
Referenced by TGo4FitModelGauss2::BeforeEval(), TGo4FitModelGauss1::BeforeEval(), TGo4FitPanel::Button_FitterDraw(), TGo4FitterAbstract::CopyParsValuesFrom(), TGo4FitModelGaussN::FillMuVector(), TGo4FitPanel::FillParsTable(), TGo4FitModelGaussN::FillSigmaMatrix(), QFitParWidget::FillSpecificData(), TGo4FitComponent::GetAmplValue(), TGo4FitLinearTrans::GetCoefB(), TGo4FitLinearTrans::GetCoefK(), TGo4FitParsList::GetParsValues(), TGo4FitParsList::GetParValue(), TGo4FitModelPolynom::GetPolynomOrder(), TGo4FitModel::GetPosition(), TGo4FitModel::GetWidth(), TGo4FitModelGauss1::Integral(), TGo4FitPanel::ParsTableChanged(), TGo4FitParsList::PrintPars(), TGo4FitAssignment::RatioValue(), TGo4FitModel::RebuildShape(), TGo4FitPanel::SetItemText(), and TGo4FitMatrixTrans::Transformation().
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().
void TGo4FitParameter::Print | ( | Option_t * | option | ) | const [virtual] |
Print TGo4FitParameter object to standard output.
Reimplemented from TGo4FitNamed.
Definition at line 59 of file TGo4FitParameter.cxx.
References fbEpsilon, fbRange, fdEpsilon, fdError, fdRangeMax, fdRangeMin, fdValue, GetFixed(), and TGo4FitNamed::GetFullName().
Referenced by TGo4FitParsList::Print().
void TGo4FitParameter::RememberValue | ( | ) | [inline] |
Restore value, which was previosly memorized.
Definition at line 180 of file TGo4FitParameter.h.
References fdRememberedValue, and fdValue.
Referenced by TGo4FitPanel::Cmd_RememberPar(), and TGo4FitParsList::RememberPars().
void TGo4FitParameter::Reset | ( | ) | [protected] |
Definition at line 69 of file TGo4FitParameter.cxx.
References fbBlocked, fbEpsilon, fbFixed, fbRange, fdEpsilon, fdError, fdRangeMax, fdRangeMin, fdRememberedValue, and fdValue.
Referenced by TGo4FitParameter().
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().
void TGo4FitParameter::SetEpsilon | ( | Double_t | iEpsilon | ) | [inline] |
Return epsilon value of parameter.
Definition at line 109 of file TGo4FitParameter.h.
References fbEpsilon, and fdEpsilon.
Referenced by QFitParCfgWidget::EpsilonEdit_textChanged(), TGo4FitPanel::ParsTableChanged(), TGo4FitterConfig::SetParEpsilon(), TGo4FitParsList::SetParEpsilon(), and TGo4FitParameter().
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().
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(), TGo4FitComponent::SetAmplError(), and TGo4FitParsList::SetParError().
void TGo4FitParameter::SetFixed | ( | Bool_t | iFixed | ) | [inline] |
Set status of parameter fixed or not.
Definition at line 85 of file TGo4FitParameter.h.
References fbFixed.
Referenced by TGo4FitModel::AssignToData(), QFitParWidget::FixedChk_toggled(), TGo4FitComponent::MakeAmpl(), TGo4FitComponent::NewAmplitude(), TGo4FitComponent::NewParameter(), QFitParCfgWidget::ParFixedChk_toggled(), TGo4FitPanel::ParsTableChanged(), TGo4FitterConfig::SetParFixed(), TGo4FitParsList::SetParFixed(), and TGo4FitLinearTrans::TGo4FitLinearTrans().
void TGo4FitParameter::SetRange | ( | Double_t | iRangeMin, | |
Double_t | iRangeMax | |||
) |
Set range minimum and maximum values.
Definition at line 47 of file TGo4FitParameter.cxx.
References fbFixed, fbRange, fdRangeMax, fdRangeMin, and fdValue.
Referenced by QFitParCfgWidget::AnalyzeRangeValues(), TGo4FitPanel::ParsTableChanged(), TGo4FitterConfig::SetParRange(), TGo4FitParsList::SetParRange(), and TGo4FitParameter().
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().
void TGo4FitParameter::SetValue | ( | Double_t | iValue | ) | [inline] |
Set parameter value.
Definition at line 65 of file TGo4FitParameter.h.
References fdValue.
Referenced by TGo4FitterAbstract::CopyParsValuesFrom(), TGo4FitPanel::ParsTableChanged(), TGo4FitComponent::SetAmplValue(), TGo4FitLinearTrans::SetCoef(), TGo4FitLinearTrans::SetCoefB(), TGo4FitLinearTrans::SetCoefK(), TGo4FitParsList::SetParsValues(), TGo4FitParsList::SetParValue(), TGo4FitModel::SetPosition(), TGo4FitModel::SetWidth(), and QFitParWidget::ValueEdt_textChanged().
Bool_t TGo4FitParameter::fbBlocked [private] |
Definition at line 202 of file TGo4FitParameter.h.
Referenced by ClearBlocked(), GetFixed(), Reset(), and SetBlocked().
Bool_t TGo4FitParameter::fbEpsilon [protected] |
Definition at line 194 of file TGo4FitParameter.h.
Referenced by ClearEpsilon(), GetEpsilon(), Print(), Reset(), SetEpsilon(), and SetEpsilonUse().
Bool_t TGo4FitParameter::fbFixed [protected] |
Definition at line 192 of file TGo4FitParameter.h.
Referenced by GetFixed(), Reset(), SetFixed(), and SetRange().
Bool_t TGo4FitParameter::fbRange [protected] |
Definition at line 197 of file TGo4FitParameter.h.
Referenced by ChangeRangeMax(), ChangeRangeMin(), ClearRange(), GetRange(), Print(), Reset(), SetRange(), and SetRangeUse().
Double_t TGo4FitParameter::fdEpsilon [protected] |
Definition at line 195 of file TGo4FitParameter.h.
Referenced by ChangeEpsilon(), GetEpsilon(), Print(), Reset(), and SetEpsilon().
Double_t TGo4FitParameter::fdError [protected] |
Definition at line 191 of file TGo4FitParameter.h.
Referenced by GetError(), Print(), Reset(), and SetError().
Double_t TGo4FitParameter::fdRangeMax [protected] |
Definition at line 199 of file TGo4FitParameter.h.
Referenced by ChangeRangeMax(), ClearRange(), GetRange(), GetRangeMax(), Print(), Reset(), and SetRange().
Double_t TGo4FitParameter::fdRangeMin [protected] |
Definition at line 198 of file TGo4FitParameter.h.
Referenced by ChangeRangeMin(), ClearRange(), GetRange(), GetRangeMin(), Print(), Reset(), and SetRange().
Double_t TGo4FitParameter::fdRememberedValue [private] |
Definition at line 203 of file TGo4FitParameter.h.
Referenced by MemorizeValue(), RememberValue(), and Reset().
Double_t TGo4FitParameter::fdValue [protected] |
Definition at line 190 of file TGo4FitParameter.h.
Referenced by GetValue(), MemorizeValue(), Print(), RememberValue(), Reset(), SetRange(), SetValue(), and TGo4FitParameter().