TGo4FitModelGauss1 Class Reference

One dimensional gaussian peak. More...

#include <TGo4FitModelGauss1.h>

Inheritance diagram for TGo4FitModelGauss1:

TGo4FitModel TGo4FitComponent TGo4FitParsList TGo4FitSlotList TGo4FitNamed List of all members.

Public Member Functions

 TGo4FitModelGauss1 ()
 Default constructor.
 TGo4FitModelGauss1 (const char *iName, Double_t iPosition=1., Double_t iWidth=1., Int_t iNaxis=0)
 Creates TGo4FitModelGauss1 with given name.
virtual ~TGo4FitModelGauss1 ()
 Destroys TGo4FitModelGauss1 object.
Int_t GetNumAxis ()
 Return number of axis, where gauss will be build.
void SetNumAxis (Int_t n)
 Sets number of selected axis.
virtual void Print (Option_t *option) const
 Print information to standard output.
virtual Double_t Integral ()
 Calculates intagral of model component.
virtual Bool_t BeforeEval (Int_t ndim)
 Prepares (if necesary) some intermediate variables to be able calculate values of model via EvalN() function.
virtual Double_t EvalN (const Double_t *v)
 Calculates value of model according current parameters values and provided axes values.

Protected Member Functions

virtual Int_t GetPosParIndex (Int_t naxis)
 Return index of parameter (if exist), which represent position of model for given axis.
virtual Int_t GetWidthParIndex (Int_t naxis)
 Return index of parameter (if exist), which represent width of model component for given axis.

Protected Attributes

Int_t fiNaxis
 Number of selected axis, where gaussian wil be build.

Private Attributes

Double_t Par_x0
 Temporary variable for EvalN() function.
Double_t Par_k
 Temporary variable for EvalN() function.

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 22 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 25 of file TGo4FitModelGauss1.cxx.

References TGo4FitComponent::NewParameter().

TGo4FitModelGauss1::~TGo4FitModelGauss1 (  )  [virtual]

Destroys TGo4FitModelGauss1 object.

Definition at line 31 of file TGo4FitModelGauss1.cxx.


Member Function Documentation

Int_t TGo4FitModelGauss1::GetNumAxis (  )  [inline]

Return number of axis, where gauss will be build.

Definition at line 54 of file TGo4FitModelGauss1.h.

References fiNaxis.

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

Sets number of selected axis.

Definition at line 59 of file TGo4FitModelGauss1.h.

References fiNaxis.

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

Print information to standard output.

Reimplemented from TGo4FitModel.

Definition at line 50 of file TGo4FitModelGauss1.cxx.

References fiNaxis, and TGo4FitModel::Print().

Double_t TGo4FitModelGauss1::Integral (  )  [virtual]

Calculates intagral of model component.

Reimplemented from TGo4FitModel.

Definition at line 55 of file TGo4FitModelGauss1.cxx.

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

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 34 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 46 of file TGo4FitModelGauss1.cxx.

References fiNaxis, Par_k, and Par_x0.

virtual Int_t TGo4FitModelGauss1::GetPosParIndex ( Int_t  naxis  )  [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  naxis  )  [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.


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_x0 [private]

Temporary variable for EvalN() function.

Definition at line 86 of file TGo4FitModelGauss1.h.

Referenced by BeforeEval(), and EvalN().

Double_t TGo4FitModelGauss1::Par_k [private]

Temporary variable for EvalN() function.

Definition at line 92 of file TGo4FitModelGauss1.h.

Referenced by BeforeEval(), and EvalN().


The documentation for this class was generated from the following files:
Generated on Thu Oct 28 15:54:21 2010 for Go4-Fitpackagev4.04-2 by  doxygen 1.5.1