#include <TGo4FitComponent.h>
Inheritance diagram for TGo4FitComponent:
Public Methods | |
TGo4FitComponent () | |
Default constructor. More... | |
TGo4FitComponent (const char *iName, const char *iTitle) | |
Creates TGo4FitComponent object. More... | |
virtual | ~TGo4FitComponent () |
Destroys TGo4FitComponent object. More... | |
TGo4FitParameter * | GetAmplPar () |
Return ampltide parameter object. More... | |
const char * | GetAmplName () |
Returns name of amplitude parameter. More... | |
const char * | GetAmplFullName () |
Returns full name of amplitude parameter. More... | |
Double_t | GetAmplValue () |
Return value of amplitude parameter. More... | |
void | SetAmplValue (Double_t iAmpl) |
Set value of amplitude parameter. More... | |
Double_t | GetAmplError () |
Return error of amplitude parameter. More... | |
void | SetAmplError (Double_t iError) |
Set error of amplitude parameter. More... | |
Bool_t | MakeAmpl (Bool_t isFixed=kFALSE) |
Create amplitude parameter and adds it to parameters list. More... | |
Bool_t | RemoveAmpl () |
Remove amplitude parameter from parameters list. More... | |
virtual Bool_t | CanAmplTouch () |
Signals, if amplitude parameter can be removed from or introduced to object. More... | |
void | SetRange (Int_t naxis, Double_t min, Double_t max) |
Includes axis range in consideration. More... | |
void | ExcludeRange (Int_t naxis, Double_t min, Double_t max) |
Exclude axis range from consideration. More... | |
void | SetRangeMin (Int_t naxis, Double_t value) |
Set minimum axis value, taken into consideration. More... | |
void | SetRangeMax (Int_t naxis, Double_t value) |
Set maximum axis value, taken into consideration. More... | |
void | AddRangeCut (TCutG *cut, Bool_t exclude=kFALSE) |
Add TCutG object as range condition for two-dimensional case. More... | |
void | ClearRanges (Int_t naxis=-1) |
Clear all range conditions for given axis. More... | |
Bool_t | IsAnyRangeLimits () |
Return kTRUE, if any range conditions were introduced. More... | |
Bool_t | GetRangeMin (Int_t naxis, Double_t &value) |
Defines minimum allowed value for given range. More... | |
Bool_t | GetRangeMax (Int_t naxis, Double_t &value) |
Defines maximum allowed value for given range. More... | |
Int_t | GetNumRangeCondition () const |
Returns number of range condition (exclude range cuts). More... | |
void | GetRangeCondition (Int_t n, Int_t &typ, Int_t &naxis, Double_t &left, Double_t &right) const |
Return value for specified range condition. More... | |
void | SetRangeCondition (Int_t n, Int_t typ, Int_t naxis, Double_t left, Double_t right) |
Change specified range condition. More... | |
void | AddRangeCondition (Int_t typ, Int_t naxis, Double_t left, Double_t right) |
Add new range condition. More... | |
void | RemoveRangeCondition (Int_t n) |
Removes specified range condition. More... | |
Int_t | GetNumRangeCut () const |
Returns number of range cuts, assigned to object. More... | |
TCutG * | GetRangeCut (Int_t n) const |
Returns specified range cut. More... | |
Bool_t | IsRangeCutExcluding (Int_t n) |
Return kTRUE if cut eclude range. More... | |
void | SetRangeCutExcluding (Int_t n, Bool_t exclude=kTRUE) |
Set type of range cut (excluding or including). More... | |
void | RemoveRangeCut (Int_t n) |
Delete range cut with specified index. More... | |
Bool_t | CheckRangeConditions (const Double_t *values, Int_t numaxis) |
Check all range conditions for specified point. More... | |
virtual void | CollectParsTo (TGo4FitParsList &list) |
Collect all parameters to provided parameters list object. More... | |
void | SetUseBuffers (Bool_t iUse) |
Sets usage of additional buffers. More... | |
Bool_t | GetUseBuffers () |
Returns flag of usage of additional buffers. More... | |
virtual void | Print (Option_t *option) const |
Print info about object on standard output. More... | |
Protected Methods | |
TGo4FitParameter * | NewParameter (const char *Name, const char *Title, Double_t iValue=0., Bool_t Fixed=kFALSE, Int_t AtIndx=-1) |
Create new parameter with provided properties and add to parameters list. More... | |
TGo4FitParameter * | NewAmplitude (const char *Name=0, Double_t iValue=0., Bool_t IsFixed=kFALSE, Int_t AtIndx=0) |
Create amplitude parameter with specified properties. More... | |
Int_t | GetAmplIndex () |
Returns index of amplitude parameter. More... | |
void | SetAmplIndex (Int_t iAmplIndex=-1) |
Set index of amplitude parameter. More... | |
Private Attributes | |
TArrayI | fxRangeAxis |
Array for range conditions storage (axis indexes). More... | |
TArrayD | fxRangeValue |
Array for range values storaging. More... | |
TObjArray | fxCuts |
Array of TCutG objects, used for range selection. More... | |
Int_t | fiAmplIndex |
Index of amplitude parameter (-1 if none). More... | |
Bool_t | fbUseBuffers |
Specify usage of buffers after initialization. More... |
Definition at line 29 of file TGo4FitComponent.h.
|
Default constructor.
Definition at line 24 of file TGo4FitComponent.cxx. |
|
Creates TGo4FitComponent object.
Definition at line 28 of file TGo4FitComponent.cxx. References fxCuts. |
|
Destroys TGo4FitComponent object.
Definition at line 34 of file TGo4FitComponent.cxx. |
|
Return ampltide parameter object. If amplitude not exists, return 0. Definition at line 51 of file TGo4FitComponent.h. References fiAmplIndex, and TGo4FitParsList::GetPar(). Referenced by TGo4FitModel::BeforeEval(), TGo4FitAmplEstimation::CalculateWithBuffers(), TGo4FitAmplEstimation::CalculateWithIterators(), GetAmplError(), GetAmplFullName(), GetAmplName(), GetAmplValue(), TGo4FitModelFormula::GetNumberOfExprPar(), TGo4FitModelFunction::GetNumberOfFuncPar(), MakeAmpl(), TGo4Fitter::PrintAmpls(), RemoveAmpl(), SetAmplError(), and SetAmplValue(). |
|
Returns name of amplitude parameter. If none, return 0. Definition at line 57 of file TGo4FitComponent.h. References GetAmplPar(). |
|
Returns full name of amplitude parameter. If none, return 0. Definition at line 63 of file TGo4FitComponent.h. References GetAmplPar(), and TGo4FitNamed::GetFullName(). Referenced by TGo4Fitter::PrintAmpls(). |
|
Return value of amplitude parameter. If none, return 1. Definition at line 69 of file TGo4FitComponent.h. References GetAmplPar(), and TGo4FitParameter::GetValue(). Referenced by TGo4FitModel::AddModelToDataResult(), TGo4FitPanelSlots::Button_FitterDraw(), TGo4Fitter::CalculateFCN(), TGo4Fitter::CalculatesIntegral(), TGo4Fitter::CalculatesMomentums(), TGo4FitAmplEstimation::CalculateWithBuffers(), TGo4FitAmplEstimation::CalculateWithIterators(), TGo4Fitter::CreateDrawObject(), TGo4FitDataIter::CreateGraph(), TGo4FitDataIter::CreateHistogram(), TGo4FitModel::Evaluate(), TGo4FitPeakFinder::HansEsselPeakFinder(), TGo4FitModelGauss1::Integral(), TGo4Fitter::PrintAmpls(), TGo4Fitter::PrintLines(), TGo4FitPeakFinder::ROOTPeakFinder(), and TGo4FitPeakFinder::SergeyLinevPeakFinder(). |
|
Set value of amplitude parameter.
Definition at line 74 of file TGo4FitComponent.h. References fiAmplIndex, TGo4FitParsList::Get(), GetAmplPar(), and TGo4FitParameter::SetValue(). Referenced by TGo4Fitter::AddGauss1(), TGo4Fitter::AddPolynomX(), TGo4FitAmplEstimation::CalculateWithBuffers(), TGo4FitAmplEstimation::CalculateWithIterators(), Example8(), and Example9(). |
|
Return error of amplitude parameter. If none, return 0. Definition at line 80 of file TGo4FitComponent.h. References GetAmplPar(), and TGo4FitParameter::GetError(). Referenced by TGo4Fitter::PrintAmpls(). |
|
Set error of amplitude parameter.
Definition at line 85 of file TGo4FitComponent.h. References fiAmplIndex, TGo4FitParsList::Get(), GetAmplPar(), and TGo4FitParameter::SetError(). Referenced by TGo4FitAmplEstimation::CalculateWithBuffers(), and TGo4FitAmplEstimation::CalculateWithIterators(). |
|
Create amplitude parameter and adds it to parameters list. Typically amplitude is situated in the beggining of parameters list. Definition at line 56 of file TGo4FitComponent.cxx. References GetAmplPar(), NewAmplitude(), and TGo4FitParameter::SetFixed(). |
|
Remove amplitude parameter from parameters list.
Definition at line 63 of file TGo4FitComponent.cxx. References GetAmplIndex(), GetAmplPar(), TGo4FitParsList::RemoveParByIndex(), and SetAmplIndex(). |
|
Signals, if amplitude parameter can be removed from or introduced to object.
Reimplemented in TGo4FitData, TGo4FitModelFormula, and TGo4FitModelFunction. Definition at line 101 of file TGo4FitComponent.h. |
|
Includes axis range in consideration. Number of axis and minium and maximum values should be specified. Definition at line 151 of file TGo4FitComponent.cxx. References AddRangeCondition(). Referenced by TGo4Fitter::AddGraph(), TGo4Fitter::AddH1(), TGo4Fitter::AddPolynomX(), BuildFitter(), TGo4FitPanelSlots::Button_SimpleFit(), TGo4FitPanelSlots::Cmd_AddRangeCondition(), Example13(), Example9(), TGo4FitPanelSlots::Wiz_TakeCurrentRange(), and TGo4FitPanelSlots::Wiz_UseSelectedRange(). |
|
Exclude axis range from consideration.
Definition at line 155 of file TGo4FitComponent.cxx. References AddRangeCondition(). Referenced by TGo4FitPanelSlots::Cmd_AddRangeCondition(). |
|
Set minimum axis value, taken into consideration. All smaller values will be removed from consideration independently from other range conditions. Definition at line 159 of file TGo4FitComponent.cxx. References AddRangeCondition(). Referenced by TGo4FitPanelSlots::Cmd_AddRangeCondition(). |
|
Set maximum axis value, taken into consideration. All lager values will be removed from consideration independently from other range conditions. Definition at line 163 of file TGo4FitComponent.cxx. References AddRangeCondition(). Referenced by TGo4FitPanelSlots::Cmd_AddRangeCondition(). |
|
Add TCutG object as range condition for two-dimensional case. Region, defined by TCutG object, can be included or excluded from consideration according value of exclude flag. Definition at line 190 of file TGo4FitComponent.cxx. References fxCuts, and kExcludeCut. Referenced by AddRangeCut(), TGo4FitPanelSlots::Cmd_AddRangeCondition(), and Example13(). |
|
Clear all range conditions for given axis. If naxis=-1, all range conditions will be removed. Definition at line 167 of file TGo4FitComponent.cxx. References fxCuts, fxRangeAxis, and fxRangeValue. Referenced by TGo4FitPanelSlots::Button_SimpleFit(), TGo4FitPanelSlots::Cmd_RemoveRangeConditions(), and TGo4FitPanelSlots::Wiz_TakeCurrentRange(). |
|
Return kTRUE, if any range conditions were introduced.
Definition at line 186 of file TGo4FitComponent.cxx. References GetNumRangeCondition(), and GetNumRangeCut(). Referenced by TGo4FitPanelSlots::FillPopupForItem(), and TGo4FitModel::Initialize(). |
|
Defines minimum allowed value for given range. Returns kFALSE, if no range condition were specified for given axis. Definition at line 222 of file TGo4FitComponent.cxx. References fxRangeAxis, fxRangeValue, GetNumRangeCut(), GetRangeCut(), i, and kExcludeCut. |
|
Defines maximum allowed value for given range. Returns kFALSE, if no range condition were specified for given axis. Definition at line 245 of file TGo4FitComponent.cxx. References fxRangeAxis, fxRangeValue, GetNumRangeCut(), GetRangeCut(), i, and kExcludeCut. |
|
Returns number of range condition (exclude range cuts).
Definition at line 158 of file TGo4FitComponent.h. References fxRangeAxis. Referenced by CheckRangeConditions(), GetRangeCondition(), IsAnyRangeLimits(), Print(), RemoveRangeCondition(), TGo4FitPanelSlots::SetItemText(), SetRangeCondition(), TGo4FitPanelSlots::ShowItemAsGraph(), TGo4FitPanelSlots::UpdateItem(), and TGo4FitPanelSlots::Wiz_PaintData(). |
|
Return value for specified range condition. Following procedures produces correspondent values: typ=0: SetRange() typ=1: ExcludeRange() typ=2: SetRangeMin() right not defined typ=3: SetRangeMax() left not defined Definition at line 70 of file TGo4FitComponent.cxx. References fxRangeAxis, fxRangeValue, GetNumRangeCondition(), and n. Referenced by CheckRangeConditions(), TGo4FitGUIArrow::ExecuteEvent(), TGo4FitGUIArrow::Locate(), TGo4FitPanelSlots::PaintRange(), Print(), and TGo4FitPanelSlots::SetItemText(). |
|
Change specified range condition. Range condition should already exists before calling of these procedure. For exact meaning of parameters see GetRangeCondition() method. Definition at line 104 of file TGo4FitComponent.cxx. References fxRangeAxis, fxRangeValue, GetNumRangeCondition(), and n. Referenced by AddRangeCondition(), and TGo4FitGUIArrow::ExecuteEvent(). |
|
Add new range condition. For exact meaning of parameters see GetRangeCondition() method. Definition at line 132 of file TGo4FitComponent.cxx. References fxRangeAxis, fxRangeValue, and SetRangeCondition(). Referenced by ExcludeRange(), SetRange(), SetRangeMax(), and SetRangeMin(). |
|
Removes specified range condition.
Definition at line 138 of file TGo4FitComponent.cxx. References fxRangeAxis, fxRangeValue, GetNumRangeCondition(), and n. Referenced by TGo4FitPanelSlots::Cmd_RemoveRangeCondition(). |
|
Returns number of range cuts, assigned to object.
Definition at line 195 of file TGo4FitComponent.cxx. References fxCuts. Referenced by CheckRangeConditions(), TGo4FitPanelSlots::Cmd_AddRangeCondition(), GetRangeMax(), GetRangeMin(), IsAnyRangeLimits(), Print(), and TGo4FitPanelSlots::UpdateItem(). |
|
Returns specified range cut.
Definition at line 199 of file TGo4FitComponent.cxx. Referenced by CheckRangeConditions(), GetRangeMax(), GetRangeMin(), IsRangeCutExcluding(), Print(), RemoveRangeCut(), SetRangeCutExcluding(), and TGo4FitPanelSlots::UpdateItem(). |
|
Return kTRUE if cut eclude range.
Definition at line 203 of file TGo4FitComponent.cxx. References GetRangeCut(), kExcludeCut, and n. |
|
Set type of range cut (excluding or including).
Definition at line 208 of file TGo4FitComponent.cxx. References GetRangeCut(), kExcludeCut, and n. |
|
Delete range cut with specified index.
Definition at line 213 of file TGo4FitComponent.cxx. References fxCuts, GetRangeCut(), and n. Referenced by TGo4FitPanelSlots::Cmd_RemoveRangeCondition(). |
|
Check all range conditions for specified point.
Definition at line 269 of file TGo4FitComponent.cxx. References GetNumRangeCondition(), GetNumRangeCut(), GetRangeCondition(), GetRangeCut(), kExcludeCut, and n. Referenced by TGo4FitData::ApplyRangesForModelMask(), TGo4FitDataIter::CheckPointForRange(), and TGo4FitModel::EvaluateAtPoint(). |
|
Collect all parameters to provided parameters list object. Not only parameters of TGo4FitComponent copies to list. All parameters, which are situated in incpsulated objects, also will be copied to this list. Reimplemented from TGo4FitParsList. Definition at line 322 of file TGo4FitComponent.cxx. References TGo4FitParsList::CollectParsTo(), TGo4FitSlot::GetObject(), TGo4FitSlot::GetOwned(), TGo4FitSlotList::GetSlot(), n, and TGo4FitSlotList::NumSlots(). Referenced by TGo4Fitter::CollectAllPars(), and TGo4FitModel::Initialize(). |
|
Sets usage of additional buffers. Buffers can only be created in Initialize procedure.. Definition at line 230 of file TGo4FitComponent.h. References fbUseBuffers. |
|
Returns flag of usage of additional buffers. Buffers can only be created in Initialize procedure.. Definition at line 236 of file TGo4FitComponent.h. References fbUseBuffers. |
|
Print info about object on standard output.
Reimplemented from TGo4FitParsList. Reimplemented in TGo4FitData, TGo4FitDataGraph, TGo4FitDataHistogram, TGo4FitDataProfile, TGo4FitDataRidge, TGo4FitModel, TGo4FitModelFormula, TGo4FitModelFromData, TGo4FitModelFunction, TGo4FitModelGauss1, TGo4FitModelGauss2, TGo4FitModelGaussN, and TGo4FitModelPolynom. Definition at line 333 of file TGo4FitComponent.cxx. References fiAmplIndex, GetNumRangeCondition(), GetNumRangeCut(), GetRangeCondition(), GetRangeCut(), kExcludeCut, n, TGo4FitParsList::Print(), and TGo4FitNamed::Print(). Referenced by TGo4FitModel::Print(), and TGo4FitData::Print(). |
|
Create new parameter with provided properties and add to parameters list.
Definition at line 37 of file TGo4FitComponent.cxx. References TGo4FitParsList::AddPar(), TGo4FitParsList::InsertPar(), and TGo4FitParameter::SetFixed(). Referenced by TGo4FitModelPolynom::CreateOrdersPars(), TGo4FitModelGaussN::SetAxisNumbers(), TGo4FitModelFormula::SetNumberOfExprPar(), TGo4FitModelFunction::SetNumberOfFuncPar(), TGo4FitModelFormula::TGo4FitModelFormula(), TGo4FitModelFunction::TGo4FitModelFunction(), TGo4FitModelGauss1::TGo4FitModelGauss1(), TGo4FitModelGauss2::TGo4FitModelGauss2(), TGo4FitModelGaussN::TGo4FitModelGaussN(), and TModelTemplate::TModelTemplate(). |
|
Create amplitude parameter with specified properties.
Definition at line 45 of file TGo4FitComponent.cxx. References TGo4FitParsList::AddPar(), TGo4FitParsList::InsertPar(), TGo4FitParsList::NumPars(), SetAmplIndex(), and TGo4FitParameter::SetFixed(). Referenced by MakeAmpl(), TGo4FitData::TGo4FitData(), and TGo4FitModel::TGo4FitModel(). |
|
Returns index of amplitude parameter.
Definition at line 258 of file TGo4FitComponent.h. References fiAmplIndex. Referenced by TGo4FitModelFormula::GetExprPar(), TGo4FitModelFunction::GetFuncPar(), TGo4FitModel::RebuildShape(), and RemoveAmpl(). |
|
Set index of amplitude parameter.
Definition at line 263 of file TGo4FitComponent.h. References fiAmplIndex. Referenced by NewAmplitude(), and RemoveAmpl(). |
|
Array for range conditions storage (axis indexes).
Definition at line 270 of file TGo4FitComponent.h. Referenced by AddRangeCondition(), ClearRanges(), GetNumRangeCondition(), GetRangeCondition(), GetRangeMax(), GetRangeMin(), RemoveRangeCondition(), and SetRangeCondition(). |
|
Array for range values storaging.
Definition at line 275 of file TGo4FitComponent.h. Referenced by AddRangeCondition(), ClearRanges(), GetRangeCondition(), GetRangeMax(), GetRangeMin(), RemoveRangeCondition(), and SetRangeCondition(). |
|
Array of TCutG objects, used for range selection.
Definition at line 280 of file TGo4FitComponent.h. Referenced by AddRangeCut(), ClearRanges(), GetNumRangeCut(), GetRangeCut(), RemoveRangeCut(), and TGo4FitComponent(). |
|
Index of amplitude parameter (-1 if none).
Definition at line 285 of file TGo4FitComponent.h. Referenced by GetAmplIndex(), GetAmplPar(), Print(), SetAmplError(), SetAmplIndex(), and SetAmplValue(). |
|
Specify usage of buffers after initialization.
Definition at line 290 of file TGo4FitComponent.h. Referenced by GetUseBuffers(), and SetUseBuffers(). |