#include <TGo4FitParsList.h>
Inheritance diagram for TGo4FitParsList:
Public Member Functions | |
TGo4FitParsList () | |
Default constructor. | |
TGo4FitParsList (Bool_t IsParsOwned) | |
Create TGo4FitParsList object and set flag of ownership of parameters object. | |
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. | |
virtual | ~TGo4FitParsList () |
Destroy TGo4FitParsList object. | |
virtual Int_t | NumPars () |
Return number of parameters in list. | |
TGo4FitParameter * | GetPar (Int_t n) |
Return parameter according given index. | |
Int_t | GetParIndex (const TGo4FitParameter *par) |
Return index of given parameter in list. | |
TGo4FitParameter * | FindPar (const char *ParName) |
Find parameter object with given name. | |
TGo4FitParameter * | FindPar (const char *OwnerFullName, const char *ParName) |
Find parameter with given owner full name and parameter name. | |
TGo4FitParameter * | FindPar (TGo4FitParameter *par) |
Find parameter in list. | |
Double_t | GetParValue (const char *ParName) |
Return value of parameter with given name. | |
Bool_t | SetParValue (const char *ParName, Double_t iValue) |
Set value of parameter with given name. | |
void | GetParsValues (Double_t *pars) |
Copy values of all parameters in list to provided array. | |
void | SetParsValues (Double_t *pars) |
Set value for all parameters from array. | |
Double_t | GetParError (const char *ParName) |
Get error value for parameter with given name. | |
Bool_t | SetParError (const char *ParName, Double_t iError) |
Set error value for parameter with given name. | |
virtual Bool_t | SetParFixed (const char *ParName, Bool_t iFixed=kTRUE) |
Set for parameter with given name, is it fixed or not. | |
virtual Bool_t | GetParFixed (const char *ParName) |
Return status for parameter with given name, is it fixed or not. | |
Int_t | NumFixedPars () |
Return number of fixed pars. | |
Int_t | NumFreePars () |
Return number of free pars. | |
virtual Bool_t | SetParRange (const char *ParName, Double_t RangeMin, Double_t RangeMax) |
Set range limits for parameter with given name. | |
virtual Bool_t | GetParRange (const char *ParName, Double_t &RangeMin, Double_t &RangeMax) |
Get range limits for parameter with given name. | |
virtual Bool_t | SetParEpsilon (const char *ParName, Double_t Epsilon) |
Set epsilon value for parameter with given name. | |
virtual Bool_t | GetParEpsilon (const char *ParName, Double_t &Epsilon) |
Get epsilon value for parameter with given name. | |
void | SetParName (Int_t n, const char *name) |
Set new name for parameter object with provided index. | |
const char * | GetParName (Int_t n) |
Return name of parameter with given index. | |
const char * | GetParFullName (Int_t n) |
Return full name of parameter with given index. | |
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. | |
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. | |
virtual void | MemorizePars () |
Memorize values of all parameters. | |
virtual bool | CanRollbackPars () |
Return true if parameters can be safely restored from memorized values;. | |
virtual void | RememberPars () |
Restore parameters values, which were stored by MemorizePars() routine;. | |
Bool_t | IsAllParsFixed () |
Returns true, if all parameters in list fixed;. | |
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. | |
Bool_t | RemovePar (const char *name) |
Remove parameter from list with given name. | |
Bool_t | RemovePar (TGo4FitParameter *par) |
Remove parameter from list. | |
virtual void | Print (Option_t *option) const |
Default print method. | |
void | PrintPars () const |
Print only value and error of all parameters in list. | |
virtual void | CollectParsTo (TGo4FitParsList &list) |
Add all parameters to provided TGo4FitParsList object. | |
void | ClearPars () |
Remove all parameters from list. | |
Protected Member Functions | |
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. |
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 30 of file TGo4FitParsList.h.
|
Default constructor.
Definition at line 23 of file TGo4FitParsList.cxx. Referenced by TGo4FitModel::Initialize(). |
|
Create TGo4FitParsList object and set flag of ownership of parameters object.
Definition at line 27 of file TGo4FitParsList.cxx. References fxPars. |
|
Create TGo4FitParsList object, set it's name and title, and ownership flag of parameters pbjects.
Definition at line 31 of file TGo4FitParsList.cxx. References fxPars. |
|
Destroy TGo4FitParsList object.
Definition at line 35 of file TGo4FitParsList.cxx. |
|
Return number of parameters in list.
Reimplemented in TGo4FitModel, and TGo4FitterAbstract. Definition at line 56 of file TGo4FitParsList.h. References fxPars. Referenced by ClearParsBlocking(), CollectParsTo(), 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(), and SetParsValues(). |
|
Return parameter according given index. If index out of valid range, return 0. Definition at line 62 of file TGo4FitParsList.h. References Get(). Referenced by TGo4FitModelGauss2::BeforeEval(), TGo4FitModelGauss1::BeforeEval(), TGo4FitModelFormula::BeforeEval(), TGo4FitModelGaussN::FillMuVector(), 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(), and TGo4FitMatrixTrans::Transformation(). |
|
Return index of given parameter in list. If parameter not in list, return -1. Definition at line 38 of file TGo4FitParsList.cxx. References GetPar(), and NumPars(). Referenced by 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 74 of file TGo4FitParsList.h. References Find(). Referenced by 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 80 of file TGo4FitParsList.h. References Find(). |
|
Find parameter in list. If no such parameters exists, return 0. Definition at line 86 of file TGo4FitParsList.h. References Find(). |
|
Return value of parameter with given name. If no such parameter, return 0. Definition at line 44 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::GetValue(). Referenced by TXXXCalibPar::UpdateFrom(). |
|
Set value of parameter with given name. Return kTRUE in case of success, otherwise 0. Definition at line 50 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::SetValue(). Referenced by 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 56 of file TGo4FitParsList.cxx. References Get(), 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 61 of file TGo4FitParsList.cxx. References Get(), and NumPars(). 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 67 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 73 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::SetError(). |
|
Set for parameter with given name, is it fixed or not.
Definition at line 79 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 85 of file TGo4FitParsList.cxx. References Find(), and TGo4FitParameter::GetFixed(). Referenced by TGo4FitterConfig::GetParFixed(), and TGo4FitterAbstract::GetParFixed(). |
|
Return number of fixed pars.
Definition at line 91 of file TGo4FitParsList.cxx. References Get(), and NumPars(). Referenced by NumFreePars(). |
|
Return number of free pars.
Definition at line 98 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 103 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 109 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 115 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 121 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 128 of file TGo4FitParsList.cxx. References Get(). Referenced by SetParsNames(). |
|
Return name of parameter with given index. If index out of valid range, return 0. Definition at line 132 of file TGo4FitParsList.cxx. References Get(). Referenced by TGo4FitModelFormula::CompileFormula(). |
|
Return full name of parameter with given index. If index out of valid range, return 0. Definition at line 137 of file TGo4FitParsList.cxx. References Get(). Referenced by 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 142 of file TGo4FitParsList.cxx. References SetParName(). Referenced by 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 156 of file TGo4FitParsList.cxx. References Get(). |
|
Memorize values of all parameters. This values can be restore later by RemeberedPars(). Definition at line 170 of file TGo4FitParsList.cxx. References fbCanRollbackPars, Get(), and NumPars(). Referenced by TGo4FitterAbstract::ProcessObjects(). |
|
Return true if parameters can be safely restored from memorized values;.
Definition at line 215 of file TGo4FitParsList.h. References fbCanRollbackPars. |
|
Restore parameters values, which were stored by MemorizePars() routine;.
Definition at line 176 of file TGo4FitParsList.cxx. References Get(), and NumPars(). Referenced by TGo4FitterAbstract::ProcessObjects(). |
|
Returns true, if all parameters in list fixed;.
Definition at line 181 of file TGo4FitParsList.cxx. References Get(), 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 212 of file TGo4FitParsList.cxx. References AddPar(), and Find(). Referenced by TGo4FitterConfig::AddParNew(), 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 248 of file TGo4FitParsList.cxx. References FindPar(). Referenced by 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 252 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 187 of file TGo4FitParsList.cxx. References fxPars, GetPar(), and NumPars(). 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 196 of file TGo4FitParsList.cxx. References GetPar(), GetParFullName(), l, and NumPars(). Referenced by 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 261 of file TGo4FitParsList.cxx. References Get(), and NumPars(). Referenced by TGo4FitComponent::CollectParsTo(). |
|
Remove all parameters from list. If parameters owned by list, they will be destroyed. Definition at line 273 of file TGo4FitParsList.cxx. References fbCanRollbackPars, and fxPars. Referenced by TGo4FitterAbstract::CollectAllPars(), and TGo4FitMatrixTrans::SetNumAxis(). |
|
Definition at line 279 of file TGo4FitParsList.cxx. References fbCanRollbackPars, fxPars, and TGo4FitNamed::SetOwner(). Referenced by CreatePar(), TGo4FitComponent::NewAmplitude(), TGo4FitComponent::NewParameter(), and TGo4FitLinearTrans::TGo4FitLinearTrans(). |
|
Definition at line 286 of file TGo4FitParsList.cxx. References fbCanRollbackPars, and fxPars. Referenced by TGo4FitComponent::NewAmplitude(), and TGo4FitComponent::NewParameter(). |
|
Definition at line 207 of file TGo4FitParsList.cxx. |
|
Definition at line 268 of file TGo4FitParsList.cxx. References Get(), and NumPars(). Referenced by TGo4FitterAbstract::Initialize(). |
|
Reimplemented in TGo4FitModel, and TGo4FitterAbstract. Definition at line 277 of file TGo4FitParsList.h. References fxPars, 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 217 of file TGo4FitParsList.cxx. References Get(), TGo4FitNamed::GetFullName(), and NumPars(). Referenced by CreatePar(), FindPar(), GetParEpsilon(), GetParError(), GetParFixed(), GetParRange(), GetParValue(), TGo4FitterAbstract::InitializeDependencies(), SetParEpsilon(), SetParError(), SetParFixed(), SetParRange(), and SetParValue(). |
|
Definition at line 227 of file TGo4FitParsList.cxx. References Get(), TGo4FitNamed::GetOwner(), TGo4FitNamed::GetOwnerFullName(), and NumPars(). |
|
Definition at line 237 of file TGo4FitParsList.cxx. |
|
Definition at line 243 of file TGo4FitParsList.cxx. References Get(), NumPars(), and RemovePar(). Referenced by TGo4FitComponent::RemoveAmpl(). |
|
Definition at line 284 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 289 of file TGo4FitParsList.h. Referenced by AddPar(), CanRollbackPars(), ClearPars(), InsertPar(), MemorizePars(), and RemovePar(). |