GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4FitComponent Class Reference

Basic abstract class, combining common properties of data and model. More...

#include <TGo4FitComponent.h>

Inheritance diagram for TGo4FitComponent:

Public Member Functions

 TGo4FitComponent ()
 Default constructor.
 TGo4FitComponent ()
 Default constructor.
 TGo4FitComponent (const char *iName, const char *iTitle)
 Creates TGo4FitComponent object.
 TGo4FitComponent (const char *iName, const char *iTitle)
 Creates TGo4FitComponent object.
virtual ~TGo4FitComponent ()
 Destroys TGo4FitComponent object.
virtual ~TGo4FitComponent ()
 Destroys TGo4FitComponent object.
void AddRangeCondition (Int_t typ, Int_t naxis, Double_t left, Double_t right)
 Add new range condition.
void AddRangeCondition (Int_t typ, Int_t naxis, Double_t left, Double_t right)
 Add new range condition.
void AddRangeCut (TCutG *cut, Bool_t exclude=kFALSE)
 Add TCutG object as range condition for two-dimensional case.
void AddRangeCut (TCutG *cut, Bool_t exclude=kFALSE)
 Add TCutG object as range condition for two-dimensional case.
virtual Bool_t CanAmplTouch ()
 Signals, if amplitude parameter can be removed from or introduced to object.
virtual Bool_t CanAmplTouch ()
 Signals, if amplitude parameter can be removed from or introduced to object.
Bool_t CheckRangeConditions (const Double_t *values, Int_t numaxis)
 Check all range conditions for specified point.
Bool_t CheckRangeConditions (const Double_t *values, Int_t numaxis)
 Check all range conditions for specified point.
void ClearRanges (Int_t naxis=-1)
 Clear all range conditions for given axis.
void ClearRanges (Int_t naxis=-1)
 Clear all range conditions for given axis.
void CollectParsTo (TGo4FitParsList &list) override
 Collect all parameters to provided parameters list object.
void CollectParsTo (TGo4FitParsList &list) override
 Collect all parameters to provided parameters list object.
void ExcludeRange (Int_t naxis, Double_t min, Double_t max)
 Exclude axis range from consideration.
void ExcludeRange (Int_t naxis, Double_t min, Double_t max)
 Exclude axis range from consideration.
Double_t GetAmplError ()
 Return error of amplitude parameter.
Double_t GetAmplError ()
 Return error of amplitude parameter.
const char * GetAmplFullName ()
 Returns full name of amplitude parameter.
const char * GetAmplFullName ()
 Returns full name of amplitude parameter.
const char * GetAmplName ()
 Returns name of amplitude parameter.
const char * GetAmplName ()
 Returns name of amplitude parameter.
TGo4FitParameterGetAmplPar ()
 Return amplitude parameter object.
TGo4FitParameterGetAmplPar ()
 Return amplitude parameter object.
Double_t GetAmplValue ()
 Return value of amplitude parameter.
Double_t GetAmplValue ()
 Return value of amplitude parameter.
Int_t GetNumRangeCondition () const
 Returns number of range condition (exclude range cuts).
Int_t GetNumRangeCondition () const
 Returns number of range condition (exclude range cuts).
Int_t GetNumRangeCut () const
 Returns number of range cuts, assigned to object.
Int_t GetNumRangeCut () const
 Returns number of range cuts, assigned to object.
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 GetRangeCondition (Int_t n, Int_t &typ, Int_t &naxis, Double_t &left, Double_t &right) const
 Return value for specified range condition.
TCutG * GetRangeCut (Int_t n) const
 Returns specified range cut.
TCutG * GetRangeCut (Int_t n) const
 Returns specified range cut.
Bool_t GetRangeMax (Int_t naxis, Double_t &value) const
 Defines maximum allowed value for given range.
Bool_t GetRangeMax (Int_t naxis, Double_t &value) const
 Defines maximum allowed value for given range.
Bool_t GetRangeMin (Int_t naxis, Double_t &value) const
 Defines minimum allowed value for given range.
Bool_t GetRangeMin (Int_t naxis, Double_t &value) const
 Defines minimum allowed value for given range.
Bool_t GetUseBuffers () const
 Returns flag of usage of additional buffers.
Bool_t GetUseBuffers () const
 Returns flag of usage of additional buffers.
Bool_t IsAnyRangeLimits () const
 Return kTRUE, if any range conditions were introduced.
Bool_t IsAnyRangeLimits () const
 Return kTRUE, if any range conditions were introduced.
Bool_t IsRangeCutExcluding (Int_t n) const
 Return kTRUE if cut exclude range.
Bool_t IsRangeCutExcluding (Int_t n) const
 Return kTRUE if cut exclude range.
Bool_t MakeAmpl (Bool_t isFixed=kFALSE)
 Create amplitude parameter and adds it to parameters list.
Bool_t MakeAmpl (Bool_t isFixed=kFALSE)
 Create amplitude parameter and adds it to parameters list.
void Print (Option_t *option="") const override
 Print info about object on standard output.
void Print (Option_t *option="") const override
 Print info about object on standard output.
Bool_t RemoveAmpl ()
 Remove amplitude parameter from parameters list.
Bool_t RemoveAmpl ()
 Remove amplitude parameter from parameters list.
void RemoveRangeCondition (Int_t n)
 Removes specified range condition.
void RemoveRangeCondition (Int_t n)
 Removes specified range condition.
void RemoveRangeCut (Int_t n)
 Delete range cut with specified index.
void RemoveRangeCut (Int_t n)
 Delete range cut with specified index.
void SetAmplError (Double_t iError)
 Set error of amplitude parameter.
void SetAmplError (Double_t iError)
 Set error of amplitude parameter.
void SetAmplValue (Double_t iAmpl)
 Set value of amplitude parameter.
void SetAmplValue (Double_t iAmpl)
 Set value of amplitude parameter.
void SetRange (Int_t naxis, Double_t min, Double_t max)
 Includes axis range in consideration.
void SetRange (Int_t naxis, Double_t min, Double_t max)
 Includes axis range in consideration.
void SetRangeCondition (Int_t n, Int_t typ, Int_t naxis, Double_t left, Double_t right)
 Change specified range condition.
void SetRangeCondition (Int_t n, Int_t typ, Int_t naxis, Double_t left, Double_t right)
 Change specified range condition.
void SetRangeCutExcluding (Int_t n, Bool_t exclude=kTRUE)
 Set type of range cut (excluding or including).
void SetRangeCutExcluding (Int_t n, Bool_t exclude=kTRUE)
 Set type of range cut (excluding or including).
void SetRangeMax (Int_t naxis, Double_t value)
 Set maximum axis value, taken into consideration.
void SetRangeMax (Int_t naxis, Double_t value)
 Set maximum axis value, taken into consideration.
void SetRangeMin (Int_t naxis, Double_t value)
 Set minimum axis value, taken into consideration.
void SetRangeMin (Int_t naxis, Double_t value)
 Set minimum axis value, taken into consideration.
void SetUseBuffers (Bool_t iUse)
 Sets usage of additional buffers.
void SetUseBuffers (Bool_t iUse)
 Sets usage of additional buffers.
Public Member Functions inherited from TGo4FitParsList
 TGo4FitParsList ()
 Default constructor.
 TGo4FitParsList ()
 Default constructor.
 TGo4FitParsList (Bool_t IsParsOwned)
 Create TGo4FitParsList object and set flag of ownership of parameters object.
 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.
 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 ~TGo4FitParsList ()
 Destroy TGo4FitParsList object.
virtual bool CanRollbackPars ()
 Return true if parameters can be safely restored from memorized values;.
virtual bool CanRollbackPars ()
 Return true if parameters can be safely restored from memorized values;.
void ClearPars ()
 Remove all parameters from list.
void ClearPars ()
 Remove all parameters from list.
TGo4FitParameterCreatePar (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.
TGo4FitParameterCreatePar (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.
TGo4FitParameterFindPar (const char *OwnerFullName, const char *ParName)
 Find parameter with given owner full name and parameter name.
TGo4FitParameterFindPar (const char *OwnerFullName, const char *ParName)
 Find parameter with given owner full name and parameter name.
TGo4FitParameterFindPar (const char *ParName)
 Find parameter object with given name.
TGo4FitParameterFindPar (const char *ParName)
 Find parameter object with given name.
TGo4FitParameterFindPar (TGo4FitParameter *par)
 Find parameter in list.
TGo4FitParameterFindPar (TGo4FitParameter *par)
 Find parameter in list.
TGo4FitParameterGetPar (Int_t n)
 Return parameter according given index.
TGo4FitParameterGetPar (Int_t n)
 Return parameter according given index.
virtual Bool_t GetParEpsilon (const char *ParName, Double_t &Epsilon)
 Get 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.
Double_t GetParError (const char *ParName)
 Get error value for parameter with given name.
Double_t GetParError (const char *ParName)
 Get error value for parameter with given name.
virtual Bool_t GetParFixed (const char *ParName)
 Return status 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.
const char * GetParFullName (Int_t n)
 Return full name of parameter with given index.
const char * GetParFullName (Int_t n)
 Return full name of parameter with given index.
Int_t GetParIndex (const TGo4FitParameter *par)
 Return index of given parameter in list.
Int_t GetParIndex (const TGo4FitParameter *par)
 Return index of given parameter in list.
const char * GetParName (Int_t n)
 Return name of parameter with given index.
const char * GetParName (Int_t n)
 Return name of parameter with given index.
virtual Bool_t GetParRange (const char *ParName, Double_t &RangeMin, Double_t &RangeMax)
 Get 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.
void GetParsValues (Double_t *pars)
 Copy values of all parameters in list to provided array.
void GetParsValues (Double_t *pars)
 Copy values of all parameters in list to provided array.
Double_t GetParValue (const char *ParName)
 Return value of parameter with given name.
Double_t GetParValue (const char *ParName)
 Return value of parameter with given name.
Bool_t IsAllParsFixed ()
 Returns true, if all parameters in list fixed;.
Bool_t IsAllParsFixed ()
 Returns true, if all parameters in list fixed;.
virtual void MemorizePars ()
 Memorize values of all parameters.
virtual void MemorizePars ()
 Memorize values of all parameters.
Int_t NumFixedPars ()
 Return number of fixed pars.
Int_t NumFixedPars ()
 Return number of fixed pars.
Int_t NumFreePars ()
 Return number of free pars.
Int_t NumFreePars ()
 Return number of free pars.
virtual Int_t NumPars ()
 Return number of parameters in list.
virtual Int_t NumPars ()
 Return number of parameters in list.
void Print (Option_t *option="") const override
 Default print method.
void Print (Option_t *option="") const override
 Default print method.
void PrintPars () const
 Print only value and error of all parameters in list.
void PrintPars () const
 Print only value and error of all parameters in list.
virtual void RememberPars ()
 Restore parameters values, which were stored by MemorizePars() routine;.
virtual void RememberPars ()
 Restore parameters values, which were stored by MemorizePars() routine;.
Bool_t RemovePar (const char *name)
 Remove parameter from list with given name.
Bool_t RemovePar (const char *name)
 Remove parameter from list with given name.
Bool_t RemovePar (TGo4FitParameter *par)
 Remove parameter from list.
Bool_t RemovePar (TGo4FitParameter *par)
 Remove parameter from list.
virtual Bool_t SetParEpsilon (const char *ParName, Double_t Epsilon)
 Set epsilon value for parameter with given name.
virtual Bool_t SetParEpsilon (const char *ParName, Double_t Epsilon)
 Set epsilon value for parameter with given name.
Bool_t SetParError (const char *ParName, Double_t iError)
 Set 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 SetParFixed (const char *ParName, Bool_t iFixed=kTRUE)
 Set for parameter with given name, is it fixed or not.
void SetParName (Int_t n, const char *name)
 Set new name for parameter object with provided index.
void SetParName (Int_t n, const char *name)
 Set new name for parameter object with provided index.
virtual Bool_t SetParRange (const char *ParName, Double_t RangeMin, Double_t RangeMax)
 Set range limits for parameter with given name.
virtual Bool_t SetParRange (const char *ParName, Double_t RangeMin, Double_t RangeMax)
 Set range limits for parameter with given name.
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 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 *pars)
 Set value for all parameters from array.
void SetParsValues (Double_t *pars)
 Set value for all parameters from array.
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.
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.
Bool_t SetParValue (const char *ParName, Double_t iValue)
 Set value of parameter with given name.
Bool_t SetParValue (const char *ParName, Double_t iValue)
 Set value of parameter with given name.
Public Member Functions inherited from TGo4FitNamed
 TGo4FitNamed ()
 Default constructor.
 TGo4FitNamed ()
 Default constructor.
 TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=nullptr)
 Creates TGo4FitNamed object and set name and title.
 TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=nullptr)
 Creates TGo4FitNamed object and set name and title.
virtual ~TGo4FitNamed ()
 Destroy TGo4FitNamed object.
virtual ~TGo4FitNamed ()
 Destroy TGo4FitNamed object.
const char * GetFullName ()
 Returns full name of object.
const char * GetFullName ()
 Returns full name of object.
TNamed * GetOwner ()
 Return owner of object.
TNamed * GetOwner ()
 Return owner of object.
const char * GetOwnerFullName ()
 Return full name of owner.
const char * GetOwnerFullName ()
 Return full name of owner.
void Print (Option_t *option="") const override
void Print (Option_t *option="") const override
void SetOwner (TNamed *iOwner)
 Sets owner of object.
void SetOwner (TNamed *iOwner)
 Sets owner of object.
Public Member Functions inherited from TGo4FitSlotList
 TGo4FitSlotList ()
 TGo4FitSlotList ()
virtual ~TGo4FitSlotList ()
virtual ~TGo4FitSlotList ()
Bool_t CheckObjects (Bool_t MakeOut=kTRUE)
 Check, if all necessary objects are provided.
Bool_t CheckObjects (Bool_t MakeOut=kTRUE)
 Check, if all necessary objects are provided.
void ClearObjects (const char *PlaceName=nullptr, Bool_t NonOwned=kTRUE)
 Clear object from slot(s), which are defined by PlaceName condition.
void ClearObjects (const char *PlaceName=nullptr, Bool_t NonOwned=kTRUE)
 Clear object from slot(s), which are defined by PlaceName condition.
void ClearSlot (TGo4FitSlot *slot, Bool_t NonOwned)
 Clear object in specified slot.
void ClearSlot (TGo4FitSlot *slot, Bool_t NonOwned)
 Clear object in specified slot.
Bool_t ConnectSlots (const char *Slot1FullName, const char *Slot2FullName)
 Connects first slot to second.
Bool_t ConnectSlots (const char *Slot1FullName, const char *Slot2FullName)
 Connects first slot to second.
Bool_t ConnectSlots (TGo4FitSlot *slot1, TGo4FitSlot *slot2)
 Connects first slot to second.
Bool_t ConnectSlots (TGo4FitSlot *slot1, TGo4FitSlot *slot2)
 Connects first slot to second.
virtual void FillSlotList (TSeqCollection *lst)
 Fill list of TGo4FitSlot objects to provided collection.
virtual void FillSlotList (TSeqCollection *lst)
 Fill list of TGo4FitSlot objects to provided collection.
TGo4FitSlotFindSlot (const char *FullSlotName)
 Find slot in list with given full name;.
TGo4FitSlotFindSlot (const char *FullSlotName)
 Find slot in list with given full name;.
TGo4FitSlotGetSlot (Int_t nslot)
 Returns slots from list with specified index.
TGo4FitSlotGetSlot (Int_t nslot)
 Returns slots from list with specified index.
const TObjArray * GetSlotList (Bool_t ForceUpdate=kFALSE)
 Return pointer in TObjArray with list of all slots in list.
const TObjArray * GetSlotList (Bool_t ForceUpdate=kFALSE)
 Return pointer in TObjArray with list of all slots in list.
Bool_t IsEmptySlots ()
 Return kTRUE, if there are empty slots in list.
Bool_t IsEmptySlots ()
 Return kTRUE, if there are empty slots in list.
TGo4FitSlotIsObjectInSlots (TObject *obj)
 Checks, if object assign to one of slots.
TGo4FitSlotIsObjectInSlots (TObject *obj)
 Checks, if object assign to one of slots.
Int_t NumSlots ()
 Returns number of slots in list.
Int_t NumSlots ()
 Returns number of slots in list.
TGo4FitSlotSetObject (const char *PlaceName, TObject *obj, Bool_t iOwned=kFALSE)
 Set object to first suitable slot, which have PlaceName name or owner of which has PlaceName full name with defined ownership flag.
TGo4FitSlotSetObject (const char *PlaceName, TObject *obj, Bool_t iOwned=kFALSE)
 Set object to first suitable slot, which have PlaceName name or owner of which has PlaceName full name with defined ownership flag.
TGo4FitSlotSetObject (TObject *obj, Bool_t iOwned=kFALSE)
 Set object to first suitable slot with defined ownership flag.
TGo4FitSlotSetObject (TObject *obj, Bool_t iOwned=kFALSE)
 Set object to first suitable slot with defined ownership flag.
void SetSaveFlagForObjects (Int_t iSaveFlag, const char *PlaceName=nullptr)
 Set save flag for object(s), assigned to fitter.
void SetSaveFlagForObjects (Int_t iSaveFlag, const char *PlaceName=nullptr)
 Set save flag for object(s), assigned to fitter.
void SetUpdateSlotList ()
 Update internal list of slots (if exists).
void SetUpdateSlotList ()
 Update internal list of slots (if exists).

Protected Member Functions

Int_t GetAmplIndex () const
 Returns index of amplitude parameter.
Int_t GetAmplIndex () const
 Returns index of amplitude parameter.
TGo4FitParameterNewAmplitude (const char *Name=nullptr, Double_t iValue=0., Bool_t IsFixed=kFALSE, Int_t AtIndx=0)
 Create amplitude parameter with specified properties.
TGo4FitParameterNewAmplitude (const char *Name=nullptr, Double_t iValue=0., Bool_t IsFixed=kFALSE, Int_t AtIndx=0)
 Create amplitude parameter with specified properties.
TGo4FitParameterNewParameter (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.
TGo4FitParameterNewParameter (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 SetAmplIndex (Int_t iAmplIndex=-1)
 Set index of amplitude parameter.
void SetAmplIndex (Int_t iAmplIndex=-1)
 Set index of amplitude parameter.
Protected Member Functions inherited from TGo4FitParsList
TGo4FitParameterAddPar (TGo4FitParameter *par)
TGo4FitParameterAddPar (TGo4FitParameter *par)
void ClearParsBlocking ()
void ClearParsBlocking ()
TGo4FitParameterFind (const char *OwnerFullName, const char *ParName)
TGo4FitParameterFind (const char *OwnerFullName, const char *ParName)
TGo4FitParameterFind (const char *ParName)
TGo4FitParameterFind (const char *ParName)
TGo4FitParameterFind (TGo4FitParameter *par)
TGo4FitParameterFind (TGo4FitParameter *par)
virtual TGo4FitParameterGet (Int_t n)
virtual TGo4FitParameterGet (Int_t n)
TGo4FitParameterInsertPar (TGo4FitParameter *par, Int_t indx)
TGo4FitParameterInsertPar (TGo4FitParameter *par, Int_t indx)
Bool_t RemoveParByIndex (Int_t indx)
Bool_t RemoveParByIndex (Int_t indx)
void SetParsOwner (TGo4FitNamed *iOwner)
void SetParsOwner (TGo4FitNamed *iOwner)
Protected Member Functions inherited from TGo4FitSlotList
void CheckDuplicatesOnSlot ()
 Resolve situation, when same object assigned to several slots with ownership flag.
void CheckDuplicatesOnSlot ()
 Resolve situation, when same object assigned to several slots with ownership flag.
 ClassDef (TGo4FitSlotList, 1)
 ClassDef (TGo4FitSlotList, 1)
void PrepareSlotsForWriting ()
void PrepareSlotsForWriting ()

Private Attributes

Bool_t fbUseBuffers {kFALSE}
 Specify usage of buffers after initialization.
Int_t fiAmplIndex {0}
 Index of amplitude parameter (-1 if none).
TObjArray fxCuts
 Array of TCutG objects, used for range selection.
TArrayI fxRangeAxis
 Array for range conditions storage (axis indexes).
TArrayD fxRangeValue
 Array for range values storage.

Additional Inherited Members

Protected Attributes inherited from TGo4FitSlotList
Bool_t fbUpdateSlotList {kFALSE}
TObjArray * fxSlotList {nullptr}

Detailed Description

Basic abstract class, combining common properties of data and model.

Definition at line 30 of file TGo4FitComponent.h.

Constructor & Destructor Documentation

◆ TGo4FitComponent() [1/4]

◆ TGo4FitComponent() [2/4]

TGo4FitComponent::TGo4FitComponent ( const char * iName,
const char * iTitle )

◆ ~TGo4FitComponent() [1/2]

TGo4FitComponent::~TGo4FitComponent ( )
virtual

Destroys TGo4FitComponent object.

Definition at line 38 of file TGo4FitComponent.cxx.

◆ TGo4FitComponent() [3/4]

TGo4FitComponent::TGo4FitComponent ( )

Default constructor.

◆ TGo4FitComponent() [4/4]

TGo4FitComponent::TGo4FitComponent ( const char * iName,
const char * iTitle )

Creates TGo4FitComponent object.

◆ ~TGo4FitComponent() [2/2]

virtual TGo4FitComponent::~TGo4FitComponent ( )
virtual

Destroys TGo4FitComponent object.

Member Function Documentation

◆ AddRangeCondition() [1/2]

void TGo4FitComponent::AddRangeCondition ( Int_t typ,
Int_t naxis,
Double_t left,
Double_t right )

Add new range condition.

For exact meaning of parameters see GetRangeCondition() method.

Definition at line 196 of file TGo4FitComponent.cxx.

References fxRangeAxis, fxRangeValue, and SetRangeCondition().

Referenced by ExcludeRange(), SetRange(), SetRangeMax(), and SetRangeMin().

◆ AddRangeCondition() [2/2]

void TGo4FitComponent::AddRangeCondition ( Int_t typ,
Int_t naxis,
Double_t left,
Double_t right )

Add new range condition.

For exact meaning of parameters see GetRangeCondition() method.

◆ AddRangeCut() [1/2]

void TGo4FitComponent::AddRangeCut ( TCutG * cut,
Bool_t exclude = kFALSE )

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 269 of file TGo4FitComponent.cxx.

References fxCuts, and kExcludeCut.

Referenced by AddRangeCut(), TGo4FitPanel::Cmd_AddRangeCondition(), and Example13().

◆ AddRangeCut() [2/2]

void TGo4FitComponent::AddRangeCut ( TCutG * cut,
Bool_t exclude = kFALSE )

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.

◆ CanAmplTouch() [1/2]

virtual Bool_t TGo4FitComponent::CanAmplTouch ( )
inlinevirtual

Signals, if amplitude parameter can be removed from or introduced to object.

Reimplemented in TGo4FitData, TGo4FitData, TGo4FitModelFormula, TGo4FitModelFormula, TGo4FitModelFunction, and TGo4FitModelFunction.

Definition at line 102 of file TGo4FitComponent.h.

Referenced by TGo4FitPanel::ChangeModelPar(), and TGo4FitPanel::FillNamedWidget().

◆ CanAmplTouch() [2/2]

virtual Bool_t TGo4FitComponent::CanAmplTouch ( )
inlinevirtual

Signals, if amplitude parameter can be removed from or introduced to object.

Reimplemented in TGo4FitData, TGo4FitData, TGo4FitModelFormula, TGo4FitModelFormula, TGo4FitModelFunction, and TGo4FitModelFunction.

Definition at line 102 of file TGo4FitComponent.h.

◆ CheckRangeConditions() [1/2]

Bool_t TGo4FitComponent::CheckRangeConditions ( const Double_t * values,
Int_t numaxis )

◆ CheckRangeConditions() [2/2]

Bool_t TGo4FitComponent::CheckRangeConditions ( const Double_t * values,
Int_t numaxis )

Check all range conditions for specified point.

◆ ClearRanges() [1/2]

void TGo4FitComponent::ClearRanges ( Int_t naxis = -1)

Clear all range conditions for given axis.

If naxis=-1, all range conditions will be removed.

Definition at line 239 of file TGo4FitComponent.cxx.

References fxCuts, fxRangeAxis, and fxRangeValue.

Referenced by TGo4FitPanel::Button_SimpleFit(), TGo4FitPanel::Cmd_RemoveRangeConditions(), TGo4FitPanel::Wiz_DataClearRangesBtn_clicked(), and TGo4FitPanel::Wiz_TakeCurrentRange().

◆ ClearRanges() [2/2]

void TGo4FitComponent::ClearRanges ( Int_t naxis = -1)

Clear all range conditions for given axis.

If naxis=-1, all range conditions will be removed.

◆ CollectParsTo() [1/2]

void TGo4FitComponent::CollectParsTo ( TGo4FitParsList & list)
overridevirtual

Collect all parameters to provided parameters list object.

Not only parameters of TGo4FitComponent copies to list. All parameters, which are situated in encapsulated objects, also will be copied to this list.

Reimplemented from TGo4FitParsList.

Definition at line 441 of file TGo4FitComponent.cxx.

References TGo4FitParsList::TGo4FitParsList(), TGo4FitParsList::CollectParsTo(), TGo4FitSlot::GetObject(), TGo4FitSlot::GetOwned(), TGo4FitSlotList::GetSlot(), and TGo4FitSlotList::NumSlots().

Referenced by TGo4Fitter::CollectAllPars(), and TGo4FitModel::Initialize().

◆ CollectParsTo() [2/2]

void TGo4FitComponent::CollectParsTo ( TGo4FitParsList & list)
overridevirtual

Collect all parameters to provided parameters list object.

Not only parameters of TGo4FitComponent copies to list. All parameters, which are situated in encapsulated objects, also will be copied to this list.

Reimplemented from TGo4FitParsList.

References TGo4FitParsList::TGo4FitParsList().

◆ ExcludeRange() [1/2]

void TGo4FitComponent::ExcludeRange ( Int_t naxis,
Double_t min,
Double_t max )

Exclude axis range from consideration.

Definition at line 224 of file TGo4FitComponent.cxx.

References AddRangeCondition().

Referenced by TGo4FitPanel::Cmd_AddRangeCondition().

◆ ExcludeRange() [2/2]

void TGo4FitComponent::ExcludeRange ( Int_t naxis,
Double_t min,
Double_t max )

Exclude axis range from consideration.

◆ GetAmplError() [1/2]

Double_t TGo4FitComponent::GetAmplError ( )

Return error of amplitude parameter.

If none, return 0.

Definition at line 93 of file TGo4FitComponent.cxx.

References GetAmplPar(), and TGo4FitParameter::GetError().

Referenced by TGo4Fitter::PrintAmpls().

◆ GetAmplError() [2/2]

Double_t TGo4FitComponent::GetAmplError ( )

Return error of amplitude parameter.

If none, return 0.

◆ GetAmplFullName() [1/2]

const char * TGo4FitComponent::GetAmplFullName ( )

Returns full name of amplitude parameter.

If none, return nullptr.

Definition at line 78 of file TGo4FitComponent.cxx.

References GetAmplPar(), and TGo4FitNamed::GetFullName().

Referenced by TGo4Fitter::PrintAmpls().

◆ GetAmplFullName() [2/2]

const char * TGo4FitComponent::GetAmplFullName ( )

Returns full name of amplitude parameter.

If none, return nullptr.

◆ GetAmplIndex() [1/2]

Int_t TGo4FitComponent::GetAmplIndex ( ) const
inlineprotected

Returns index of amplitude parameter.

Definition at line 259 of file TGo4FitComponent.h.

References fiAmplIndex.

Referenced by TGo4FitModelFormula::GetExprPar(), TGo4FitModelFunction::GetFuncPar(), TGo4FitModel::RebuildShape(), and RemoveAmpl().

◆ GetAmplIndex() [2/2]

Int_t TGo4FitComponent::GetAmplIndex ( ) const
inlineprotected

Returns index of amplitude parameter.

Definition at line 259 of file TGo4FitComponent.h.

References fiAmplIndex.

◆ GetAmplName() [1/2]

const char * TGo4FitComponent::GetAmplName ( )

Returns name of amplitude parameter.

If none, return nullpptr.

Definition at line 73 of file TGo4FitComponent.cxx.

References GetAmplPar().

◆ GetAmplName() [2/2]

const char * TGo4FitComponent::GetAmplName ( )

Returns name of amplitude parameter.

If none, return nullpptr.

◆ GetAmplPar() [1/2]

◆ GetAmplPar() [2/2]

TGo4FitParameter * TGo4FitComponent::GetAmplPar ( )

Return amplitude parameter object.

If amplitude not exists, return nullptr.

◆ GetAmplValue() [1/2]

◆ GetAmplValue() [2/2]

Double_t TGo4FitComponent::GetAmplValue ( )

Return value of amplitude parameter.

If none, return 1.

◆ GetNumRangeCondition() [1/2]

Int_t TGo4FitComponent::GetNumRangeCondition ( ) const
inline

◆ GetNumRangeCondition() [2/2]

Int_t TGo4FitComponent::GetNumRangeCondition ( ) const
inline

Returns number of range condition (exclude range cuts).

Definition at line 159 of file TGo4FitComponent.h.

References fxRangeAxis.

◆ GetNumRangeCut() [1/2]

Int_t TGo4FitComponent::GetNumRangeCut ( ) const

Returns number of range cuts, assigned to object.

Definition at line 275 of file TGo4FitComponent.cxx.

References fxCuts.

Referenced by CheckRangeConditions(), TGo4FitPanel::Cmd_AddRangeCondition(), GetRangeMax(), GetRangeMin(), IsAnyRangeLimits(), Print(), and TGo4FitPanel::UpdateItem().

◆ GetNumRangeCut() [2/2]

Int_t TGo4FitComponent::GetNumRangeCut ( ) const

Returns number of range cuts, assigned to object.

◆ GetRangeCondition() [1/2]

void TGo4FitComponent::GetRangeCondition ( Int_t n,
Int_t & typ,
Int_t & naxis,
Double_t & left,
Double_t & right ) const

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 123 of file TGo4FitComponent.cxx.

References fxRangeAxis, fxRangeValue, and GetNumRangeCondition().

Referenced by CheckRangeConditions(), QFitRangeWidget::FillSpecificData(), TGo4FitPanel::PaintRange(), Print(), and TGo4FitPanel::SetItemText().

◆ GetRangeCondition() [2/2]

void TGo4FitComponent::GetRangeCondition ( Int_t n,
Int_t & typ,
Int_t & naxis,
Double_t & left,
Double_t & right ) const

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

◆ GetRangeCut() [1/2]

TCutG * TGo4FitComponent::GetRangeCut ( Int_t n) const

◆ GetRangeCut() [2/2]

TCutG * TGo4FitComponent::GetRangeCut ( Int_t n) const

Returns specified range cut.

◆ GetRangeMax() [1/2]

Bool_t TGo4FitComponent::GetRangeMax ( Int_t naxis,
Double_t & value ) const

Defines maximum allowed value for given range.

Returns kFALSE, if no range condition were specified for given axis.

Definition at line 336 of file TGo4FitComponent.cxx.

References fxRangeAxis, fxRangeValue, GetNumRangeCut(), GetRangeCut(), and kExcludeCut.

◆ GetRangeMax() [2/2]

Bool_t TGo4FitComponent::GetRangeMax ( Int_t naxis,
Double_t & value ) const

Defines maximum allowed value for given range.

Returns kFALSE, if no range condition were specified for given axis.

◆ GetRangeMin() [1/2]

Bool_t TGo4FitComponent::GetRangeMin ( Int_t naxis,
Double_t & value ) const

Defines minimum allowed value for given range.

Returns kFALSE, if no range condition were specified for given axis.

Definition at line 308 of file TGo4FitComponent.cxx.

References fxRangeAxis, fxRangeValue, GetNumRangeCut(), GetRangeCut(), and kExcludeCut.

◆ GetRangeMin() [2/2]

Bool_t TGo4FitComponent::GetRangeMin ( Int_t naxis,
Double_t & value ) const

Defines minimum allowed value for given range.

Returns kFALSE, if no range condition were specified for given axis.

◆ GetUseBuffers() [1/2]

Bool_t TGo4FitComponent::GetUseBuffers ( ) const
inline

Returns flag of usage of additional buffers.

Buffers can only be created in Initialize procedure..

Definition at line 237 of file TGo4FitComponent.h.

References fbUseBuffers.

Referenced by TGo4FitPanel::FillNamedWidget(), TGo4FitData::Initialize(), TGo4FitModel::Initialize(), and TGo4FitPanel::UpdateWizStackWidget().

◆ GetUseBuffers() [2/2]

Bool_t TGo4FitComponent::GetUseBuffers ( ) const
inline

Returns flag of usage of additional buffers.

Buffers can only be created in Initialize procedure..

Definition at line 237 of file TGo4FitComponent.h.

References fbUseBuffers.

◆ IsAnyRangeLimits() [1/2]

Bool_t TGo4FitComponent::IsAnyRangeLimits ( ) const

Return kTRUE, if any range conditions were introduced.

Definition at line 264 of file TGo4FitComponent.cxx.

References GetNumRangeCondition(), and GetNumRangeCut().

Referenced by TGo4FitPanel::FillPopupForItem(), TGo4FitModel::Initialize(), and TGo4FitPanel::UpdateWizStackWidget().

◆ IsAnyRangeLimits() [2/2]

Bool_t TGo4FitComponent::IsAnyRangeLimits ( ) const

Return kTRUE, if any range conditions were introduced.

◆ IsRangeCutExcluding() [1/2]

Bool_t TGo4FitComponent::IsRangeCutExcluding ( Int_t n) const

Return kTRUE if cut exclude range.

Definition at line 285 of file TGo4FitComponent.cxx.

References GetRangeCut(), and kExcludeCut.

Referenced by QFitRangeCutWidget::FillSpecificData().

◆ IsRangeCutExcluding() [2/2]

Bool_t TGo4FitComponent::IsRangeCutExcluding ( Int_t n) const

Return kTRUE if cut exclude range.

◆ MakeAmpl() [1/2]

Bool_t TGo4FitComponent::MakeAmpl ( Bool_t isFixed = kFALSE)

Create amplitude parameter and adds it to parameters list.

Typically amplitude is situated in the beginning of parameters list.

Definition at line 104 of file TGo4FitComponent.cxx.

References GetAmplPar(), NewAmplitude(), and TGo4FitParameter::SetFixed().

Referenced by QFitDataWidget::AmplChk_toggled(), and TGo4FitPanel::ChangeModelPar().

◆ MakeAmpl() [2/2]

Bool_t TGo4FitComponent::MakeAmpl ( Bool_t isFixed = kFALSE)

Create amplitude parameter and adds it to parameters list.

Typically amplitude is situated in the beginning of parameters list.

◆ NewAmplitude() [1/2]

TGo4FitParameter * TGo4FitComponent::NewAmplitude ( const char * Name = nullptr,
Double_t iValue = 0.,
Bool_t IsFixed = kFALSE,
Int_t AtIndx = 0 )
protected

◆ NewAmplitude() [2/2]

TGo4FitParameter * TGo4FitComponent::NewAmplitude ( const char * Name = nullptr,
Double_t iValue = 0.,
Bool_t IsFixed = kFALSE,
Int_t AtIndx = 0 )
protected

Create amplitude parameter with specified properties.

◆ NewParameter() [1/2]

◆ NewParameter() [2/2]

TGo4FitParameter * TGo4FitComponent::NewParameter ( const char * Name,
const char * Title,
Double_t iValue = 0.,
Bool_t Fixed = kFALSE,
Int_t AtIndx = -1 )
protected

Create new parameter with provided properties and add to parameters list.

◆ Print() [1/2]

void TGo4FitComponent::Print ( Option_t * option = "") const
override

◆ Print() [2/2]

void TGo4FitComponent::Print ( Option_t * option = "") const
override

Print info about object on standard output.

◆ RemoveAmpl() [1/2]

Bool_t TGo4FitComponent::RemoveAmpl ( )

Remove amplitude parameter from parameters list.

Definition at line 114 of file TGo4FitComponent.cxx.

References GetAmplIndex(), GetAmplPar(), TGo4FitParsList::RemoveParByIndex(), and SetAmplIndex().

Referenced by QFitDataWidget::AmplChk_toggled(), and TGo4FitPanel::ChangeModelPar().

◆ RemoveAmpl() [2/2]

Bool_t TGo4FitComponent::RemoveAmpl ( )

Remove amplitude parameter from parameters list.

◆ RemoveRangeCondition() [1/2]

void TGo4FitComponent::RemoveRangeCondition ( Int_t n)

Removes specified range condition.

Definition at line 204 of file TGo4FitComponent.cxx.

References fxRangeAxis, fxRangeValue, and GetNumRangeCondition().

Referenced by TGo4FitPanel::Cmd_RemoveRangeCondition().

◆ RemoveRangeCondition() [2/2]

void TGo4FitComponent::RemoveRangeCondition ( Int_t n)

Removes specified range condition.

◆ RemoveRangeCut() [1/2]

void TGo4FitComponent::RemoveRangeCut ( Int_t n)

Delete range cut with specified index.

Definition at line 298 of file TGo4FitComponent.cxx.

References fxCuts, and GetRangeCut().

Referenced by TGo4FitPanel::Cmd_RemoveRangeCondition().

◆ RemoveRangeCut() [2/2]

void TGo4FitComponent::RemoveRangeCut ( Int_t n)

Delete range cut with specified index.

◆ SetAmplError() [1/2]

void TGo4FitComponent::SetAmplError ( Double_t iError)

◆ SetAmplError() [2/2]

void TGo4FitComponent::SetAmplError ( Double_t iError)

Set error of amplitude parameter.

◆ SetAmplIndex() [1/2]

void TGo4FitComponent::SetAmplIndex ( Int_t iAmplIndex = -1)
inlineprotected

Set index of amplitude parameter.

Definition at line 264 of file TGo4FitComponent.h.

References fiAmplIndex.

Referenced by NewAmplitude(), and RemoveAmpl().

◆ SetAmplIndex() [2/2]

void TGo4FitComponent::SetAmplIndex ( Int_t iAmplIndex = -1)
inlineprotected

Set index of amplitude parameter.

Definition at line 264 of file TGo4FitComponent.h.

References fiAmplIndex.

◆ SetAmplValue() [1/2]

◆ SetAmplValue() [2/2]

void TGo4FitComponent::SetAmplValue ( Double_t iAmpl)

Set value of amplitude parameter.

◆ SetRange() [1/2]

void TGo4FitComponent::SetRange ( Int_t naxis,
Double_t min,
Double_t max )

◆ SetRange() [2/2]

void TGo4FitComponent::SetRange ( Int_t naxis,
Double_t min,
Double_t max )

Includes axis range in consideration.

Number of axis and minimum and maximum values should be specified.

◆ SetRangeCondition() [1/2]

void TGo4FitComponent::SetRangeCondition ( Int_t n,
Int_t typ,
Int_t naxis,
Double_t left,
Double_t right )

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 155 of file TGo4FitComponent.cxx.

References fxRangeAxis, fxRangeValue, and GetNumRangeCondition().

Referenced by AddRangeCondition(), and QFitRangeWidget::GetRangeData().

◆ SetRangeCondition() [2/2]

void TGo4FitComponent::SetRangeCondition ( Int_t n,
Int_t typ,
Int_t naxis,
Double_t left,
Double_t right )

Change specified range condition.

Range condition should already exists before calling of these procedure. For exact meaning of parameters see GetRangeCondition() method.

◆ SetRangeCutExcluding() [1/2]

void TGo4FitComponent::SetRangeCutExcluding ( Int_t n,
Bool_t exclude = kTRUE )

Set type of range cut (excluding or including).

Definition at line 291 of file TGo4FitComponent.cxx.

References GetRangeCut(), and kExcludeCut.

Referenced by QFitRangeCutWidget::ExcludeCutChk_toggled().

◆ SetRangeCutExcluding() [2/2]

void TGo4FitComponent::SetRangeCutExcluding ( Int_t n,
Bool_t exclude = kTRUE )

Set type of range cut (excluding or including).

◆ SetRangeMax() [1/2]

void TGo4FitComponent::SetRangeMax ( Int_t naxis,
Double_t value )

Set maximum axis value, taken into consideration.

All lager values will be removed from consideration independently from other range conditions.

Definition at line 234 of file TGo4FitComponent.cxx.

References AddRangeCondition().

Referenced by TGo4FitPanel::Cmd_AddRangeCondition().

◆ SetRangeMax() [2/2]

void TGo4FitComponent::SetRangeMax ( Int_t naxis,
Double_t value )

Set maximum axis value, taken into consideration.

All lager values will be removed from consideration independently from other range conditions.

◆ SetRangeMin() [1/2]

void TGo4FitComponent::SetRangeMin ( Int_t naxis,
Double_t value )

Set minimum axis value, taken into consideration.

All smaller values will be removed from consideration independently from other range conditions.

Definition at line 229 of file TGo4FitComponent.cxx.

References AddRangeCondition().

Referenced by TGo4FitPanel::Cmd_AddRangeCondition().

◆ SetRangeMin() [2/2]

void TGo4FitComponent::SetRangeMin ( Int_t naxis,
Double_t value )

Set minimum axis value, taken into consideration.

All smaller values will be removed from consideration independently from other range conditions.

◆ SetUseBuffers() [1/2]

void TGo4FitComponent::SetUseBuffers ( Bool_t iUse)
inline

Sets usage of additional buffers.

Buffers can only be created in Initialize procedure..

Definition at line 231 of file TGo4FitComponent.h.

References fbUseBuffers.

Referenced by TGo4FitPanel::ChangeModelPar(), QFitDataWidget::UseBuffersChk_toggled(), TGo4FitPanel::Wiz_DataBufChk_toggled(), and TGo4FitPanel::Wiz_ModelBufChk_toggled().

◆ SetUseBuffers() [2/2]

void TGo4FitComponent::SetUseBuffers ( Bool_t iUse)
inline

Sets usage of additional buffers.

Buffers can only be created in Initialize procedure..

Definition at line 231 of file TGo4FitComponent.h.

References fbUseBuffers.

Field Documentation

◆ fbUseBuffers

Bool_t TGo4FitComponent::fbUseBuffers {kFALSE}
private

Specify usage of buffers after initialization.

Definition at line 291 of file TGo4FitComponent.h.

Referenced by TGo4FitComponent(), TGo4FitComponent(), GetUseBuffers(), and SetUseBuffers().

◆ fiAmplIndex

Int_t TGo4FitComponent::fiAmplIndex {0}
private

Index of amplitude parameter (-1 if none).

Definition at line 286 of file TGo4FitComponent.h.

Referenced by TGo4FitComponent(), TGo4FitComponent(), GetAmplIndex(), GetAmplPar(), Print(), SetAmplError(), SetAmplIndex(), and SetAmplValue().

◆ fxCuts

TObjArray TGo4FitComponent::fxCuts
private

Array of TCutG objects, used for range selection.

Definition at line 281 of file TGo4FitComponent.h.

Referenced by TGo4FitComponent(), TGo4FitComponent(), AddRangeCut(), ClearRanges(), GetNumRangeCut(), GetRangeCut(), and RemoveRangeCut().

◆ fxRangeAxis

TArrayI TGo4FitComponent::fxRangeAxis
private

◆ fxRangeValue

TArrayD TGo4FitComponent::fxRangeValue
private

The documentation for this class was generated from the following files: