JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RFitData2D.hh>
Public Member Functions | |
RFitData2D () | |
RFitData2D (const RFitData2D &original) | |
RFitData2D & | operator= (const RFitData2D &original) |
virtual | ~RFitData2D () |
virtual void | SetFitLimits (const Double_t x1, const Double_t x2, const Double_t y1, const Double_t y2) |
virtual void | GetFitLimits (Double_t &x1, Double_t &x2, Double_t &y1, Double_t &y2) const |
virtual Double_t | GetFitYmin () const |
virtual Double_t | GetFitYmax () const |
virtual void | SetPlotLimits (const Double_t x1, const Double_t x2, const Double_t y1, const Double_t y2) |
virtual void | GetPlotLimits (Double_t &x1, Double_t &x2, Double_t &y1, Double_t &y2) const |
virtual Double_t | GetPlotYmin () const |
virtual Double_t | GetPlotYmax () const |
virtual Bool_t | IsLogZ () const |
ClassDef (RFitData2D, 0) | |
![]() | |
RFitData1D () | |
RFitData1D (const RFitData1D &original) | |
RFitData1D & | operator= (const RFitData1D &original) |
virtual | ~RFitData1D () |
virtual void | SetFitLimits (Double_t x1, Double_t x2) |
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 void | Reset () |
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) | |
Protected Member Functions | |
virtual Int_t | WriteData (FILE *fp) const |
virtual RFitData2D * | ReadFitData (const string &fname)=0 |
Static Protected Member Functions | |
static Int_t | ReadData (FILE *fp, RFitData2D &fdata) |
![]() | |
static Int_t | ReadData (FILE *fp, RFitData1D &fdata) |
![]() | |
static Int_t | ReadData (FILE *fp, RFitDataBase &fdata) |
Protected Attributes | |
Double_t | fit_ymin |
Fit limit. | |
Double_t | fit_ymax |
Fit limit. | |
Double_t | plot_ymin |
Plot limit. | |
Double_t | plot_ymax |
Plot limit. | |
Bool_t | plot_logz |
Log scale for plot. | |
![]() | |
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. | |
Private Member Functions | |
GObjectV (RFitData2D) | |
Base class for 2D fit data and results.
The class does not define functions to change fit results, but it can change fit options, for use in a new fit initialisation.
RFitData2D::RFitData2D | ( | ) |
Default constructor.
References fit_ymax, fit_ymin, RFitData1D::plot_logy, plot_ymax, and plot_ymin.
RFitData2D::RFitData2D | ( | const RFitData2D & | original | ) |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
RFitData2D & RFitData2D::operator= | ( | const RFitData2D & | original | ) |
|
inlinevirtual |
Define fit limits.
x1 | lower X limit |
x2 | upper X limit |
y1 | lower Y limit |
y2 | upper Y limit |
Reimplemented in RGFitBase2D, RGFitGaus2D, RFitGaus2D, and RFitBase2D.
References RFitData1D::fit_xmax, RFitData1D::fit_xmin, and fit_ymin.
|
inlinevirtual |
Get fit limits.
x1 | lower X limit |
x2 | upper X limit |
y1 | lower Y limit |
y2 | upper Y limit |
References RFitData1D::fit_xmax, RFitData1D::fit_xmin, fit_ymax, and fit_ymin.
|
inlinevirtual |
Get lower fit limit.
References fit_ymin.
Referenced by RGHistoTools::Gaus2DFitButtonClicked(), and RFitBase2D::SetFitData().
|
inlinevirtual |
Get upper fit limit.
References fit_ymax.
Referenced by RGHistoTools::Gaus2DFitButtonClicked(), and RFitBase2D::SetFitData().
|
inlinevirtual |
Define plot limits.
x1 | lower X limit |
x2 | upper X limit |
y1 | lower Y limit |
y2 | upper Y limit |
Reimplemented in RGFitBase2D.
References RFitData1D::plot_xmax, RFitData1D::plot_xmin, and plot_ymin.
Referenced by RGHistoTools::Gaus2DFitButtonClicked(), and RGFitBase2D::SetPlotLimits().
|
inlinevirtual |
Get plot limits.
x1 | lower X limit |
x2 | upper X limit |
y1 | lower Y limit |
y2 | upper Y limit |
References RFitData1D::plot_xmax, RFitData1D::plot_xmin, plot_ymax, and plot_ymin.
|
inlinevirtual |
Get lower plot limit.
References plot_ymin.
Referenced by RGHistoTools::Gaus2DFitButtonClicked(), RGFitBase2D::GuiLoadFitData(), RGFitGaus2D::SetFitData(), and RGFitBase2D::SetFitData().
|
inlinevirtual |
Get upper plot limit.
References plot_ymax.
Referenced by RGFitBase2D::GuiLoadFitData(), RGFitGaus2D::SetFitData(), and RGFitBase2D::SetFitData().
|
inlinevirtual |
Return true for log scale plot.
References plot_logz.
Referenced by RGFitBase2D::GuiLoadFitData(), RGFitGaus2D::SetFitData(), and RGFitBase2D::SetFitData().
|
protectedvirtual |
Write fit data to file. The function returns 0 if no error occured.
fp | file pointer |
Reimplemented from RFitData1D.
References RFitData1D::fit_xmax, RFitData1D::fit_xmin, fit_ymax, fit_ymin, RFitData1D::plot_logx, RFitData1D::plot_logy, plot_logz, RFitData1D::plot_xmax, RFitData1D::plot_xmin, plot_ymax, plot_ymin, and RFitDataBase::WriteData().
Referenced by RFitDataGaus2D::SaveFitData().
|
staticprotected |
Read fit data from a file. The function returns 0 if no error occured.
fp | file pointer |
fdata | fit data to update from the file |
References RFitData1D::fit_xmax, RFitData1D::fit_xmin, fit_ymax, fit_ymin, RFitData1D::plot_logx, RFitData1D::plot_logy, plot_logz, RFitData1D::plot_xmax, RFitData1D::plot_xmin, plot_ymax, plot_ymin, and RFitDataBase::ReadData().
Referenced by RFitDataGaus2D::ReadFitData().
|
protectedpure virtual |
Create fit data object from file (see derived classes).
fname | file name |
Implements RFitData1D.
Implemented in RFitDataGaus2D.
Referenced by RGFitBase2D::GuiLoadFitData().
RFitData2D::ClassDef | ( | RFitData2D | , |
0 | |||
) |
For ROOT dictionary.