#include <TGo4FitModelGauss2.h>
Inheritance diagram for TGo4FitModelGauss2:
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... |
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.
|
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 65 of file TGo4FitModelGauss2.h. References fiNaxis1. |
|
Return number of second selcted axis.
Definition at line 70 of file TGo4FitModelGauss2.h. References fiNaxis2. |
|
Sets number of first selected axis.
Definition at line 75 of file TGo4FitModelGauss2.h. |
|
Sets number of second selected axis.
Definition at line 80 of file TGo4FitModelGauss2.h. |
|
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(), TGo4FitParameter::GetValue(), mu1, mu2, mult, ro, sig1, and 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, mu1, mu2, mult, ro, sig1, and sig2. |
|
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. |
|
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. |
|
Number of first selected axis.
Definition at line 98 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), EvalN(), GetNumAxis1(), GetPosParIndex(), GetWidthParIndex(), Print(), and SetNumAxis1(). |
|
Number of second selected axis.
Definition at line 103 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), EvalN(), GetNumAxis2(), GetPosParIndex(), GetWidthParIndex(), Print(), and SetNumAxis2(). |
|
Temporary variable for EvalN() function.
Definition at line 110 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 116 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 122 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 128 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 134 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 140 of file TGo4FitModelGauss2.h. Referenced by BeforeEval(), and EvalN(). |