14#ifndef TGO4FITCOMPONENT_H
15#define TGO4FITCOMPONENT_H
92 Bool_t
MakeAmpl(Bool_t isFixed = kFALSE);
108 void SetRange(Int_t naxis, Double_t min, Double_t max);
113 void ExcludeRange(Int_t naxis, Double_t min, Double_t max);
131 void AddRangeCut(TCutG *cut, Bool_t exclude = kFALSE);
148 Bool_t
GetRangeMin(Int_t naxis, Double_t& value)
const;
154 Bool_t
GetRangeMax(Int_t naxis, Double_t& value)
const;
170 void GetRangeCondition(Int_t n, Int_t &typ, Int_t &naxis, Double_t& left, Double_t& right)
const;
177 void SetRangeCondition(Int_t n, Int_t typ, Int_t naxis, Double_t left, Double_t right);
242 void Print(Option_t *option =
"")
const override;
Basic abstract class, combining common properties of data and model.
TCutG * GetRangeCut(Int_t n) const
Returns specified range cut.
void SetRangeCondition(Int_t n, Int_t typ, Int_t naxis, Double_t left, Double_t right)
Change specified range condition.
TGo4FitParameter * GetAmplPar()
Return amplitude parameter object.
Bool_t GetRangeMax(Int_t naxis, Double_t &value) const
Defines maximum allowed value for given range.
void SetAmplIndex(Int_t iAmplIndex=-1)
Set index of amplitude parameter.
Int_t GetNumRangeCondition() const
Returns number of range condition (exclude range cuts).
void SetRange(Int_t naxis, Double_t min, Double_t max)
Includes axis range in consideration.
Bool_t fbUseBuffers
Specify usage of buffers after initialization.
Bool_t CheckRangeConditions(const Double_t *values, Int_t numaxis)
Check all range conditions for specified point.
TObjArray fxCuts
Array of TCutG objects, used for range selection.
void GetRangeCondition(Int_t n, Int_t &typ, Int_t &naxis, Double_t &left, Double_t &right) const
Return value for specified range condition.
void ClearRanges(Int_t naxis=-1)
Clear all range conditions for given axis.
Double_t GetAmplError()
Return error of amplitude parameter.
const char * GetAmplFullName()
Returns full name of amplitude parameter.
void SetRangeMin(Int_t naxis, Double_t value)
Set minimum axis value, taken into consideration.
Bool_t GetUseBuffers() const
Returns flag of usage of additional buffers.
void CollectParsTo(TGo4FitParsList &list) override
Collect all parameters to provided parameters list object.
Bool_t MakeAmpl(Bool_t isFixed=kFALSE)
Create amplitude parameter and adds it to parameters list.
Bool_t IsRangeCutExcluding(Int_t n) const
Return kTRUE if cut exclude range.
void SetAmplError(Double_t iError)
Set error of amplitude parameter.
Int_t GetNumRangeCut() const
Returns number of range cuts, assigned to object.
Int_t GetAmplIndex() const
Returns index of amplitude parameter.
void ExcludeRange(Int_t naxis, Double_t min, Double_t max)
Exclude axis range from consideration.
Int_t fiAmplIndex
Index of amplitude parameter (-1 if none)
TArrayD fxRangeValue
Array for range values storage.
TGo4FitParameter * NewAmplitude(const char *Name=nullptr, Double_t iValue=0., Bool_t IsFixed=kFALSE, Int_t AtIndx=0)
Create amplitude parameter with specified properties.
TGo4FitComponent()
Default constructor.
Bool_t IsAnyRangeLimits() const
Return kTRUE, if any range conditions were introduced.
void SetUseBuffers(Bool_t iUse)
Sets usage of additional buffers.
const char * GetAmplName()
Returns name of amplitude parameter.
void SetRangeCutExcluding(Int_t n, Bool_t exclude=kTRUE)
Set type of range cut (excluding or including)
Bool_t GetRangeMin(Int_t naxis, Double_t &value) const
Defines minimum allowed value for given range.
void RemoveRangeCondition(Int_t n)
Removes specified range condition.
void AddRangeCondition(Int_t typ, Int_t naxis, Double_t left, Double_t right)
Add new range condition.
virtual Bool_t CanAmplTouch()
Signals, if amplitude parameter can be removed from or introduced to object.
void SetRangeMax(Int_t naxis, Double_t value)
Set maximum axis value, taken into consideration.
void RemoveRangeCut(Int_t n)
Delete range cut with specified index.
Double_t GetAmplValue()
Return value of amplitude parameter.
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.
void SetAmplValue(Double_t iAmpl)
Set value of amplitude parameter.
void Print(Option_t *option="") const override
Print info about object on standard output.
void AddRangeCut(TCutG *cut, Bool_t exclude=kFALSE)
Add TCutG object as range condition for two-dimensional case.
Bool_t RemoveAmpl()
Remove amplitude parameter from parameters list.
virtual ~TGo4FitComponent()
Destroys TGo4FitComponent object.
TArrayI fxRangeAxis
Array for range conditions storage (axis indexes)
Model and data objects parameter.
List of TGo4FitParameter objects.
TGo4FitParsList()
Default constructor.