#include <TrackMomentumConstraint.h>
Inheritance diagram for TrackMomentumConstraint:
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 |
|
Definition at line 18 of file TrackMomentumConstraint.C. |
|
Definition at line 25 of file TrackMomentumConstraint.C. References factor, and FourVector::setValues(). |
|
Definition at line 42 of file TrackMomentumConstraint.C. |
|
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(). |
|
Adds second order derivatives to global covariance matrix M.
Reimplemented from TrackConstraint. Definition at line 100 of file TrackMomentumConstraint.C. |
|
Definition at line 105 of file TrackMomentumConstraint.C. References cachevalid, nparams, and updateCache(). |
|
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. |
|
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. |
|
Invalidates any cached values for the next event.
Reimplemented from TrackConstraint. Definition at line 150 of file TrackMomentumConstraint.C. References cachevalid. |
|
Definition at line 154 of file TrackMomentumConstraint.C. References cachevalid, TrackConstraint::fitobjects, and nparams. Referenced by addToGlobalDerMatrix(). |
|
Definition at line 44 of file TrackMomentumConstraint.h. Referenced by addToGlobalDerMatrix(), invalidateCache(), and updateCache(). |
|
Definition at line 41 of file TrackMomentumConstraint.h. Referenced by getDerivatives(), getValue(), and TrackMomentumConstraint(). |
|
Definition at line 45 of file TrackMomentumConstraint.h. Referenced by addToGlobalDerMatrix(), and updateCache(). |
|
Definition at line 42 of file TrackMomentumConstraint.h. Referenced by getValue(). |