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

TTVertexConstraint Class Reference

#include <TTVertexConstraint.h>

Inheritance diagram for TTVertexConstraint:

Inheritance graph
[legend]
Collaboration diagram for TTVertexConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TTVertexConstraint (const TrackFitObject &t0, int i0, const TrackFitObject &t1, int i1, int axis)
 Constructor.

virtual ~TTVertexConstraint ()
 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 Member Functions

virtual void invalidateCache () const
 Invalidates any cached values for the next event.

virtual void updateCache () const
 Update the cached values.


Protected Attributes

int globalNum
 Position of constraint in global constraint list.

const TrackFitObjecttracks [2]
int vnumber [2]
ThreeVector factor
double sign [2]
bool cachevalid

Constructor & Destructor Documentation

TTVertexConstraint::TTVertexConstraint const TrackFitObject t0,
int  i0,
const TrackFitObject t1,
int  i1,
int  axis
 

Constructor.

Definition at line 10 of file TTVertexConstraint.C.

References factor, ThreeVector::setValues(), sign, tracks, and vnumber.

TTVertexConstraint::~TTVertexConstraint  )  [virtual]
 

Virtual destructor.

Definition at line 37 of file TTVertexConstraint.C.


Member Function Documentation

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

Adds first order derivatives to global covariance matrix M.

Implements BaseConstraint.

Definition at line 59 of file TTVertexConstraint.C.

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

Adds second order derivatives to global covariance matrix M.

Implements BaseConstraint.

Definition at line 81 of file TTVertexConstraint.C.

void TTVertexConstraint::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 47 of file TTVertexConstraint.C.

References factor, TrackFitObject::getNPar(), sign, tracks, and vnumber.

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

Accesses position of constraint in global constraint list.

Implements BaseConstraint.

Definition at line 55 of file TTVertexConstraint.h.

References globalNum.

double TTVertexConstraint::getValue  )  const [virtual]
 

Returns the value of the constraint.

Implements BaseConstraint.

Definition at line 40 of file TTVertexConstraint.C.

References factor, TrackFitObject::getVertex(), sign, tracks, and vnumber.

void TTVertexConstraint::invalidateCache  )  const [protected, virtual]
 

Invalidates any cached values for the next event.

Definition at line 131 of file TTVertexConstraint.C.

References cachevalid.

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

Sets position of constraint in global constraint list.

Implements BaseConstraint.

Definition at line 57 of file TTVertexConstraint.h.

References globalNum.

void TTVertexConstraint::updateCache  )  const [protected, virtual]
 

Update the cached values.

Definition at line 135 of file TTVertexConstraint.C.

References cachevalid.


Member Data Documentation

bool TTVertexConstraint::cachevalid [mutable, protected]
 

Definition at line 74 of file TTVertexConstraint.h.

Referenced by invalidateCache(), and updateCache().

ThreeVector TTVertexConstraint::factor [protected]
 

Definition at line 71 of file TTVertexConstraint.h.

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

int TTVertexConstraint::globalNum [protected]
 

Position of constraint in global constraint list.

Definition at line 67 of file TTVertexConstraint.h.

Referenced by getGlobalNum(), and setGlobalNum().

double TTVertexConstraint::sign[2] [protected]
 

Definition at line 72 of file TTVertexConstraint.h.

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

const TrackFitObject* TTVertexConstraint::tracks[2] [protected]
 

Definition at line 69 of file TTVertexConstraint.h.

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

int TTVertexConstraint::vnumber[2] [protected]
 

Definition at line 70 of file TTVertexConstraint.h.

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


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