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

TGo4FitModelGauss2 Class Reference

Two dimensional gaussian peak. More...

#include <TGo4FitModelGauss2.h>

Inheritance diagram for TGo4FitModelGauss2:

TGo4FitModel TGo4FitComponent TGo4FitParsList TGo4FitSlotList TGo4FitNamed List of all members.

Public Methods

 TGo4FitModelGauss2 ()
 Default constructor. More...

 TGo4FitModelGauss2 (const char *iName, Double_t iPos1=1., Double_t iPos2=1., Double_t iWidth1=1., Double_t iWidth2=1., Double_t iCov12=0., Int_t iNaxis1=0, Int_t iNaxis2=1)
 Creates TGo4FitModelGauss2 with specified name. More...

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

Int_t GetNumAxis1 ()
 Return number of first selected axis. More...

Int_t GetNumAxis2 ()
 Return number of second selcted axis. More...

Int_t SetNumAxis1 (Int_t n)
 Sets number of first selected axis. More...

Int_t SetNumAxis2 (Int_t n)
 Sets number of second selected axis. More...

virtual void Print (Option_t *option) const
 Prints information to standard output. 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 fiNaxis1
 Number of first selected axis. More...

Int_t fiNaxis2
 Number of second selected axis. More...


Private Attributes

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

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

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

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

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

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


Detailed Description

Two dimensional gaussian peak.

Has following parameters: "Ampl" - amplitude; "Pos0" - line position on first coordinate; "Pos1" - line position on second coordinate; "Width0" - line width on first coordinate; "Width1" - line width on second coordinate; "Cov0_1" - covariation between first and second coordinate. By default, first coordinate associated with x axis, second - with y axis. To create instance of this model:

TGo4FitModelGauss2 *g = new TGo4FitModelGauss2("Gauss", 5., 5., 1., 1., 0.5);

where first parameter - name of model component, then initial value for positions, widths and covariation parameters are defined. To assigned coordinates to another axis, two more parameters should be used in the constructor:

TGo4FitModelGauss2 *g = new TGo4FitModelGauss2("Gauss", 5., 5., 1., 1., 0.5, 1, 2);

where 1 - assignment of first coordinate to y axis , 2 - assignment of second coordinate to z axis.

Definition at line 40 of file TGo4FitModelGauss2.h.


Constructor & Destructor Documentation

TGo4FitModelGauss2::TGo4FitModelGauss2  
 

Default constructor.

Definition at line 24 of file TGo4FitModelGauss2.cxx.

TGo4FitModelGauss2::TGo4FitModelGauss2 const char *    iName,
Double_t    iPos1 = 1.,
Double_t    iPos2 = 1.,
Double_t    iWidth1 = 1.,
Double_t    iWidth2 = 1.,
Double_t    iCov12 = 0.,
Int_t    iNaxis1 = 0,
Int_t    iNaxis2 = 1
 

Creates TGo4FitModelGauss2 with specified name.

Initial value for positions, widths and covariation parameters can be specified. Also number of selected axis, where 2-dim gaussian will be build, can be specified (default 0 and 1).

Definition at line 27 of file TGo4FitModelGauss2.cxx.

References TGo4FitComponent::NewParameter().

TGo4FitModelGauss2::~TGo4FitModelGauss2   [virtual]
 

Destroys TGo4FitModelGauss2 object.

Definition at line 38 of file TGo4FitModelGauss2.cxx.


Member Function Documentation

Int_t TGo4FitModelGauss2::GetNumAxis1   [inline]
 

Return number of first selected axis.

Definition at line 65 of file TGo4FitModelGauss2.h.

References fiNaxis1.

Int_t TGo4FitModelGauss2::GetNumAxis2   [inline]
 

Return number of second selcted axis.

Definition at line 70 of file TGo4FitModelGauss2.h.

References fiNaxis2.

Int_t TGo4FitModelGauss2::SetNumAxis1 Int_t    n [inline]
 

Sets number of first selected axis.

Definition at line 75 of file TGo4FitModelGauss2.h.

References fiNaxis1, and n.

Int_t TGo4FitModelGauss2::SetNumAxis2 Int_t    n [inline]
 

Sets number of second selected axis.

Definition at line 80 of file TGo4FitModelGauss2.h.

References fiNaxis2, and n.

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

Prints information to standard output.

Reimplemented from TGo4FitModel.

Definition at line 66 of file TGo4FitModelGauss2.cxx.

References fiNaxis1, fiNaxis2, and TGo4FitModel::Print().

Bool_t TGo4FitModelGauss2::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 42 of file TGo4FitModelGauss2.cxx.

References fiNaxis1, fiNaxis2, TGo4FitParsList::GetPar(), TGo4FitParameter::GetValue(), mu1, mu2, mult, ro, sig1, and sig2.

Double_t TGo4FitModelGauss2::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 59 of file TGo4FitModelGauss2.cxx.

References fiNaxis1, fiNaxis2, mu1, mu2, mult, ro, sig1, and sig2.

virtual Int_t TGo4FitModelGauss2::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 91 of file TGo4FitModelGauss2.h.

References fiNaxis1, and fiNaxis2.

virtual Int_t TGo4FitModelGauss2::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 92 of file TGo4FitModelGauss2.h.

References fiNaxis1, and fiNaxis2.


Member Data Documentation

Int_t TGo4FitModelGauss2::fiNaxis1 [protected]
 

Number of first selected axis.

Definition at line 98 of file TGo4FitModelGauss2.h.

Referenced by BeforeEval(), EvalN(), GetNumAxis1(), GetPosParIndex(), GetWidthParIndex(), Print(), and SetNumAxis1().

Int_t TGo4FitModelGauss2::fiNaxis2 [protected]
 

Number of second selected axis.

Definition at line 103 of file TGo4FitModelGauss2.h.

Referenced by BeforeEval(), EvalN(), GetNumAxis2(), GetPosParIndex(), GetWidthParIndex(), Print(), and SetNumAxis2().

Double_t TGo4FitModelGauss2::mu1 [private]
 

Temporary variable for EvalN() function.

Definition at line 110 of file TGo4FitModelGauss2.h.

Referenced by BeforeEval(), and EvalN().

Double_t TGo4FitModelGauss2::mu2 [private]
 

Temporary variable for EvalN() function.

Definition at line 116 of file TGo4FitModelGauss2.h.

Referenced by BeforeEval(), and EvalN().

Double_t TGo4FitModelGauss2::sig1 [private]
 

Temporary variable for EvalN() function.

Definition at line 122 of file TGo4FitModelGauss2.h.

Referenced by BeforeEval(), and EvalN().

Double_t TGo4FitModelGauss2::sig2 [private]
 

Temporary variable for EvalN() function.

Definition at line 128 of file TGo4FitModelGauss2.h.

Referenced by BeforeEval(), and EvalN().

Double_t TGo4FitModelGauss2::ro [private]
 

Temporary variable for EvalN() function.

Definition at line 134 of file TGo4FitModelGauss2.h.

Referenced by BeforeEval(), and EvalN().

Double_t TGo4FitModelGauss2::mult [private]
 

Temporary variable for EvalN() function.

Definition at line 140 of file TGo4FitModelGauss2.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