Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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 Methods

 TGo4FitModelGauss1 ()
 Default constructor. More...

 TGo4FitModelGauss1 (const char *iName, Double_t iPosition=1., Double_t iWidth=1., Int_t iNaxis=0)
 Creates TGo4FitModelGauss1 with given name. More...

virtual ~TGo4FitModelGauss1 ()
 Destroys TGo4FitModelGauss1 object. More...

Int_t GetNumAxis ()
 Return number of axis, where gauss will be build. More...

void SetNumAxis (Int_t n)
 Sets number of selected axis. More...

virtual void Print (Option_t *option) const
 Print information to standard output. More...

virtual Double_t Integral ()
 Calculates intagral of model component. More...

virtual Bool_t BeforeEval (Int_t ndim)
 Prepares (if necesary) some intermediate variables to be able calculate values of model via EvalN() function. More...

virtual Double_t EvalN (const Double_t *v)
 Calculates value of model according current parameters values and provided axes values. More...


Protected Methods

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

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


Protected Attributes

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


Private Attributes

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

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


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 33 of file TGo4FitModelGauss1.h.


Constructor & Destructor Documentation

TGo4FitModelGauss1::TGo4FitModelGauss1  
 

Default constructor.

Definition at line 24 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 27 of file TGo4FitModelGauss1.cxx.

References TGo4FitComponent::NewParameter().

TGo4FitModelGauss1::~TGo4FitModelGauss1   [virtual]
 

Destroys TGo4FitModelGauss1 object.

Definition at line 33 of file TGo4FitModelGauss1.cxx.


Member Function Documentation

Int_t TGo4FitModelGauss1::GetNumAxis   [inline]
 

Return number of axis, where gauss will be build.

Definition at line 55 of file TGo4FitModelGauss1.h.

References fiNaxis.

void TGo4FitModelGauss1::SetNumAxis Int_t    n [inline]
 

Sets number of selected axis.

Definition at line 60 of file TGo4FitModelGauss1.h.

References fiNaxis, and n.

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

Print information to standard output.

Reimplemented from TGo4FitModel.

Definition at line 52 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 57 of file TGo4FitModelGauss1.cxx.

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

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 36 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 48 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 73 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 74 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 80 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 87 of file TGo4FitModelGauss1.h.

Referenced by BeforeEval(), and EvalN().

Double_t TGo4FitModelGauss1::Par_k [private]
 

Temporary variable for EvalN() function.

Definition at line 93 of file TGo4FitModelGauss1.h.

Referenced by BeforeEval(), and EvalN().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:41 2005 for Go4-v2.10-5 by doxygen1.2.15