|
MarlinKinfit
0.4.0
|
A kinematic fitter using the Newton-Raphson method to solve the equations. More...
#include <NewtonFitterGSL.h>
Public Member Functions | |
| NewtonFitterGSL () | |
| Constructor. | |
| virtual | ~NewtonFitterGSL () |
| Virtual destructor. | |
| virtual double | fit () |
| The fit method, returns the fit probability. | |
| virtual int | getError () const |
| Get the error code of the last fit: 0=OK, 1=failed. | |
| virtual double | getProbability () const |
| Get the fit probability of the last fit. | |
| virtual double | getChi2 () const |
| Get the chi**2 of the last fit. | |
| virtual int | getDoF () const |
| Get the number of degrees of freedom of the last fit. | |
| virtual int | getIterations () const |
| Get the number of iterations of the last fit. | |
| virtual int | getNcon () const |
| Get the number of hard constraints of the last fit. | |
| virtual int | getNsoft () const |
| Get the number of soft constraints of the last fit. | |
| virtual int | getNpar () const |
| Get the number of all parameters of the last fit. | |
| virtual int | getNunm () const |
| Get the number of unmeasured parameters of the last fit. | |
| virtual bool | initialize () |
| Initialize the fitter. | |
| virtual void | setDebug (int debuglevel) |
| Set the Debug Level. | |
Public Member Functions inherited from BaseFitter | |
| virtual void | addFitObject (BaseFitObject *fitobject_) |
| virtual void | addFitObject (BaseFitObject &fitobject_) |
| virtual void | addConstraint (BaseConstraint *constraint_) |
| virtual void | addConstraint (BaseConstraint &constraint_) |
| virtual void | addHardConstraint (BaseHardConstraint *constraint_) |
| virtual void | addHardConstraint (BaseHardConstraint &constraint_) |
| virtual void | addSoftConstraint (BaseSoftConstraint *constraint_) |
| virtual void | addSoftConstraint (BaseSoftConstraint &constraint_) |
|
virtual std::vector < BaseFitObject * > * | getFitObjects () |
|
virtual std::vector < BaseHardConstraint * > * | getConstraints () |
|
virtual std::vector < BaseSoftConstraint * > * | getSoftConstraints () |
| virtual void | reset () |
| virtual BaseTracer * | getTracer () |
| virtual const BaseTracer * | getTracer () const |
| virtual void | setTracer (BaseTracer *newTracer) |
| virtual void | setTracer (BaseTracer &newTracer) |
| virtual const double * | getGlobalCovarianceMatrix (int &idim) const |
| virtual double * | getGlobalCovarianceMatrix (int &idim) |
Protected Types | |
| enum | { NPARMAX =50, NCONMAX =10, NUNMMAX =10 } |
Protected Types inherited from BaseFitter | |
|
typedef std::vector < BaseFitObject * > | FitObjectContainer |
|
typedef std::vector < BaseHardConstraint * > | ConstraintContainer |
|
typedef std::vector < BaseSoftConstraint * > | SoftConstraintContainer |
|
typedef FitObjectContainer::iterator | FitObjectIterator |
|
typedef ConstraintContainer::iterator | ConstraintIterator |
|
typedef SoftConstraintContainer::iterator | SoftConstraintIterator |
Protected Member Functions | |
| virtual double | calcChi2 () |
| Calculate the chi2. | |
| int | calcDx () |
| Calculate the vector dx to update the parameters; returns fail code, 0=OK. | |
| int | calcDxSVD () |
| Calculate the vector dx to update the parameters; returns fail code, 0=OK. | |
| void | printMy (double M[], double y[], int idim) |
| Print a Matrix M and a vector y of dimension idim. | |
| bool | updateParams (gsl_vector *xnew) |
| void | fillxold () |
| void | fillperr () |
| int | calcM (bool errorpropagation=false) |
| int | calcy () |
| int | optimizeScale () |
| int | invertM () |
| void | calcCovMatrix () |
| double | meritFunction (double mu) |
| double | meritFunctionDeriv (double mu) |
Protected Member Functions inherited from BaseFitter | |
| BaseFitter (const BaseFitter &rhs) | |
| Copy constructor disabled. | |
| BaseFitter & | operator= (const BaseFitter &rhs) |
| Assignment disabled. | |
Protected Attributes | |
| int | npar |
| total number of parameters | |
| int | ncon |
| total number of hard constraints | |
| int | nsoft |
| total number of soft constraints | |
| int | nunm |
| total number of unmeasured parameters | |
| int | ierr |
| Error status. | |
| int | nit |
| Number of iterations. | |
| double | fitprob |
| fit probability | |
| double | chi2 |
| final chi2 | |
Protected Attributes inherited from BaseFitter | |
| FitObjectContainer | fitobjects |
| ConstraintContainer | constraints |
| SoftConstraintContainer | softconstraints |
| int | covDim |
| dimension of global covariance matrix | |
| double * | cov |
| global covariance matrix of last fit problem | |
| bool | covValid |
| Flag whether global covariance is valid. | |
| BaseTracer * | tracer |
Additional Inherited Members | |
Public Attributes inherited from BaseFitter | |
| std::map< std::string, double > | traceValues |
A kinematic fitter using the Newton-Raphson method to solve the equations.
1.8.6