Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

VertexConstraint Class Reference

Constrains a TrackFitObject to a VertexFitObject. More...

#include <VertexConstraint.h>

Inheritance diagram for VertexConstraint:

Inheritance graph
[legend]
Collaboration diagram for VertexConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VertexConstraint (const VertexFitObject &vertex_, const TrackFitObject &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
virtual void add1stDerivativesToMatrix (int idim, double *M) const
 Adds first order derivatives to global covariance matrix M.

virtual void add2ndDerivativesToMatrix (int idim, double *M, double lambda) const
 Adds second order derivatives to global covariance matrix M.

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.


Protected Attributes

int globalNum
 Position of constraint in global constraint list.

const VertexFitObjectvertex
const TrackFitObjecttrack
int ivertex
ThreeVector factor

Detailed Description

Constrains a TrackFitObject to a VertexFitObject.

Author: Benno List, Jenny List

Date
2005/01/12 10:11:46
Author
blist

Definition at line 33 of file VertexConstraint.h.


Constructor & Destructor Documentation

VertexConstraint::VertexConstraint const VertexFitObject vertex_,
const TrackFitObject track_,
int  ivertex_,
int  axis
 

Constructor.

Definition at line 11 of file VertexConstraint.C.

References factor, ThreeVector::setValues(), track, and vertex.

VertexConstraint::~VertexConstraint  )  [virtual]
 

Virtual destructor.

Definition at line 33 of file VertexConstraint.C.


Member Function Documentation

void VertexConstraint::add1stDerivativesToMatrix int  idim,
double *  M
const [virtual]
 

Adds first order derivatives to global covariance matrix M.

Implements BaseConstraint.

Definition at line 69 of file VertexConstraint.C.

void VertexConstraint::add2ndDerivativesToMatrix int  idim,
double *  M,
double  lambda
const [virtual]
 

Adds second order derivatives to global covariance matrix M.

Implements BaseConstraint.

Definition at line 74 of file VertexConstraint.C.

void VertexConstraint::getDerivatives int  idim,
double  der[]
const [virtual]
 

Get first order derivatives. Call this with a predefined array "der" with the necessary number of entries!

Implements BaseConstraint.

Definition at line 51 of file VertexConstraint.C.

References factor, TrackFitObject::getGlobalParNum(), VertexFitObject::getGlobalParNum(), TrackFitObject::getNPar(), VertexFitObject::getNPar(), TrackFitObject::getVertexDerivative(), VertexFitObject::getVertexDerivative(), TrackFitObject::isParamFixed(), VertexFitObject::isParamFixed(), ivertex, track, and vertex.

virtual int VertexConstraint::getGlobalNum  )  const [inline, virtual]
 

Accesses position of constraint in global constraint list.

Implements BaseConstraint.

Definition at line 56 of file VertexConstraint.h.

References globalNum.

double VertexConstraint::getValue  )  const [virtual]
 

Returns the value of the constraint.

Implements BaseConstraint.

Definition at line 36 of file VertexConstraint.C.

References factor, TrackFitObject::getVertex(), VertexFitObject::getVertex(), ivertex, track, and vertex.

virtual void VertexConstraint::setGlobalNum int  iglobal  )  [inline, virtual]
 

Sets position of constraint in global constraint list.

Implements BaseConstraint.

Definition at line 58 of file VertexConstraint.h.

References globalNum.


Member Data Documentation

ThreeVector VertexConstraint::factor [protected]
 

Definition at line 68 of file VertexConstraint.h.

Referenced by getDerivatives(), getValue(), and VertexConstraint().

int VertexConstraint::globalNum [protected]
 

Position of constraint in global constraint list.

Definition at line 63 of file VertexConstraint.h.

Referenced by getGlobalNum(), and setGlobalNum().

int VertexConstraint::ivertex [protected]
 

Definition at line 67 of file VertexConstraint.h.

Referenced by getDerivatives(), and getValue().

const TrackFitObject* VertexConstraint::track [protected]
 

Definition at line 66 of file VertexConstraint.h.

Referenced by getDerivatives(), getValue(), and VertexConstraint().

const VertexFitObject* VertexConstraint::vertex [protected]
 

Definition at line 65 of file VertexConstraint.h.

Referenced by getDerivatives(), getValue(), and VertexConstraint().


The documentation for this class was generated from the following files:
Generated on Fri Sep 14 17:38:39 2007 for Kinfit by doxygen 1.3.2