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

TrackMomentumConstraint Class Reference

#include <TrackMomentumConstraint.h>

Inheritance diagram for TrackMomentumConstraint:

Inheritance graph
[legend]
Collaboration diagram for TrackMomentumConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TrackMomentumConstraint (double pxfact_, double pyfact_, double pzfact_, double efact_=0, double value_=0)
 TrackMomentumConstraint (int axis, double value_=0)
virtual ~TrackMomentumConstraint ()
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 void addToGlobalDerMatrix (double lambda, int idim, double *M) const
virtual void invalidateCache () const
 Invalidates any cached values for the next event.


Protected Member Functions

void updateCache () const

Protected Attributes

FourVector factor
double value
bool cachevalid
int nparams

Constructor & Destructor Documentation

TrackMomentumConstraint::TrackMomentumConstraint double  pxfact_,
double  pyfact_,
double  pzfact_,
double  efact_ = 0,
double  value_ = 0
 

Definition at line 18 of file TrackMomentumConstraint.C.

TrackMomentumConstraint::TrackMomentumConstraint int  axis,
double  value_ = 0
 

Definition at line 25 of file TrackMomentumConstraint.C.

References factor, and FourVector::setValues().

TrackMomentumConstraint::~TrackMomentumConstraint  )  [virtual]
 

Definition at line 42 of file TrackMomentumConstraint.C.


Member Function Documentation

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

Adds first order derivatives to global covariance matrix M.

Reimplemented from TrackConstraint.

Definition at line 76 of file TrackMomentumConstraint.C.

References TrackConstraint::ConstFitObjectIterator, TrackConstraint::fitobjects, TrackConstraint::getGlobalNum(), TrackFitObject::getGlobalParNum(), TrackFitObject::getNPar(), and TrackFitObject::isParamFixed().

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

Adds second order derivatives to global covariance matrix M.

Reimplemented from TrackConstraint.

Definition at line 100 of file TrackMomentumConstraint.C.

void TrackMomentumConstraint::addToGlobalDerMatrix double  lambda,
int  idim,
double *  M
const [virtual]
 

Definition at line 105 of file TrackMomentumConstraint.C.

References cachevalid, nparams, and updateCache().

void TrackMomentumConstraint::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 TrackConstraint.

Definition at line 63 of file TrackMomentumConstraint.C.

References factor, TrackConstraint::fitobjects, TrackConstraint::flags, and TrackConstraint::sign.

double TrackMomentumConstraint::getValue  )  const [virtual]
 

Returns the value of the constraint.

Implements TrackConstraint.

Definition at line 45 of file TrackMomentumConstraint.C.

References factor, TrackConstraint::fitobjects, TrackConstraint::flags, TrackConstraint::sign, and value.

void TrackMomentumConstraint::invalidateCache  )  const [virtual]
 

Invalidates any cached values for the next event.

Reimplemented from TrackConstraint.

Definition at line 150 of file TrackMomentumConstraint.C.

References cachevalid.

void TrackMomentumConstraint::updateCache  )  const [protected]
 

Definition at line 154 of file TrackMomentumConstraint.C.

References cachevalid, TrackConstraint::fitobjects, and nparams.

Referenced by addToGlobalDerMatrix().


Member Data Documentation

bool TrackMomentumConstraint::cachevalid [mutable, protected]
 

Definition at line 44 of file TrackMomentumConstraint.h.

Referenced by addToGlobalDerMatrix(), invalidateCache(), and updateCache().

FourVector TrackMomentumConstraint::factor [protected]
 

Definition at line 41 of file TrackMomentumConstraint.h.

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

int TrackMomentumConstraint::nparams [mutable, protected]
 

Definition at line 45 of file TrackMomentumConstraint.h.

Referenced by addToGlobalDerMatrix(), and updateCache().

double TrackMomentumConstraint::value [protected]
 

Definition at line 42 of file TrackMomentumConstraint.h.

Referenced by getValue().


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