|
JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RFitData1D.hh>
Public Member Functions | |
| 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) | |
Public Member Functions inherited from RFitDataBase | |
| 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 RFitData1D * | ReadFitData (const string &fname)=0 |
Static Protected Member Functions | |
| static Int_t | ReadData (FILE *fp, RFitData1D &fdata) |
Static Protected Member Functions inherited from RFitDataBase | |
| static Int_t | ReadData (FILE *fp, RFitDataBase &fdata) |
Protected Attributes | |
| 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. | |
Protected Attributes inherited from RFitDataBase | |
| 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 (RFitData1D) | |
Base class for 1D 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.
| RFitData1D::RFitData1D | ( | ) |
| RFitData1D::RFitData1D | ( | const RFitData1D & | original | ) |
|
virtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
| RFitData1D & RFitData1D::operator= | ( | const RFitData1D & | original | ) |
|
inlinevirtual |
Define fit limits.
| x1 | lower limit |
| x2 | upper limit |
Reimplemented in RGFitBase1D, RGFitPeak, RFitPeak, RGFitDecay, and RFitBase1D.
|
inlinevirtual |
|
inlinevirtual |
Get lower fit limit.
References fit_xmin.
Referenced by RGHistoTools::DecayFitButtonClicked(), RGHistoTools::Gaus2DFitButtonClicked(), RGHistoTools::PeakFitButtonClicked(), RFitBase1D::SetFitData(), and RFitBase2D::SetFitData().
|
inlinevirtual |
Get upper fit limit.
References fit_xmax.
Referenced by RGHistoTools::DecayFitButtonClicked(), RGHistoTools::Gaus2DFitButtonClicked(), RGHistoTools::PeakFitButtonClicked(), RFitBase1D::SetFitData(), and RFitBase2D::SetFitData().
|
inlinevirtual |
Define plot limits.
| x1 | lower limit |
| x2 | upper limit |
Reimplemented in RGFitBase1D.
References plot_xmax, and plot_xmin.
Referenced by RGHistoTools::DecayFitButtonClicked(), RGHistoTools::PeakFitButtonClicked(), and RGFitBase1D::SetPlotLimits().
|
inlinevirtual |
|
inlinevirtual |
Get lower plot limit.
References plot_xmin.
Referenced by RGHistoTools::DecayFitButtonClicked(), RGHistoTools::Gaus2DFitButtonClicked(), RGFitBase1D::GuiLoadFitData(), RGFitBase2D::GuiLoadFitData(), RGHistoTools::PeakFitButtonClicked(), RGFitDecay::SetFitData(), RGFitBase1D::SetFitData(), RGFitGaus2D::SetFitData(), RGFitPeak::SetFitData(), and RGFitBase2D::SetFitData().
|
inlinevirtual |
Get upper plot limit.
References plot_xmax.
Referenced by RGFitBase1D::GuiLoadFitData(), RGFitBase2D::GuiLoadFitData(), RGFitDecay::SetFitData(), RGFitBase1D::SetFitData(), RGFitGaus2D::SetFitData(), RGFitPeak::SetFitData(), and RGFitBase2D::SetFitData().
|
inlinevirtual |
Return true for log scale plot.
References plot_logx.
Referenced by RGFitBase1D::GuiLoadFitData(), RGFitBase2D::GuiLoadFitData(), RGFitDecay::SetFitData(), RGFitBase1D::SetFitData(), RGFitGaus2D::SetFitData(), RGFitPeak::SetFitData(), and RGFitBase2D::SetFitData().
|
inlinevirtual |
Return true for log scale plot.
References plot_logy.
Referenced by RGFitBase1D::GuiLoadFitData(), RGFitBase2D::GuiLoadFitData(), RGFitDecay::SetFitData(), RGFitBase1D::SetFitData(), RGFitGaus2D::SetFitData(), RGFitPeak::SetFitData(), and RGFitBase2D::SetFitData().
|
protectedvirtual |
Write fit data to file. The function returns 0 if no error occured.
| fp | file pointer |
Reimplemented from RFitDataBase.
Reimplemented in RFitData2D.
References fit_xmax, fit_xmin, plot_logx, plot_logy, plot_xmax, plot_xmin, and RFitDataBase::WriteData().
Referenced by RFitDataPeak::SaveFitData(), and RFitDataDecay::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 fit_xmax, fit_xmin, plot_logx, plot_logy, plot_xmax, plot_xmin, and RFitDataBase::ReadData().
Referenced by RFitDataPeak::ReadFitData(), and RFitDataDecay::ReadFitData().
|
protectedpure virtual |
Create fit data object from file (see derived classes).
| fname | file name |
Implemented in RFitDataDecay, RFitData2D, RFitDataGaus2D, and RFitDataPeak.
Referenced by RGFitBase1D::GuiLoadFitData().
| RFitData1D::ClassDef | ( | RFitData1D | , |
| 0 | |||
| ) |
For ROOT dictionary.