#include <TGo4FitModelGauss2.h>
Inheritance diagram for TGo4FitModelGauss2:
Public Member Functions | |
TGo4FitModelGauss2 () | |
Default constructor. | |
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. | |
virtual | ~TGo4FitModelGauss2 () |
Destroys TGo4FitModelGauss2 object. | |
Int_t | GetNumAxis1 () |
Return number of first selected axis. | |
Int_t | GetNumAxis2 () |
Return number of second selcted axis. | |
Int_t | SetNumAxis1 (Int_t n) |
Sets number of first selected axis. | |
Int_t | SetNumAxis2 (Int_t n) |
Sets number of second selected axis. | |
virtual void | Print (Option_t *option) const |
Prints information to standard output. | |
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 | fiNaxis1 |
Number of first selected axis. | |
Int_t | fiNaxis2 |
Number of second selected axis. | |
Private Attributes | |
Double_t | Par_mu1 |
Temporary variable for EvalN() function. | |
Double_t | Par_mu2 |
Temporary variable for EvalN() function. | |
Double_t | Par_sig1 |
Temporary variable for EvalN() function. | |
Double_t | Par_sig2 |
Temporary variable for EvalN() function. | |
Double_t | Par_ro |
Temporary variable for EvalN() function. | |
Double_t | Par_mult |
Temporary variable for EvalN() function. |
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 41 of file TGo4FitModelGauss2.h.
|
Default constructor.
Definition at line 24 of file TGo4FitModelGauss2.cxx. |
|
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(). |
|
Destroys TGo4FitModelGauss2 object.
Definition at line 38 of file TGo4FitModelGauss2.cxx. |
|
Return number of first selected axis.
Definition at line 66 of file TGo4FitModelGauss2.h. References fiNaxis1. |
|
Return number of second selcted axis.
Definition at line 71 of file TGo4FitModelGauss2.h. References fiNaxis2. |
|
Sets number of first selected axis.
Definition at line 76 of file TGo4FitModelGauss2.h. References fiNaxis1. |
|
Sets number of second selected axis.
Definition at line 81 of file TGo4FitModelGauss2.h. References fiNaxis2. |
|
Prints information to standard output.
Reimplemented from TGo4FitModel. Definition at line 66 of file TGo4FitModelGauss2.cxx. References fiNaxis1, fiNaxis2, and TGo4FitModel::Print(). |
|
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(), Par_mu1, Par_mu2, Par_mult, Par_ro, Par_sig1, and Par_sig2. |
|
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, Par_mu1, Par_mu2, Par_mult, Par_ro, Par_sig1, and Par_sig2. |
|
Return index of parameter (if exist), which represent position of model for given axis.
Reimplemented from TGo4FitModel. Definition at line 92 of file TGo4FitModelGauss2.h. |
|
Return index of parameter (if exist), which represent width of model component for given axis.
Reimplemented from TGo4FitModel. Definition at line 93 of file TGo4FitModelGauss2.h. |
|
Number of first selected axis.
Definition at line 99 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), EvalN(), GetNumAxis1(), GetPosParIndex(), GetWidthParIndex(), Print(), and SetNumAxis1(). |
|
Number of second selected axis.
Definition at line 104 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), EvalN(), GetNumAxis2(), GetPosParIndex(), GetWidthParIndex(), Print(), and SetNumAxis2(). |
|
Temporary variable for EvalN() function.
Definition at line 111 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 117 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 123 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 129 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 135 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 141 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |