#include <TGo4FitParsList.h>
Inheritance diagram for TGo4FitParsList:
Public Methods | |
TGo4FitParsList () | |
Default constructor. More... | |
TGo4FitParsList (Bool_t IsParsOwned) | |
Create TGo4FitParsList object and set flag of ownership of parameters object. More... | |
TGo4FitParsList (const char *Name, const char *Title, Bool_t IsParsOwned) | |
Create TGo4FitParsList object, set it's name and title, and ownership flag of parameters pbjects. More... | |
virtual | ~TGo4FitParsList () |
Destroy TGo4FitParsList object. More... | |
virtual Int_t | NumPars () |
Return number of parameters in list. More... | |
TGo4FitParameter * | GetPar (Int_t n) |
Return parameter according given index. More... | |
Int_t | GetParIndex (const TGo4FitParameter *par) |
Return index of given parameter in list. More... | |
TGo4FitParameter * | FindPar (const char *ParName) |
Find parameter object with given name. More... | |
TGo4FitParameter * | FindPar (const char *OwnerFullName, const char *ParName) |
Find parameter with given owner full name and parameter name. More... | |
TGo4FitParameter * | FindPar (TGo4FitParameter *par) |
Find parameter in list. More... | |
Double_t | GetParValue (const char *ParName) |
Return value of parameter with given name. More... | |
Bool_t | SetParValue (const char *ParName, Double_t iValue) |
Set value of parameter with given name. More... | |
void | GetParsValues (Double_t *pars) |
Copy values of all parameters in list to provided array. More... | |
void | SetParsValues (Double_t *pars) |
Set value for all parameters from array. More... | |
Double_t | GetParError (const char *ParName) |
Get error value for parameter with given name. More... | |
Bool_t | SetParError (const char *ParName, Double_t iError) |
Set error value for parameter with given name. More... | |
virtual Bool_t | SetParFixed (const char *ParName, Bool_t iFixed=kTRUE) |
Set for parameter with given name, is it fixed or not. More... | |
virtual Bool_t | GetParFixed (const char *ParName) |
Return status for parameter with given name, is it fixed or not. More... | |
Int_t | NumFixedPars () |
Return number of fixed pars. More... | |
Int_t | NumFreePars () |
Return number of free pars. More... | |
virtual Bool_t | SetParRange (const char *ParName, Double_t RangeMin, Double_t RangeMax) |
Set range limits for parameter with given name. More... | |
virtual Bool_t | GetParRange (const char *ParName, Double_t &RangeMin, Double_t &RangeMax) |
Get range limits for parameter with given name. More... | |
virtual Bool_t | SetParEpsilon (const char *ParName, Double_t Epsilon) |
Set epsilon value for parameter with given name. More... | |
virtual Bool_t | GetParEpsilon (const char *ParName, Double_t &Epsilon) |
Get epsilon value for parameter with given name. More... | |
void | SetParName (Int_t n, const char *name) |
Set new name for parameter object with provided index. More... | |
const char * | GetParName (Int_t n) |
Return name of parameter with given index. More... | |
const char * | GetParFullName (Int_t n) |
Return full name of parameter with given index. More... | |
void | SetParsNames (const char *name0="Par0", const char *name1="Par1", const char *name2="Par2", const char *name3="Par3", const char *name4="Par4", const char *name5="Par5", const char *name6="Par6", const char *name7="Par7", const char *name8="Par8", const char *name9="Par9") |
Set names of first 10 parameters. More... | |
void | SetParsValues (Double_t par0=0., Double_t par1=0., Double_t par2=0., Double_t par3=0., Double_t par4=0., Double_t par5=0., Double_t par6=0., Double_t par7=0., Double_t par8=0., Double_t par9=0.) |
Set values for first 10 parameters. More... | |
virtual void | MemorizePars () |
Memorize values of all parameters. More... | |
virtual bool | CanRollbackPars () |
Return true if parameters can be safely restored from memorized values;. More... | |
virtual void | RememberPars () |
Restore parameters values, which were stored by MemorizePars() routine;. More... | |
Bool_t | IsAllParsFixed () |
Returns true, if all parameters in list fixed;. More... | |
TGo4FitParameter * | CreatePar (const char *ParName, const char *Title, Double_t iValue=0) |
Create new TGo4FitParameter object with given name, title and parameter value, and put this object to the list. More... | |
Bool_t | RemovePar (const char *name) |
Remove parameter from list with given name. More... | |
Bool_t | RemovePar (TGo4FitParameter *par) |
Remove parameter from list. More... | |
virtual void | Print (Option_t *option) const |
Default print method. More... | |
void | PrintPars () const |
Print only value and error of all parameters in list. More... | |
virtual void | CollectParsTo (TGo4FitParsList &list) |
Add all parameters to provided TGo4FitParsList object. More... | |
void | ClearPars () |
Remove all parameters from list. More... | |
Protected Methods | |
TGo4FitParameter * | AddPar (TGo4FitParameter *par) |
TGo4FitParameter * | InsertPar (TGo4FitParameter *par, Int_t indx) |
void | SetParsOwner (TGo4FitNamed *iOwner) |
void | ClearParsBlocking () |
virtual TGo4FitParameter * | Get (Int_t n) |
TGo4FitParameter * | Find (const char *ParName) |
TGo4FitParameter * | Find (const char *OwnerFullName, const char *ParName) |
TGo4FitParameter * | Find (TGo4FitParameter *par) |
Bool_t | RemoveParByIndex (Int_t indx) |
Private Attributes | |
TOrdCollection | fxPars |
Bool_t | fbCanRollbackPars |
If true, parameters can be safely rollback. More... |
Contain list of parameters and provides access to parameters properties via names. Parameters objects may owned or not owned by TGo4FitParsList object.
Definition at line 29 of file TGo4FitParsList.h.
|
Default constructor.
Definition at line 25 of file TGo4FitParsList.cxx. Referenced by TGo4FitModel::Initialize(). |
|
Create TGo4FitParsList object and set flag of ownership of parameters object.
Definition at line 29 of file TGo4FitParsList.cxx. References fxPars. |
|
Create TGo4FitParsList object, set it's name and title, and ownership flag of parameters pbjects.
Definition at line 33 of file TGo4FitParsList.cxx. References fxPars. |
|
Destroy TGo4FitParsList object.
Definition at line 37 of file TGo4FitParsList.cxx. |
|
Return number of parameters in list.
Reimplemented in TGo4FitModel, and TGo4FitterAbstract. Definition at line 55 of file TGo4FitParsList.h. References fxPars. Referenced by ClearParsBlocking(), CollectParsTo(), TGo4FitPanelSlots::FillParsList(), Find(), Get(), TGo4FitModel::Get(), TGo4FitMatrixTrans::GetNumAxis(), TGo4FitModelFormula::GetNumberOfExprPar(), TGo4FitModelFunction::GetNumberOfFuncPar(), GetParIndex(), GetParsValues(), TGo4FitModel::Initialize(), IsAllParsFixed(), MemorizePars(), TGo4FitComponent::NewAmplitude(), NumFixedPars(), NumFreePars(), TGo4FitterAbstract::NumPars(), TGo4FitModel::NumPars(), Print(), PrintPars(), TGo4FitModel::RebuildShape(), RememberPars(), RemoveParByIndex(), TGo4FitMatrixTrans::SetNumAxis(), SetParsOwner(), SetParsValues(), and TGo4FitPanelSlots::UpdateItem(). |
|
Return parameter according given index. If index out of valid range, return 0. Definition at line 61 of file TGo4FitParsList.h. Referenced by TGo4FitModelGauss2::BeforeEval(), TGo4FitModelGauss1::BeforeEval(), TGo4FitModelFormula::BeforeEval(), TGo4FitPanelSlots::Button_FitterDraw(), TGo4FitModelGaussN::FillMuVector(), TGo4FitPanelSlots::FillParsList(), TGo4FitModelGaussN::FillSigmaMatrix(), TGo4FitComponent::GetAmplPar(), TGo4FitLinearTrans::GetCoefB(), TGo4FitLinearTrans::GetCoefK(), TGo4FitModelFormula::GetExprPar(), TGo4FitModelFunction::GetFuncPar(), GetParIndex(), TGo4FitModelGauss1::Integral(), Print(), PrintPars(), TGo4FitModel::RebuildShape(), TGo4FitLinearTrans::SetCoef(), TGo4FitLinearTrans::SetCoefB(), TGo4FitLinearTrans::SetCoefK(), TGo4FitMatrixTrans::Transformation(), and TGo4FitPanelSlots::UpdateItem(). |
|
Return index of given parameter in list. If parameter not in list, return -1. Definition at line 40 of file TGo4FitParsList.cxx. References GetPar(), i, and NumPars(). Referenced by CollectParsTo(), TGo4FitModelFunction::GetPosParIndex(), TGo4FitModelFormula::GetPosParIndex(), TGo4FitModelFunction::GetWidthParIndex(), TGo4FitModelFormula::GetWidthParIndex(), TGo4FitterAbstract::InitializeDependencies(), TGo4FitModelGaussN::SetAxisNumbers(), and TGo4FitModelPolynom::SetMaxNumAxis(). |
|
Find parameter object with given name. Name can be both name or full name of TGo4FitParameter object. If no such parameters exists, return 0. Definition at line 73 of file TGo4FitParsList.h. References Find(). Referenced by TGo4FitPanelSlots::ChangeObjectName(), TGo4FitPanelSlots::Cmd_AddNewPar(), TGo4FitterAbstract::CopyParsValuesFrom(), TGo4FitModelPolynom::GetMaxNumAxis(), TGo4FitModelPolynom::GetPolynomOrder(), TGo4FitterConfig::MakeParForProperties(), RemovePar(), TGo4FitModelGaussN::SetAxisNumbers(), and TGo4FitModelPolynom::SetMaxNumAxis(). |
|
Find parameter with given owner full name and parameter name. If no such parameters exists, return 0. Definition at line 79 of file TGo4FitParsList.h. References Find(). |
|
Find parameter in list. If no such parameters exists, return 0. Definition at line 85 of file TGo4FitParsList.h. References Find(). |
|
Return value of parameter with given name. If no such parameter, return 0. Definition at line 46 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::GetValue(). Referenced by TGo4FitMinuit::DoAction(), and TXXXCalibPar::UpdateFrom(). |
|
Set value of parameter with given name. Return kTRUE in case of success, otherwise 0. Definition at line 52 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::SetValue(). Referenced by TGo4FitMinuit::DoAction(), Example3(), and Example4(). |
|
Copy values of all parameters in list to provided array. Array should have at lest NumPars() elements, otherwise routine can cause error. Definition at line 58 of file TGo4FitParsList.cxx. References Get(), TGo4FitParameter::GetValue(), i, and NumPars(). Referenced by TGo4FitterAbstract::ApplyConfig(), TGo4FitModel::BeforeEval(), TGo4FitterAbstract::Finalize(), TGo4FitModel::Initialize(), and TGo4FitMatrixTrans::SetNumAxis(). |
|
Set value for all parameters from array.
Definition at line 63 of file TGo4FitParsList.cxx. References Get(), i, NumPars(), and TGo4FitParameter::SetValue(). Referenced by TGo4FitterAbstract::ApplyConfig(), TGo4FitterAbstract::CalculateFitFunction(), TGo4Fitter::CalculateFitFunction(), Example13(), and Example2(). |
|
Get error value for parameter with given name. If no such parameters, return 0. Definition at line 69 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::GetError(). |
|
Set error value for parameter with given name. If such parameters exists, return kTRUE, otherwise kFALSE. Definition at line 75 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::SetError(). Referenced by TGo4FitMinuit::DoAction(). |
|
Set for parameter with given name, is it fixed or not.
Definition at line 81 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::SetFixed(). |
|
Return status for parameter with given name, is it fixed or not. If parameter not exist, return kFALSE. Reimplemented in TGo4FitterAbstract. Definition at line 87 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::GetFixed(). Referenced by TGo4FitterConfig::GetParFixed(), and TGo4FitterAbstract::GetParFixed(). |
|
Return number of fixed pars.
Definition at line 93 of file TGo4FitParsList.cxx. References Get(), TGo4FitParameter::GetFixed(), n, and NumPars(). Referenced by NumFreePars(). |
|
Return number of free pars.
Definition at line 100 of file TGo4FitParsList.cxx. References NumFixedPars(), and NumPars(). Referenced by TGo4Fitter::CalculateNDF(). |
|
Set range limits for parameter with given name. Return kTRUE, if parameter exist. Definition at line 105 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::SetRange(). |
|
Get range limits for parameter with given name. If succesfull, return kTRUE. Reimplemented in TGo4FitterAbstract. Definition at line 111 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::GetRange(). Referenced by TGo4FitterConfig::GetParRange(), and TGo4FitterAbstract::GetParRange(). |
|
Set epsilon value for parameter with given name. Return kTRUE, if parameter exist. Definition at line 117 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::SetEpsilon(). |
|
Get epsilon value for parameter with given name. Return kTRUE, is succesfull. Reimplemented in TGo4FitterAbstract. Definition at line 123 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::GetEpsilon(). Referenced by TGo4FitterConfig::GetParEpsilon(), and TGo4FitterAbstract::GetParEpsilon(). |
|
Set new name for parameter object with provided index.
Definition at line 130 of file TGo4FitParsList.cxx. Referenced by SetParsNames(). |
|
Return name of parameter with given index. If index out of valid range, return 0. Definition at line 134 of file TGo4FitParsList.cxx. Referenced by TGo4FitModelFormula::CompileFormula(). |
|
Return full name of parameter with given index. If index out of valid range, return 0. Definition at line 139 of file TGo4FitParsList.cxx. References Get(), TGo4FitNamed::GetFullName(), and n. Referenced by TGo4FitPanelSlots::Button_FitterDraw(), TGo4FitMinuit::DoAction(), TGo4FitterAbstract::InitializeDependencies(), PrintPars(), and TGo4FitterAbstract::ProcessObjects(). |
|
Set names of first 10 parameters. For instance: list->SetParsNames("CoefK","CoefB","Const"). If there are more then 3 parameters in list, for the rest parameters standard names will be applied: "Par3", "Par4" and so on. Definition at line 144 of file TGo4FitParsList.cxx. References SetParName(). Referenced by TGo4FitPanelSlots::CreateModel(), Example13(), and Example2(). |
|
Set values for first 10 parameters. For instance, list->SetParsValues(1,345,23); If more than 3 parameters in list, for rest 0 values will be set. Definition at line 158 of file TGo4FitParsList.cxx. References Get(), and TGo4FitParameter::SetValue(). |
|
Memorize values of all parameters. This values can be restore later by RemeberedPars(). Definition at line 172 of file TGo4FitParsList.cxx. References fbCanRollbackPars, Get(), i, TGo4FitParameter::MemorizeValue(), and NumPars(). Referenced by TGo4FitPanelSlots::Button_PerformFit(), TGo4FitPanelSlots::Cmd_ExecuteActions(), TGo4FitPanelSlots::Cmd_MemorizePars(), and TGo4FitterAbstract::ProcessObjects(). |
|
Return true if parameters can be safely restored from memorized values;.
Definition at line 214 of file TGo4FitParsList.h. References fbCanRollbackPars. |
|
Restore parameters values, which were stored by MemorizePars() routine;.
Definition at line 178 of file TGo4FitParsList.cxx. References Get(), i, NumPars(), and TGo4FitParameter::RememberValue(). Referenced by TGo4FitPanelSlots::Cmd_RememberPars(), TGo4FitPanelSlots::Fitter_RollbackParameters(), and TGo4FitterAbstract::ProcessObjects(). |
|
Returns true, if all parameters in list fixed;.
Definition at line 183 of file TGo4FitParsList.cxx. References Get(), TGo4FitParameter::GetFixed(), i, and NumPars(). Referenced by TGo4FitData::Initialize(). |
|
Create new TGo4FitParameter object with given name, title and parameter value, and put this object to the list. Return created parameter object. Definition at line 214 of file TGo4FitParsList.cxx. References AddPar(), and Find(). Referenced by TGo4FitterConfig::AddParNew(), TGo4FitPanelSlots::Cmd_AddNewPar(), TGo4FitterConfig::MakeParForProperties(), and TGo4FitMatrixTrans::SetNumAxis(). |
|
Remove parameter from list with given name. If parameter owned by list, parameter will be destroyed. Return kTRUE if succesfull. Definition at line 250 of file TGo4FitParsList.cxx. References FindPar(). Referenced by TGo4FitPanelSlots::Cmd_DeletePar(), RemoveParByIndex(), TGo4FitModelGaussN::SetAxisNumbers(), TGo4FitModelPolynom::SetMaxNumAxis(), TGo4FitModelFormula::SetNumberOfExprPar(), and TGo4FitModelFunction::SetNumberOfFuncPar(). |
|
Remove parameter from list. If parameter owned by list, parameter will be destroyed. Return kTRUE if succesfull. Definition at line 254 of file TGo4FitParsList.cxx. References fbCanRollbackPars, and fxPars. |
|
Default print method. Call print method for every parameter object in list. Reimplemented from TGo4FitNamed. Reimplemented in TGo4FitComponent, TGo4FitData, TGo4FitDataGraph, TGo4FitDataHistogram, TGo4FitDataProfile, TGo4FitDataRidge, TGo4FitLinearTrans, TGo4FitMatrixTrans, TGo4FitModel, TGo4FitModelFormula, TGo4FitModelFromData, TGo4FitModelFunction, TGo4FitModelGauss1, TGo4FitModelGauss2, TGo4FitModelGaussN, TGo4FitModelPolynom, TGo4Fitter, and TGo4FitterAbstract. Definition at line 189 of file TGo4FitParsList.cxx. References fxPars, GetPar(), n, NumPars(), and TGo4FitParameter::Print(). Referenced by TGo4FitterConfig::Print(), TGo4FitterAbstract::Print(), TGo4FitMatrixTrans::Print(), TGo4FitLinearTrans::Print(), and TGo4FitComponent::Print(). |
|
Print only value and error of all parameters in list.
Definition at line 198 of file TGo4FitParsList.cxx. References TGo4FitParameter::GetError(), GetPar(), GetParFullName(), TGo4FitParameter::GetValue(), n, and NumPars(). Referenced by Example6(), and TGo4Fitter::Print(). |
|
Add all parameters to provided TGo4FitParsList object. User should take care, that both source and destination have not ownership flag at same time, otherwise it can cause error during these lists destroyment. Reimplemented in TGo4FitComponent. Definition at line 263 of file TGo4FitParsList.cxx. References AddPar(), Get(), GetParIndex(), i, and NumPars(). Referenced by TGo4FitterAbstract::CollectAllPars(), and TGo4FitComponent::CollectParsTo(). |
|
Remove all parameters from list. If parameters owned by list, they will be destroyed. Definition at line 275 of file TGo4FitParsList.cxx. References fbCanRollbackPars, and fxPars. Referenced by TGo4FitPanelSlots::Cmd_DeletePars(), TGo4FitterAbstract::CollectAllPars(), and TGo4FitMatrixTrans::SetNumAxis(). |
|
Definition at line 281 of file TGo4FitParsList.cxx. References fbCanRollbackPars, fxPars, and TGo4FitNamed::SetOwner(). Referenced by CollectParsTo(), CreatePar(), TGo4FitComponent::NewAmplitude(), TGo4FitComponent::NewParameter(), and TGo4FitLinearTrans::TGo4FitLinearTrans(). |
|
Definition at line 288 of file TGo4FitParsList.cxx. References fbCanRollbackPars, fxPars, and TGo4FitNamed::SetOwner(). Referenced by TGo4FitComponent::NewAmplitude(), and TGo4FitComponent::NewParameter(). |
|
Definition at line 209 of file TGo4FitParsList.cxx. References Get(), i, NumPars(), and TGo4FitNamed::SetOwner(). |
|
Definition at line 270 of file TGo4FitParsList.cxx. References TGo4FitParameter::ClearBlocked(), Get(), i, and NumPars(). Referenced by TGo4FitterAbstract::Initialize(). |
|
Reimplemented in TGo4FitModel, and TGo4FitterAbstract. Definition at line 276 of file TGo4FitParsList.h. References fxPars, n, and NumPars(). Referenced by ClearParsBlocking(), CollectParsTo(), Find(), TGo4FitterAbstract::Get(), TGo4FitModel::Get(), GetPar(), GetParFullName(), GetParName(), GetParsValues(), IsAllParsFixed(), MemorizePars(), NumFixedPars(), RememberPars(), RemoveParByIndex(), TGo4FitComponent::SetAmplError(), TGo4FitComponent::SetAmplValue(), SetParName(), SetParsOwner(), and SetParsValues(). |
|
Definition at line 219 of file TGo4FitParsList.cxx. References Get(), TGo4FitNamed::GetFullName(), i, and NumPars(). Referenced by CreatePar(), FindPar(), GetParEpsilon(), GetParError(), GetParFixed(), GetParRange(), GetParValue(), TGo4FitterAbstract::InitializeDependencies(), SetParEpsilon(), SetParError(), SetParFixed(), SetParRange(), and SetParValue(). |
|
Definition at line 229 of file TGo4FitParsList.cxx. References Get(), TGo4FitNamed::GetOwner(), TGo4FitNamed::GetOwnerFullName(), i, and NumPars(). |
|
Definition at line 239 of file TGo4FitParsList.cxx. |
|
Definition at line 245 of file TGo4FitParsList.cxx. References Get(), NumPars(), and RemovePar(). Referenced by TGo4FitComponent::RemoveAmpl(). |
|
Definition at line 283 of file TGo4FitParsList.h. Referenced by AddPar(), ClearPars(), Get(), InsertPar(), NumPars(), Print(), RemovePar(), and TGo4FitParsList(). |
|
If true, parameters can be safely rollback.
Definition at line 288 of file TGo4FitParsList.h. Referenced by AddPar(), CanRollbackPars(), ClearPars(), InsertPar(), MemorizePars(), and RemovePar(). |