RAIDA  1.9.0
IFitResultROOT.h
1 // -*- C++ -*-
2 #ifndef AIDA_IFITRESULTROOT_H
3 #define AIDA_IFITRESULTROOT_H 1
4 
5 #include <AIDA/IFitResult.h>
6 #include <string>
7 #include <vector>
8 
9 namespace AIDA {
10 
11 class IFitParameterSettings;
12 class IFunction;
13 
20 class IFitResultROOT : public IFitResult {
21 
22 public:
24  virtual ~IFitResultROOT() { /* nop */; }
25 
26  IFitResultROOT() { /* nop */; }
27 
29  virtual bool isValid() ;
30 
32  virtual int fitStatus() ;
33 
35  virtual IFunction & fittedFunction() ;
36 
39  virtual double quality() ;
40 
42  virtual int ndf() ;
43 
45  virtual double covMatrixElement(int i, int j) ;
46 
48  virtual std::string fitMethodName() ;
49 
51  virtual std::string engineName() ;
52 
58  virtual std::string dataDescription() ;
59 
61  virtual std::vector<std::string> constraints() ;
62 
64  virtual IFitParameterSettings * fitParameterSettings(const std::string & name) ;
65 
70  virtual const std::vector<double> & fittedParameters() const ;
71 
76  virtual std::vector<std::string> fittedParameterNames() const ;
77 
82  virtual double fittedParameter(const std::string & name) ;
83 
89  virtual const std::vector<double> & errors() const ;
90 
96  virtual const std::vector<double> & errorsPlus() const ;
97 
103  virtual const std::vector<double> & errorsMinus() const ;
104 }; // class
105 } // namespace AIDA
106 #endif /* ifndef AIDA_IFITRESULTROOT_H */
virtual const std::vector< double > & errors() const
Get the parabolic errors on the fitted parameters.
Definition: IFitResultROOT.cc:101
virtual double quality()
Quality of the fit.
Definition: IFitResultROOT.cc:31
virtual bool isValid()
True if fit successful, otherwise false.
Definition: IFitResultROOT.cc:12
Dummy implementation of the IFitResult class.
Definition: IFitResultROOT.h:20
virtual std::vector< std::string > constraints()
Vector of constraints.
Definition: IFitResultROOT.cc:67
virtual int fitStatus()
Status of the fit. PENDING: what are the suggested values?
Definition: IFitResultROOT.cc:18
virtual IFitParameterSettings * fitParameterSettings(const std::string &name)
Access to applied parameter settings.
Definition: IFitResultROOT.cc:74
virtual const std::vector< double > & errorsMinus() const
Get the negative part of the asymmetric errors on the fitted parameters.
Definition: IFitResultROOT.cc:115
virtual std::string engineName()
Engine used to do fitting.
Definition: IFitResultROOT.cc:55
virtual const std::vector< double > & errorsPlus() const
Get the positive part of the asymmetric errors on the fitted parameters.
Definition: IFitResultROOT.cc:108
Definition: IFitResult.h:35
virtual double fittedParameter(const std::string &name)
Get the value of a fitted parameter by name.
Definition: IFitResultROOT.cc:95
virtual std::vector< std::string > fittedParameterNames() const
Get the names of the fitted parameters (including fixed and constrained ones).
Definition: IFitResultROOT.cc:88
virtual const std::vector< double > & fittedParameters() const
Get the array of the fitted parameter values (including fixed and constrained ones).
Definition: IFitResultROOT.cc:81
virtual std::string dataDescription()
Textual description of data - this is a hint for the user how to find the data in the tree if he want...
Definition: IFitResultROOT.cc:61
virtual std::string fitMethodName()
Fit method name as set in the fitter.
Definition: IFitResultROOT.cc:49
virtual int ndf()
Number of degrees of freedom.
Definition: IFitResultROOT.cc:37
virtual double covMatrixElement(int i, int j)
Covariance matrix. PENDING: interface for matrix to be defined.
Definition: IFitResultROOT.cc:43
virtual IFunction & fittedFunction()
Fitted function. The parameters hold the results of the fit.
Definition: IFitResultROOT.cc:24
virtual ~IFitResultROOT()
Destructor.
Definition: IFitResultROOT.h:24