MarlinKinfit
0.4.0
|
Constrains a TrackParticleFitObject to a VertexFitObject. More...
#include <VertexConstraint.h>
Public Member Functions | |
VertexConstraint (const VertexFitObject &vertex_, const TrackParticleFitObject &track_, int ivertex_, int axis) | |
Constructor. | |
virtual | ~VertexConstraint () |
Virtual destructor. | |
virtual double | getValue () const |
Returns the value of the constraint. | |
virtual void | getDerivatives (int idim, double der[]) const |
Get first order derivatives. More... | |
virtual bool | secondDerivatives (int, int, double *) const |
Second derivatives with respect to the meta-variables of Fit objects i and j; result false if all derivatives are zero. | |
virtual bool | firstDerivatives (int, double *) const |
First derivatives with respect to the meta-variables of Fit objects i; result false if all derivatives are zero. | |
virtual int | getVarBasis () const |
![]() | |
virtual | ~BaseHardConstraint () |
Virtual destructor. | |
virtual void | add1stDerivativesToMatrix (double *M, int idim) const |
Adds first order derivatives to global covariance matrix M. More... | |
virtual void | add2ndDerivativesToMatrix (double *M, int idim, double lambda) const |
Adds second order derivatives to global covariance matrix M. More... | |
virtual void | addToGlobalChi2DerVector (double *y, int idim, double lambda) const |
Add lambda times derivatives of chi squared to global derivative vector. More... | |
virtual double | dirDer (double *p, double *w, int idim, double mu=1) |
Calculate directional derivative. More... | |
virtual double | dirDerAbs (double *p, double *w, int idim, double mu=1) |
Calculate directional derivative for abs(c) More... | |
virtual double | getError () const |
Returns the error on the value of the constraint. | |
virtual int | getGlobalNum () const |
Accesses position of constraint in global constraint list. | |
virtual void | setGlobalNum (int iglobal) |
Sets position of constraint in global constraint list. More... | |
virtual void | printFirstDerivatives () const |
virtual void | printSecondDerivatives () const |
virtual void | test1stDerivatives () |
virtual void | test2ndDerivatives () |
virtual double | num1stDerivative (int ifo, int ilocal, double eps) |
Evaluates numerically the 1st derivative w.r.t. a parameter. More... | |
virtual double | num2ndDerivative (int ifo1, int ilocal1, double eps1, int ifo2, int ilocal2, double eps2) |
Evaluates numerically the 2nd derivative w.r.t. 2 parameters. More... | |
![]() | |
BaseConstraint () | |
Creates an empty BaseConstraint object. | |
BaseConstraint (const BaseConstraint &rhs) | |
Copy constructor. More... | |
BaseConstraint & | operator= (const BaseConstraint &rhs) |
Assignment. More... | |
virtual | ~BaseConstraint () |
Virtual destructor. | |
virtual const char * | getName () const |
Returns the name of the constraint. | |
virtual void | setName (const char *name_) |
Set object's name. | |
virtual std::ostream & | print (std::ostream &os) const |
print object to ostream More... | |
Protected Attributes | |
const VertexFitObject * | vertex |
const TrackParticleFitObject * | track |
int | ivertex |
ThreeVector | factor |
![]() | |
FitObjectContainer | fitobjects |
The FitObjectContainer. | |
std::vector< double > | derivatives |
The derivatives. | |
std::vector< int > | flags |
The flags can be used to divide the FitObjectContainer into several subsets used for example to implement an equal mass constraint (see MassConstraint). More... | |
int | globalNum |
Position of constraint in global constraint list. | |
![]() | |
char * | name |
Additional Inherited Members | |
![]() | |
typedef std::vector < BaseFitObject * > | FitObjectContainer |
Vector of pointers to ParticleFitObjects. | |
typedef FitObjectContainer::iterator | FitObjectIterator |
Iterator through vector of pointers to ParticleFitObjects. | |
typedef FitObjectContainer::const_iterator | ConstFitObjectIterator |
Constant iterator through vector of pointers to ParticleFitObjects. | |
![]() | |
std::ostream & | operator<< (std::ostream &os, const BaseConstraint &bc) |
Prints out a BaseConstraint, using its print method. More... | |
Constrains a TrackParticleFitObject to a VertexFitObject.
|
virtual |
Get first order derivatives.
Call this with a predefined array "der" with the necessary number of entries!
Implements BaseHardConstraint.
References BaseFitObject::getGlobalParNum(), TrackParticleFitObject::getNPar(), VertexFitObject::getNPar(), TrackParticleFitObject::getVertexDerivative(), VertexFitObject::getVertexDerivative(), and BaseFitObject::isParamFixed().