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

Amplitude estimation action. More...

#include <TGo4FitAmplEstimation.h>

Inheritance diagram for TGo4FitAmplEstimation:

Public Member Functions

 TGo4FitAmplEstimation ()
 Default constructor.
 TGo4FitAmplEstimation ()
 Default constructor.
 TGo4FitAmplEstimation (const char *Name, Int_t NumIters=1)
 Creates TGo4FitAmplEstimation action with given name.
 TGo4FitAmplEstimation (const char *Name, Int_t NumIters=1)
 Creates TGo4FitAmplEstimation action with given name.
virtual ~TGo4FitAmplEstimation ()
 Destroys TGo4FitAmplEstimation object.
virtual ~TGo4FitAmplEstimation ()
 Destroys TGo4FitAmplEstimation object.
void DoAction (TGo4FitterAbstract *Fitter) override
 Perform amplitude estimations.
void DoAction (TGo4FitterAbstract *Fitter) override
 Perform amplitude estimations.
Int_t GetNumIterations () const
 Returns number of iterations.
Int_t GetNumIterations () const
 Returns number of iterations.
Bool_t NeedBuffers () const override
Bool_t NeedBuffers () const override
void Print (Option_t *option="") const override
 Print information on standard output.
void Print (Option_t *option="") const override
 Print information on standard output.
void SetNumIterations (Int_t iNumIters)
 Sets number of iterations.
void SetNumIterations (Int_t iNumIters)
 Sets number of iterations.
Public Member Functions inherited from TGo4FitterAction
 TGo4FitterAction ()
 Default constructor.
 TGo4FitterAction ()
 Default constructor.
 TGo4FitterAction (const char *Name, const char *Title, TNamed *Owner=nullptr)
 Creates TGo4FitterAction object with given name and title.
 TGo4FitterAction (const char *Name, const char *Title, TNamed *Owner=nullptr)
 Creates TGo4FitterAction object with given name and title.
virtual ~TGo4FitterAction ()
virtual ~TGo4FitterAction ()
virtual Bool_t CanChangeFitter () const
virtual Bool_t CanChangeFitter () const
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.

Private Member Functions

Bool_t CalculateWithBuffers (TGo4Fitter *fitter)
Bool_t CalculateWithBuffers (TGo4Fitter *fitter)
Bool_t CalculateWithIterators (TGo4Fitter *fitter)
Bool_t CalculateWithIterators (TGo4Fitter *fitter)
Double_t PointWeight (Int_t niter, Int_t FFtype, Double_t value, Double_t modelvalue, Double_t standdev)
Double_t PointWeight (Int_t niter, Int_t FFtype, Double_t value, Double_t modelvalue, Double_t standdev)

Private Attributes

Int_t fiNumIters {0}
 Number of iterations, used for amplitude estimation.

Detailed Description

Amplitude estimation action.

In additional to general minimization routine very useful amplitude estimation algorithm can be used. If rest of models parameters have good initial estimation, the amplitude parameter can be defined by solving of system of linear equations, as described in theoretical preface part of tutorial. This algorithm is provided by TGo4FitAmplEstimation class. This action can be added by AddAmplEstimation() routine of fitter. Typically, this action should be added before minimization routine.

Definition at line 26 of file TGo4FitAmplEstimation.h.

Constructor & Destructor Documentation

◆ TGo4FitAmplEstimation() [1/4]

TGo4FitAmplEstimation::TGo4FitAmplEstimation ( )

Default constructor.

Definition at line 29 of file TGo4FitAmplEstimation.cxx.

References TGo4FitterAction::TGo4FitterAction(), and fiNumIters.

◆ TGo4FitAmplEstimation() [2/4]

TGo4FitAmplEstimation::TGo4FitAmplEstimation ( const char * Name,
Int_t NumIters = 1 )

Creates TGo4FitAmplEstimation action with given name.

Optionally, default number of iterations can be sets up (default 1).

Definition at line 31 of file TGo4FitAmplEstimation.cxx.

References TGo4FitterAction::TGo4FitterAction(), and fiNumIters.

◆ ~TGo4FitAmplEstimation() [1/2]

TGo4FitAmplEstimation::~TGo4FitAmplEstimation ( )
virtual

Destroys TGo4FitAmplEstimation object.

Definition at line 36 of file TGo4FitAmplEstimation.cxx.

◆ TGo4FitAmplEstimation() [3/4]

TGo4FitAmplEstimation::TGo4FitAmplEstimation ( )

Default constructor.

◆ TGo4FitAmplEstimation() [4/4]

TGo4FitAmplEstimation::TGo4FitAmplEstimation ( const char * Name,
Int_t NumIters = 1 )

Creates TGo4FitAmplEstimation action with given name.

Optionally, default number of iterations can be sets up (default 1).

◆ ~TGo4FitAmplEstimation() [2/2]

virtual TGo4FitAmplEstimation::~TGo4FitAmplEstimation ( )
virtual

Destroys TGo4FitAmplEstimation object.

Member Function Documentation

◆ CalculateWithBuffers() [1/2]

◆ CalculateWithBuffers() [2/2]

Bool_t TGo4FitAmplEstimation::CalculateWithBuffers ( TGo4Fitter * fitter)
private

◆ CalculateWithIterators() [1/2]

◆ CalculateWithIterators() [2/2]

Bool_t TGo4FitAmplEstimation::CalculateWithIterators ( TGo4Fitter * fitter)
private

References fiNumIters.

◆ DoAction() [1/2]

void TGo4FitAmplEstimation::DoAction ( TGo4FitterAbstract * Fitter)
overridevirtual

Perform amplitude estimations.

See Go4Fit tutorial to more details.

Implements TGo4FitterAction.

Definition at line 38 of file TGo4FitAmplEstimation.cxx.

References CalculateWithBuffers(), and CalculateWithIterators().

Referenced by TGo4Fitter::EstimateAmplitudes().

◆ DoAction() [2/2]

void TGo4FitAmplEstimation::DoAction ( TGo4FitterAbstract * Fitter)
overridevirtual

Perform amplitude estimations.

See Go4Fit tutorial to more details.

Implements TGo4FitterAction.

◆ GetNumIterations() [1/2]

Int_t TGo4FitAmplEstimation::GetNumIterations ( ) const
inline

Returns number of iterations.

Definition at line 48 of file TGo4FitAmplEstimation.h.

References fiNumIters.

◆ GetNumIterations() [2/2]

Int_t TGo4FitAmplEstimation::GetNumIterations ( ) const
inline

Returns number of iterations.

Definition at line 48 of file TGo4FitAmplEstimation.h.

References fiNumIters.

◆ NeedBuffers() [1/2]

Bool_t TGo4FitAmplEstimation::NeedBuffers ( ) const
inlineoverridevirtual

Reimplemented from TGo4FitterAction.

Definition at line 55 of file TGo4FitAmplEstimation.h.

◆ NeedBuffers() [2/2]

Bool_t TGo4FitAmplEstimation::NeedBuffers ( ) const
inlineoverridevirtual

Reimplemented from TGo4FitterAction.

Definition at line 55 of file TGo4FitAmplEstimation.h.

◆ PointWeight() [1/2]

Double_t TGo4FitAmplEstimation::PointWeight ( Int_t niter,
Int_t FFtype,
Double_t value,
Double_t modelvalue,
Double_t standdev )
private

◆ PointWeight() [2/2]

Double_t TGo4FitAmplEstimation::PointWeight ( Int_t niter,
Int_t FFtype,
Double_t value,
Double_t modelvalue,
Double_t standdev )
private

◆ Print() [1/2]

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

Print information on standard output.

Definition at line 368 of file TGo4FitAmplEstimation.cxx.

References fiNumIters, and TGo4FitNamed::Print().

◆ Print() [2/2]

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

Print information on standard output.

◆ SetNumIterations() [1/2]

void TGo4FitAmplEstimation::SetNumIterations ( Int_t iNumIters)
inline

Sets number of iterations.

Definition at line 53 of file TGo4FitAmplEstimation.h.

References fiNumIters.

Referenced by QFitAmplEstimWidget::Iterations_valueChanged().

◆ SetNumIterations() [2/2]

void TGo4FitAmplEstimation::SetNumIterations ( Int_t iNumIters)
inline

Sets number of iterations.

Definition at line 53 of file TGo4FitAmplEstimation.h.

References fiNumIters.

Field Documentation

◆ fiNumIters

Int_t TGo4FitAmplEstimation::fiNumIters {0}
private

Number of iterations, used for amplitude estimation.

Definition at line 77 of file TGo4FitAmplEstimation.h.

Referenced by TGo4FitAmplEstimation(), TGo4FitAmplEstimation(), CalculateWithBuffers(), CalculateWithIterators(), GetNumIterations(), Print(), and SetNumIterations().


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