Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes

TGo4FitModelGauss1 Class Reference

#include <TGo4FitModelGauss1.h>

Inheritance diagram for TGo4FitModelGauss1:
TGo4FitModel TGo4FitComponent TGo4FitParsList TGo4FitSlotList TGo4FitNamed

List of all members.

Public Member Functions

 TGo4FitModelGauss1 ()
 TGo4FitModelGauss1 (const char *iName, Double_t iPosition=1., Double_t iWidth=1., Int_t iNaxis=0)
virtual ~TGo4FitModelGauss1 ()
Int_t GetNumAxis ()
void SetNumAxis (Int_t n)
virtual void Print (Option_t *option) const
virtual Double_t Integral ()
virtual Bool_t BeforeEval (Int_t ndim)
virtual Double_t EvalN (const Double_t *v)

Protected Member Functions

virtual Int_t GetPosParIndex (Int_t naxis)
virtual Int_t GetWidthParIndex (Int_t naxis)

Protected Attributes

Int_t fiNaxis

Private Attributes

Double_t Par_x0
Double_t Par_k

Detailed Description

One dimensional gaussian peak.

Has foolowing parameters : "Ampl" - amplitude, "Pos" - position of gaussian peak, "Width" - width of gaussian. In constructor initial values of these parameter and number of selected axis (0 - x axis, 1 - y axis and so on) should be setup:

TGo4FitModelGauss1 *g = new TGo4FitModelGauss1("Gauss", 10., 5., 1);

where "Gauss" - name of model component, "10." - peak position, "5." - peak width, "1" - selected axis (here - y).

Definition at line 32 of file TGo4FitModelGauss1.h.


Constructor & Destructor Documentation

TGo4FitModelGauss1::TGo4FitModelGauss1 (  ) 

Default constructor.

Definition at line 21 of file TGo4FitModelGauss1.cxx.

TGo4FitModelGauss1::TGo4FitModelGauss1 ( const char *  iName,
Double_t  iPosition = 1.,
Double_t  iWidth = 1.,
Int_t  iNaxis = 0 
)

Creates TGo4FitModelGauss1 with given name. Position of gaussian, width and number of selected axis can be specified.

Definition at line 24 of file TGo4FitModelGauss1.cxx.

References TGo4FitComponent::NewParameter().

TGo4FitModelGauss1::~TGo4FitModelGauss1 (  )  [virtual]

Destroys TGo4FitModelGauss1 object.

Definition at line 30 of file TGo4FitModelGauss1.cxx.


Member Function Documentation

Bool_t TGo4FitModelGauss1::BeforeEval ( Int_t  ndim  )  [virtual]

Prepares (if necesary) some intermediate variables to be able calculate values of model via EvalN() function. Number of axis, which will be used in evaluations, should be specified.

Reimplemented from TGo4FitModel.

Definition at line 33 of file TGo4FitModelGauss1.cxx.

References fiNaxis, TGo4FitParsList::GetPar(), TGo4FitParameter::GetValue(), Par_k, and Par_x0.

Double_t TGo4FitModelGauss1::EvalN ( const Double_t *  v  )  [virtual]

Calculates value of model according current parameters values and provided axes values. BeforeEval(), EvalN() & AfterEval() virtual methods provides general interface, where user-specific code should be situated.

Reimplemented from TGo4FitModel.

Definition at line 45 of file TGo4FitModelGauss1.cxx.

References fiNaxis, Par_k, and Par_x0.

Int_t TGo4FitModelGauss1::GetNumAxis (  )  [inline]

Return number of axis, where gauss will be build.

Definition at line 54 of file TGo4FitModelGauss1.h.

References fiNaxis.

virtual Int_t TGo4FitModelGauss1::GetPosParIndex ( Int_t   )  [inline, protected, virtual]

Return index of parameter (if exist), which represent position of model for given axis.

Reimplemented from TGo4FitModel.

Definition at line 72 of file TGo4FitModelGauss1.h.

References fiNaxis.

virtual Int_t TGo4FitModelGauss1::GetWidthParIndex ( Int_t   )  [inline, protected, virtual]

Return index of parameter (if exist), which represent width of model component for given axis.

Reimplemented from TGo4FitModel.

Definition at line 73 of file TGo4FitModelGauss1.h.

References fiNaxis.

Double_t TGo4FitModelGauss1::Integral (  )  [virtual]

Calculates integral of model component

Reimplemented from TGo4FitModel.

Definition at line 54 of file TGo4FitModelGauss1.cxx.

References TGo4FitComponent::GetAmplValue(), TGo4FitParsList::GetPar(), and TGo4FitParameter::GetValue().

void TGo4FitModelGauss1::Print ( Option_t *  option  )  const [virtual]

Print information to standard output.

Reimplemented from TGo4FitModel.

Definition at line 49 of file TGo4FitModelGauss1.cxx.

References fiNaxis.

void TGo4FitModelGauss1::SetNumAxis ( Int_t  n  )  [inline]

Sets number of selected axis.

Definition at line 59 of file TGo4FitModelGauss1.h.

References fiNaxis.

Referenced by QFitModelGauss1Widget::AxisNumSpin_valueChanged().


Member Data Documentation

Int_t TGo4FitModelGauss1::fiNaxis [protected]

Number of selected axis, where gaussian wil be build.

Definition at line 79 of file TGo4FitModelGauss1.h.

Referenced by BeforeEval(), EvalN(), GetNumAxis(), GetPosParIndex(), GetWidthParIndex(), Print(), and SetNumAxis().

Double_t TGo4FitModelGauss1::Par_k [private]

Temporary variable for EvalN() function.

Definition at line 92 of file TGo4FitModelGauss1.h.

Referenced by BeforeEval(), and EvalN().

Double_t TGo4FitModelGauss1::Par_x0 [private]

Temporary variable for EvalN() function.

Definition at line 86 of file TGo4FitModelGauss1.h.

Referenced by BeforeEval(), and EvalN().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines