#include <TGo4FitModelGauss1.h>
Inheritance diagram for TGo4FitModelGauss1:
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... |
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.
|
Default constructor.
Definition at line 24 of file TGo4FitModelGauss1.cxx. |
|
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(). |
|
Destroys TGo4FitModelGauss1 object.
Definition at line 33 of file TGo4FitModelGauss1.cxx. |
|
Return number of axis, where gauss will be build.
Definition at line 55 of file TGo4FitModelGauss1.h. References fiNaxis. |
|
Sets number of selected axis.
Definition at line 60 of file TGo4FitModelGauss1.h. |
|
Print information to standard output.
Reimplemented from TGo4FitModel. Definition at line 52 of file TGo4FitModelGauss1.cxx. References fiNaxis, and TGo4FitModel::Print(). |
|
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(). |
|
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. |
|
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. |
|
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. |
|
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. |
|
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(). |
|
Temporary variable for EvalN() function.
Definition at line 87 of file TGo4FitModelGauss1.h. Referenced by BeforeEval(), and EvalN(). |
|
Temporary variable for EvalN() function.
Definition at line 93 of file TGo4FitModelGauss1.h. Referenced by BeforeEval(), and EvalN(). |