Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class 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 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 34 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 56 of file TGo4FitModelGauss1.h.

References fiNaxis.

void TGo4FitModelGauss1::SetNumAxis Int_t  n  )  [inline]
 

Sets number of selected axis.

Definition at line 61 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 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(), and TGo4FitParsList::GetPar().

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(), 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 74 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 75 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 81 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 88 of file TGo4FitModelGauss1.h.

Referenced by BeforeEval(), and EvalN().

Double_t TGo4FitModelGauss1::Par_k [private]
 

Temporary variable for EvalN() function.

Definition at line 94 of file TGo4FitModelGauss1.h.

Referenced by BeforeEval(), and EvalN().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:00:57 2008 for Go4-v3.04-1 by  doxygen 1.4.2