JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RFitBase1D.hh>
Public Member Functions | |
RFitBase1D () | |
RFitBase1D (TH1 *hptr, TH1 *herr=NULL) | |
RFitBase1D (TH1 *hptr, const RFitData1D &fit_data) | |
RFitBase1D (TH1 *hptr, TH1 *herr, const RFitData1D &fit_data) | |
RFitBase1D (const RFitBase1D &original) | |
virtual | ~RFitBase1D () |
virtual void | Reset () |
virtual void | InitMode () |
virtual void | SetOptions (const UInt_t opts) |
virtual void | SetOption (const UInt_t opt, const bool b=true) |
virtual void | SetFitMode (const Int_t mode) |
virtual void | SetFitLimits (const Double_t x1, const Double_t x2) |
virtual void | SetParValue (const Int_t p, const Double_t val) |
virtual string | GetParName (const Int_t p) const |
virtual void | FixParameter (const Int_t p, const bool b=true) |
TF1 * | GetFitFunction () |
virtual void | SetCalcAll ()=0 |
virtual void | SetCalcNone ()=0 |
virtual void | SetFunction ()=0 |
virtual void | ScaleFunction (const Double_t s)=0 |
virtual void | NormaliseFunction (const Double_t nor=1.) |
virtual void | DrawHisto (const Double_t yinf=0., const Double_t ysup=0.) |
virtual void | DrawFunction (const char *opts="") |
virtual int | CalcIntegral (double &val, double &err, const double x1, const double x2, const int npts=1000, const double frac=0.1) |
virtual void | DrawFctResult (TVirtualPad *pad, const ROptionString &opts="") |
virtual void | DrawDifResult (TVirtualPad *pad, const ROptionString &opts="") |
virtual void | DrawFitResult (TVirtualPad *pad, const ROptionString &opts="") |
virtual void | FillFunctionHisto (TH1 *hptr) |
virtual TH1 * | GetFunctionHisto (const char *name) |
virtual TH1 * | GetDifferenceHisto (const char *name) |
virtual TH1 * | GetSqrtHisto (const char *name) |
virtual TH1 * | GetSqrtPosHisto (const char *name) |
virtual TH1 * | GetSqrtNegHisto (const char *name) |
virtual Double_t | Eval (const Double_t x) |
virtual Double_t | GetRandom () |
virtual TH1 * | GetRandomHisto (const char *name, const Int_t n) |
virtual void | FillRandomHisto (TH1 *hptr, const Int_t n) |
virtual void | Preset () |
virtual Double_t | Fit (const char *opts="") |
virtual string | GetFitText () const =0 |
virtual bool | PrintFit (const string &fname) const |
virtual bool | PrintFit (FILE *fptr=stdout) const |
virtual bool | WriteParam (const string &fname) const |
virtual bool | WriteParam (FILE *fptr=stdout) const |
virtual bool | WriteOutput (const string &fname) const |
virtual bool | WriteOutput (FILE *fptr=stdout) const |
virtual RFitData1D * | CreateFitData ()=0 |
virtual RFitData1D * | GetFitData () |
virtual void | SetFitData (const RFitData1D *fit_data) |
ClassDef (RFitBase1D, 0) | |
![]() | |
RFitData1D () | |
RFitData1D (const RFitData1D &original) | |
RFitData1D & | operator= (const RFitData1D &original) |
virtual | ~RFitData1D () |
virtual void | GetFitLimits (Double_t &x1, Double_t &x2) const |
virtual Double_t | GetFitXmin () const |
virtual Double_t | GetFitXmax () const |
virtual void | SetPlotLimits (Double_t x1, Double_t x2) |
virtual void | GetPlotLimits (Double_t &x1, Double_t &x2) const |
virtual Double_t | GetPlotXmin () const |
virtual Double_t | GetPlotXmax () const |
virtual Bool_t | IsLogX () const |
virtual Bool_t | IsLogY () const |
ClassDef (RFitData1D, 0) | |
![]() | |
RFitDataBase () | |
RFitDataBase (const RFitDataBase &original) | |
RFitDataBase & | operator= (const RFitDataBase &original) |
virtual | ~RFitDataBase () |
virtual UInt_t | GetFitOptions () const |
virtual Int_t | GetFitMode () const |
virtual Int_t | GetParNumber () const |
virtual Int_t | GetFixNumber () const |
virtual Double_t | GetParValue (const Int_t p) const |
virtual Double_t | GetParError (const Int_t p) const |
virtual Double_t | GetCovariance (const Int_t p, const Int_t q) const |
virtual bool | IsFixParameter (const Int_t p) const |
virtual Int_t | GetFitResult () const |
virtual Double_t | GetFitChi2 () const |
virtual Int_t | GetFitNDF () const |
virtual Double_t | GetFitFCN () const |
virtual Double_t | GetFitEDM () const |
virtual Double_t | GetFitErrDef () const |
virtual Int_t | SaveFitData (const string &fname) const =0 |
virtual Int_t | LoadFitData (const string &fname)=0 |
ClassDef (RFitDataBase, 0) | |
Static Public Member Functions | |
static bool | Zero (const Double_t val) |
static UInt_t | GetStaticOptions () |
static bool | GetStaticOption (const UInt_t opt) |
static Int_t | GetStaticParNumber () |
static void | SetFctLineAtt (const TAttLine att) |
static void | SetFctLineAtt (const Color_t c, const Style_t s, const Width_t w) |
Protected Member Functions | |
virtual bool | SetHisto (TH1 *hptr, TH1 *herr=NULL) |
![]() | |
virtual Int_t | WriteData (FILE *fp) const |
virtual RFitData1D * | ReadFitData (const string &fname)=0 |
Protected Attributes | |
TH1 * | histo_ptr |
Pointeur sur l'histogramme à fitter. | |
TH1 * | herr1_ptr |
Pointeur sur l'histogramme d'erreur négatif. | |
TH1 * | herr2_ptr |
Pointeur sur l'histogramme d'erreur positif. | |
bool | histo_err |
Indique si l'histo est fitté avec une erreur. | |
string | par_name [50] |
tableau des noms de paramètres | |
Int_t | ix_min |
Borne inférieure du fit en canaux de l'histogramme. | |
Int_t | ix_max |
Borne supérieure du fit en canaux de l'histogramme. | |
Int_t | nx_bin |
Nombre de bins de la zone de fit. | |
TF1 * | fct_ptr |
Pointeur sur la fonction de fit. | |
![]() | |
Double_t | fit_xmin |
Fit limit. | |
Double_t | fit_xmax |
Fit limit. | |
Double_t | plot_xmin |
Plot limit. | |
Double_t | plot_xmax |
Plot limit. | |
Bool_t | plot_logx |
Log scale for plot. | |
Bool_t | plot_logy |
Log scale for plot. | |
![]() | |
UInt_t | fit_options |
Fit options. | |
Int_t | fit_mode |
Fit mode (Chi2 or Log-likelyhood) | |
Int_t | fit_result |
Fit result. | |
Double_t | fit_chi2 |
Chi2. | |
Int_t | fit_ndf |
Number of degrees of freedom. | |
Double_t | fit_fcn |
Minimized function value (FCN) | |
Double_t | fit_edm |
Estimated distance to minimum. | |
Double_t | fit_err_def |
Error matrix status. | |
Int_t | par_number |
Number of fit parameters (total) | |
Double_t | par_val [50] |
Parameters values. | |
Double_t | par_err [50] |
Uncertainties values. | |
bool | par_fix [50] |
Fix parameters. | |
Double_t | par_cov [50][50] |
Covariance matrix. | |
Static Protected Attributes | |
static Double_t | epsilon = 1.e-12 |
Check for null values. | |
static UInt_t | fit_options = 0 |
Options pour le fit (statique pour être vue dans la fonction de fit) | |
static Int_t | fit_mode = RFitModes::fitChi2 |
Mode de fit (Chi2 ou Log-likelyhood) | |
static Int_t | par_number = 0 |
Nombre de paramètres pour le fit. | |
static Double_t | histo_bin_x = 1. |
Largeur de bin de l'histogramme (pour calcul avec la surface comme paramètre) | |
static TAttLine | latt_histo = TAttLine ( 1, 1, 2 ) |
Attributs de lignes pour tracé de l'histogramme. | |
static TAttLine | latt_error = TAttLine ( 17, 1, 0 ) |
Attributs de lignes pour tracé de l'erreur. | |
static TAttFill | fatt_error = TAttFill ( 17, 1000 ) |
Attributs de remplissage pour tracé de l'erreur. | |
static TAttLine | latt_fct = TAttLine ( 2, 1, 2 ) |
Attributs de lignes pour tracé de la fonction globale. | |
static TAttLine | latt_zero = TAttLine ( 4, 1, 2 ) |
Attributs de lignes pour tracé central différences. | |
Private Member Functions | |
GObjectV (RFitBase1D) | |
Additional Inherited Members | |
![]() | |
static Int_t | ReadData (FILE *fp, RFitData1D &fdata) |
![]() | |
static Int_t | ReadData (FILE *fp, RFitDataBase &fdata) |
Base class for 1D fit classes.
RFitBase1D::RFitBase1D | ( | ) |
Default constructor, used for virtual multiple inheritance.
References fct_ptr, RFitData1D::fit_xmax, RFitData1D::fit_xmin, herr1_ptr, herr2_ptr, histo_bin_x, histo_err, histo_ptr, ix_max, ix_min, and nx_bin.
RFitBase1D::RFitBase1D | ( | TH1 * | hptr, |
TH1 * | herr = NULL |
||
) |
Constructeur.
hptr | pointer to fitted histogram |
herr | pointer to error histogram (default is NULL) |
References fct_ptr, histo_ptr, InitMode(), SetFitLimits(), and SetHisto().
RFitBase1D::RFitBase1D | ( | TH1 * | hptr, |
const RFitData1D & | fit_data | ||
) |
Constructeur avec initialisation du fit.
hptr | pointer to fitted histogram |
fit_data | initialization data |
References fct_ptr, histo_ptr, SetFitData(), and SetHisto().
RFitBase1D::RFitBase1D | ( | TH1 * | hptr, |
TH1 * | herr, | ||
const RFitData1D & | fit_data | ||
) |
Constructeur avec erreurs et initialisation du fit.
hptr | pointer to fitted histogram |
herr | pointer to error histogram |
fit_data | initialization data |
References fct_ptr, histo_ptr, SetFitData(), and SetHisto().
RFitBase1D::RFitBase1D | ( | const RFitBase1D & | original | ) |
Copy constructor: not implemented.
original | object to copy |
|
virtual |
|
private |
Macro from GCpp library that defines the following functions:
|
inlinestatic |
Test for zero approximation (see static class variable epsilon).
val | tested value |
References epsilon.
Referenced by RFitDecay::CheckTimes(), RFitDecay::Fit(), RFitDecay::GetHalfLife(), RFitDecay::GetLambda(), RGFitDecay::GuiFit(), RGFitDecay::GuiPreset(), RGFitPeak::PointsToWidgetPeak(), RFitDecay::Preset(), RFitDecayFunction(), RFitPeakFunction(), RFitPeak::SetAbsAmplitude(), RFitPeak::SetAbsFactor(), RFitPeak::SetAbsRatio(), RFitPeak::SetAbsSigma(), RFitPeak::SetAbsTail(), RFitDecay::SetDecayRate(), RFitDecay::SetHalfLife(), RFitDecay::SetInitNumber(), RFitDecay::SetLambda(), RFitDecay::SetProdRate(), and RGFitPeak::WidgetsToPointPeak().
|
protectedvirtual |
Set the histogram to be fitted, and optionnaly the histogram containing the uncertainty (if not set, the first histogram error is considered by default). The error histogram must have the same binning that the fitted histogram.
hptr | pointer to histogram to fit |
herr | pointer to uncertainty histogram |
References fatt_error, fit_mode, RFitModes::fitLikelyhood, herr1_ptr, herr2_ptr, histo_err, histo_ptr, latt_error, and latt_histo.
Referenced by RFitBase1D(), RFitDecay::RFitDecay(), and RFitPeak::RFitPeak().
|
virtual |
Reset fit results: parameters, errors and result.
Reimplemented from RFitDataBase.
References par_name, RFitDataBase::Reset(), and RFIT_MAX_PAR.
Referenced by InitMode(), RFitPeak::InitMode(), and SetFitData().
|
virtual |
Initialize the fitter data, static or not, when fit options are modified.
Reimplemented in RFitDecay, and RFitPeak.
References RFitDataBase::fit_mode, fit_mode, RFitDataBase::fit_options, fit_options, histo_bin_x, histo_ptr, par_number, RFitDataBase::par_number, and Reset().
Referenced by RGFitBase1D::GuiReset(), RFitBase1D(), SetFitData(), and SetOption().
|
inlinevirtual |
Set all options (option bit pattern).
opts | options bit pattern |
Reimplemented in RGFitPeak, and RGFitDecay.
References fit_options, and SetOption().
Referenced by SetFitData(), RGFitDecay::SetOptions(), and RGFitPeak::SetOptions().
|
virtual |
Set an option status
opt | option (binary mask) |
b | status |
Reimplemented in RFitDecay, RGFitPeak, and RGFitDecay.
References fit_options, and InitMode().
Referenced by RGFitPeak::CommonRatioToggled(), RGFitPeak::CommonSigmaToggled(), RGFitPeak::CommonTailToggled(), RGFitPeak::OptErrToggled(), RGFitPeak::OptSurfToggled(), RGFitPeak::OptTailToggled(), RGFitPeak::SetOption(), and SetOptions().
|
inlinestatic |
Get options bit pattern.
References fit_options.
Referenced by RGFitDecay::GetOptions(), and RGFitPeak::GetOptions().
|
inlinestatic |
Get status of selected options
opt | selected options mask |
References fit_options.
Referenced by RGFitDecay::AddPoint(), RGFitDecay::CalcFunctions(), RFitDecay::CheckTimes(), RFitDecay::DrawFctResult(), RFitPeak::DrawFctResult(), RFitPeak::DrawPeakAll(), Fit(), RFitPeak::GetAmplitude(), RFitPeak::GetAmplitudeError(), RFitPeak::GetCounts(), RFitPeak::GetCountsError(), RFitDecay::GetDecayHisto(), RFitDecay::GetFitText(), RFitPeak::GetFitText(), RFitDecay::GetHalfLife(), RFitDecay::GetLambda(), RGFitDecay::GetOption(), RGFitPeak::GetOption(), RFitPeak::GetPeakTailHisto(), RFitDecay::GetStaticDecayTime(), RFitDecay::GetStaticProdTime(), RGFitDecay::GuiDrawFct(), RGFitDecay::GuiFit(), RGFitDecay::GuiPreset(), RGFitDecay::GuiUpdateDisplayDecays(), RGFitDecay::GuiUpdateDisplayTimes(), RGFitDecay::GuiUpdateOptions(), RFitPeak::InitMode(), RGFitDecay::OptParProdRateSet(), RGFitDecay::OptProdThirdToggled(), RGFitPeak::ParamToWidget(), RGFitDecay::ParamToWidgetDecays(), RFitDecay::Preset(), RFitDecay::PresetBg(), RFitDecayFunction(), RFitPeakFunction(), RFitPeak::SetAbsAmplitude(), RFitPeak::SetAmplitude(), RFitDecay::SetDecayRate(), RGFitDecay::SetDecayTime(), RFitDecay::SetDecayTime(), RFitDecay::SetHalfLife(), RFitDecay::SetInitNumber(), RFitDecay::SetLambda(), RFitDecay::SetOption(), RFitDecay::SetProdRate(), RGFitDecay::SetProdTime(), RFitDecay::SetProdTime(), RFitPeak::SetRatio(), RFitPeak::SetRelativeRatio(), RFitPeak::SetRelativeSigma(), RFitPeak::SetRelativeTail(), RFitPeak::SetTail(), RGFitDecay::WidgetsToParamDecays(), and RGFitDecay::WidgetsToParamTimes().
|
inlinestatic |
Get the number of fit parameters.
References par_number.
Referenced by FixParameter(), GetParName(), and SetParValue().
|
inlinevirtual |
Set the fit mode: chi2 minimisation or maximum likelyhood, see namespace RFitModes).
mode | selected mode |
Reimplemented in RGFitBase1D.
References fit_mode, RFitModes::fitChi2, and RFitModes::fitLikelyhood.
Referenced by SetFitData(), and RGFitBase1D::SetFitMode().
|
virtual |
Set the fit limits. They are adjusted to fit with histogram binning. Lower and upper bins are calculated.
x1 | lower X limit |
x2 | upper X limit |
Reimplemented from RFitData1D.
Reimplemented in RGFitBase1D, RGFitPeak, RFitPeak, and RGFitDecay.
References RFitData1D::fit_xmax, RFitData1D::fit_xmin, histo_bin_x, histo_ptr, ix_max, ix_min, and nx_bin.
Referenced by RGFitBase1D::FitInfLimitTextChanged(), RGFitBase1D::FitSupLimitTextChanged(), RFitBase1D(), RFitDecay::RFitDecay(), SetFitData(), RGFitDecay::SetFitLimits(), RFitPeak::SetFitLimits(), and RGFitBase1D::SetFitLimits().
|
inlinevirtual |
Initialize a fit parameter.
p | parameter number |
val | parameter vaue |
References GetStaticParNumber(), and RFitDataBase::par_val.
Referenced by RFitDecay::SetDecayTime(), RFitDecay::SetProdTime(), and RGFitDecay::WidgetsToParamDecays().
|
inlinevirtual |
Get fit parameter name.
p | parameter number |
References GetStaticParNumber(), and par_name.
Referenced by RFitDecay::GetFitText(), and RFitPeak::GetFitText().
|
virtual |
Fix (or release) a fit parameter.
p | parameter number |
b | fix (true) or release (false) |
References GetStaticParNumber(), and RFitDataBase::par_fix.
Referenced by RGFitPeak::BgPreset(), RGFitPeak::CommonRatioToggled(), RGFitPeak::CommonSigmaToggled(), RGFitPeak::CommonTailToggled(), RGFitPeak::FixRatioClicked(), RGFitPeak::FixSigmaClicked(), RGFitPeak::FixTailClicked(), RGFitPeak::PeakPreset(), RGFitDecay::WidgetsToParamBg(), RGFitPeak::WidgetsToParamBg(), RGFitDecay::WidgetsToParamDecays(), RGFitPeak::WidgetsToParamPeak(), and RGFitDecay::WidgetsToParamTimes().
|
inline |
Return the pointer to the ROOT function used for fitting. Warning: the function should not be modified outside the fitter object !
References fct_ptr.
|
inlinestatic |
|
inlinestatic |
|
pure virtual |
Indicate that all components of the fit function must be included.
Implemented in RFitPeak, and RFitDecay.
Referenced by Fit(), GetDifferenceHisto(), GetFunctionHisto(), GetSqrtNegHisto(), and GetSqrtPosHisto().
|
pure virtual |
|
pure virtual |
Defines the fit function and the parameters.
Initialization of the function and parameters. The function should be overloaded according to the type of fit.
Implemented in RFitPeak, and RFitDecay.
References fct_ptr, RFitDataBase::par_fix, par_name, par_number, and RFitDataBase::par_val.
Referenced by Eval(), FillRandomHisto(), Fit(), GetDifferenceHisto(), GetFunctionHisto(), GetRandomHisto(), GetSqrtNegHisto(), and GetSqrtPosHisto().
|
pure virtual |
Scale the function, and adjust parameters according to the scale.
s | scaling factor |
Implemented in RFitPeak, and RFitDecay.
Referenced by NormaliseFunction().
|
virtual |
Function that modifies normalises the function integral. In derived classes for specific type of fits, the parameters should be adjusted.
nor | normalization value |
References fct_ptr, RFitData1D::fit_xmax, RFitData1D::fit_xmin, and ScaleFunction().
|
virtual |
Plot the histogram, including uncertainty if it is defined.
yinf | lower plotting Y value |
ysup | upper plotting Y value |
References histo_err, histo_ptr, and RDrawHistoError().
Referenced by DrawFctResult(), RFitDecay::DrawFctResult(), and RFitPeak::DrawFctResult().
|
virtual |
Plot fit functions, with all components.
opts | ROOT plot options (see ROOT class TF1) |
References GetFunctionHisto().
Referenced by DrawFctResult(), RFitDecay::DrawFctResult(), and RFitPeak::DrawFctResult().
|
virtual |
Compute integral of fit function. This is a numerical integration, with parameters variation for the error estimate.
val | integral result (output) |
err | estimated uncertainty (output) |
x1 | lower computation limit |
x2 | upper computation limit |
npts | number of integration points |
frac | fraction of uncertainties for error estimate |
Reimplemented in RFitPeak.
References fct_ptr, histo_bin_x, RFitDataBase::IsFixParameter(), RFitDataBase::par_cov, RFitDataBase::par_err, par_number, RFitDataBase::par_val, and RFIT_MAX_PAR.
Referenced by RFitPeak::CalcIntegral().
|
virtual |
Plot the histogram, the fit function and its components in an existing pad.
The options are:
pad | pad pointer |
opts | results plot options |
Reimplemented in RFitPeak, and RFitDecay.
References DrawFunction(), DrawHisto(), RFitData1D::fit_xmax, RFitData1D::fit_xmin, histo_bin_x, and histo_ptr.
Referenced by RGFitDisplayer1D::DrawFitResult(), and DrawFitResult().
|
virtual |
Plot the the difference between histogram and fit result.
The options are:
pad | pad pointer |
opts | results plot options |
References RFitData1D::fit_xmax, RFitData1D::fit_xmin, GetDifferenceHisto(), GetSqrtNegHisto(), GetSqrtPosHisto(), herr1_ptr, herr2_ptr, histo_ptr, and latt_zero.
Referenced by DrawFitResult().
|
virtual |
Plot the histogram, the fit function and its components in an existing pad, and the difference between histogram and fit result.
The options are:
pad | pad pointer |
opts | results plot options |
References DrawDifResult(), and DrawFctResult().
Referenced by RGFitDisplayer1D::DrawFitResult().
|
virtual |
Fill an existing histogram with fit function values.
hptr | histogram pointer |
References fct_ptr.
Referenced by RFitDecay::GetBgHisto(), RFitPeak::GetBgHisto(), RFitDecay::GetDecayHisto(), GetFunctionHisto(), RFitPeak::GetPeakGausHisto(), RFitPeak::GetPeakHisto(), and RFitPeak::GetPeakTailHisto().
|
virtual |
Allocate a new histogram filled with fit function values. The returned histogram must be deleted by calling program.
name | histogram name |
References FillFunctionHisto(), RFitData1D::fit_xmax, RFitData1D::fit_xmin, latt_fct, nx_bin, SetCalcAll(), and SetFunction().
Referenced by RGFitDecay::CalcFunctions(), RGFitBase1D::CalcFunctions(), RGFitPeak::CalcFunctions(), and DrawFunction().
|
virtual |
Fonction qui renvoit un histogramme avec la différence entre l'histogramme et la fonction de fit. (erreur statistique).
name | nom de l'histogramme |
References fct_ptr, RFitData1D::fit_xmax, RFitData1D::fit_xmin, histo_bin_x, histo_ptr, ix_min, nx_bin, SetCalcAll(), and SetFunction().
Referenced by RGFitDecay::CalcFunctions(), RGFitBase1D::CalcFunctions(), RGFitPeak::CalcFunctions(), and DrawDifResult().
|
inlinevirtual |
Get a pointer to an histogram filled with the square root of the fit function (statistical uncertainty). The function is supposed to be positive: if this is not the case, the bin values are set to 0.
name | histogram name |
References GetSqrtPosHisto().
|
virtual |
Fonction qui renvoit un histogramme avec la racine carrée de la fonction (erreur statistique). La fonction est supposée être positive ! Si ce n'est pas le cas, les canaux sont mis à 0.
name | nom de l'histogramme |
References fct_ptr, RFitData1D::fit_xmax, RFitData1D::fit_xmin, histo_bin_x, latt_fct, nx_bin, SetCalcAll(), and SetFunction().
Referenced by RGFitDecay::CalcFunctions(), RGFitBase1D::CalcFunctions(), RGFitPeak::CalcFunctions(), DrawDifResult(), and GetSqrtHisto().
|
virtual |
Fonction qui renvoit un histogramme avec le négatif de la racine carrée de la fonction (erreur statistique). La fonction est supposée être positive ! Si ce n'est pas le cas, les canaux sont mis à 0.
name | nom de l'histogramme |
References fct_ptr, RFitData1D::fit_xmax, RFitData1D::fit_xmin, histo_bin_x, latt_fct, nx_bin, SetCalcAll(), and SetFunction().
Referenced by RGFitDecay::CalcFunctions(), RGFitBase1D::CalcFunctions(), RGFitPeak::CalcFunctions(), and DrawDifResult().
|
virtual |
Evalue la valeur de la fonction, avec les paramètres en cours.
x | point pour lequel la fonction doit être calculée |
References fct_ptr, and SetFunction().
|
virtual |
Tirage aléatoire d'une valeur selon la fonction.
References fct_ptr, RFitData1D::fit_xmax, and RFitData1D::fit_xmin.
Referenced by FillRandomHisto(), and GetRandomHisto().
|
virtual |
Création d'un histogramme à partir d'un tirage aléatoire sur la fonction de fit.
name | nom de l'histogramme |
n | nombre d'entrées de l'histogramme |
References RFitData1D::fit_xmax, RFitData1D::fit_xmin, GetRandom(), nx_bin, and SetFunction().
|
virtual |
Remplissage d'un histogramme à partir d'un tirage aléatoire sur la fonction de fit.
hptr | pointeur de l'histogramme |
n | nombre d'entrées de l'histogramme |
References GetRandom(), and SetFunction().
|
inlinevirtual |
Parameters preset function before fit: in the base class, nothing is done (it may be overloaded in derived classes).
Reimplemented in RFitDecay.
Referenced by RGFitBase1D::GuiPreset().
|
virtual |
Fonction qui réalise le fit de l'histogramme, et retourne le chi2 normalisé obtenu. En cas de normalisation des erreurs par le chi2, la valeur retournée est la valeur du chi2 avant la normalisation (ben, oui, après, il vaut 1, ça n'a pas tellement d'intérêt...).
opts | options de fit (elles sont prioritaires sur les options internes, en particulier le mode de fit) |
Reimplemented in RFitDecay.
References fct_ptr, RFitDataBase::fit_chi2, RFitDataBase::fit_edm, RFitDataBase::fit_err_def, RFitDataBase::fit_fcn, RFitDataBase::fit_mode, fit_mode, RFitDataBase::fit_ndf, RFitDataBase::fit_options, fit_options, RFitDataBase::fit_result, RFitData1D::fit_xmax, RFitData1D::fit_xmin, RFitModes::fitLikelyhood, GetStaticOption(), histo_ptr, RFitOptions::modeErrNorm, RFitDataBase::par_cov, RFitDataBase::par_err, RFitDataBase::par_fix, par_number, RFitDataBase::par_number, RFitDataBase::par_val, SetCalcAll(), and SetFunction().
Referenced by RFitDecay::Fit(), and RGFitBase1D::GuiFit().
|
pure virtual |
Fonction qui écrit le résultat de fit dans une chaine de caractères.
Implemented in RFitPeak, and RFitDecay.
Referenced by RGFitBase1D::GuiTextView(), and PrintFit().
|
virtual |
Fonction qui écrit le résultat de fit dans un fichier texte.
fname | nom du fichier |
|
virtual |
Fonction qui écrit le résultat de fit dans un fichier texte.
fptr | pointeur de fichier (type C) |
References GetFitText().
|
virtual |
Fonction qui écrit les paramètres du fit, les erreurs et la matrice de covariance dans un fichier texte.
fname | nom du fichier |
Referenced by RGFitBase1D::GuiWriteParam().
|
virtual |
Fonction qui écrit les paramètres du fit, les erreurs et la matrice de covariance dans un fichier texte.
fptr | pointeur de fichier (type C) |
References RFitDataBase::fit_chi2, RFitDataBase::par_err, par_name, par_number, and RFitDataBase::par_val.
|
virtual |
Fonction qui écrit l'ensemble des résultats de fit (options et paramètres) dans un fichier texte.
fname | nom du fichier |
|
virtual |
Fonction qui écrit l'ensemble des résultats de fit (options et paramètres) dans un fichier texte.
fptr | pointeur de fichier (type C) |
|
pure virtual |
Creation d'une structure de données relatives au fit (voir classes dérivées).
Implemented in RFitPeak, RFitDecay, RGFitPeak, RGFitBase1D, and RGFitDecay.
|
virtual |
Fonction qui renvoit le pointeur sur les données de fit de la classe.
Reimplemented in RFitPeak, RFitDecay, RGFitPeak, RGFitBase1D, and RGFitDecay.
References RFitDataBase::fit_mode, RFitDataBase::fit_options, and RFitDataBase::par_number.
|
virtual |
Fonction qui initialise les données du fit à partir de données récupérées d'un fit précédent.
fit_data | données pour initialisation |
Reimplemented in RFitPeak, RFitDecay, RGFitPeak, RGFitBase1D, and RGFitDecay.
References RFitDataBase::fit_result, RFitDataBase::GetFitMode(), RFitDataBase::GetFitOptions(), RFitData1D::GetFitXmax(), RFitData1D::GetFitXmin(), RFitDataBase::GetParNumber(), RFitDataBase::GetParValue(), InitMode(), RFitDataBase::IsFixParameter(), RFitDataBase::par_fix, RFitDataBase::par_val, Reset(), SetFitLimits(), SetFitMode(), and SetOptions().
Referenced by RFitBase1D(), RGFitBase1D::SetFitData(), RFitDecay::SetFitData(), and RFitPeak::SetFitData().
RFitBase1D::ClassDef | ( | RFitBase1D | , |
0 | |||
) |
For ROOT dictionary.