#include <PConstraint.h>
Inheritance diagram for PConstraint:


Public Member Functions | |
| PConstraint (double pxfact_=1, double pyfact_=0, double pzfact_=0, double efact_=0, double value_=0) | |
| virtual | ~PConstraint () |
| 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, multiplied by lambda, 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 | |
| double | pxfact |
| double | pyfact |
| double | pzfact |
| double | efact |
| double | value |
| bool | cachevalid |
| int | nparams |
|
||||||||||||||||||||||||
|
Definition at line 22 of file PConstraint.C. |
|
|
Definition at line 33 of file PConstraint.C. |
|
||||||||||||
|
Adds first order derivatives to global covariance matrix M.
Reimplemented from ParticleConstraint. Definition at line 72 of file PConstraint.C. References ParticleConstraint::ConstFitObjectIterator, ParticleConstraint::fitobjects, ParticleFitObject::getDPx(), ParticleConstraint::getGlobalNum(), ParticleFitObject::getGlobalParNum(), ParticleFitObject::getNPar(), and ParticleFitObject::isParamFixed(). |
|
||||||||||||||||
|
Adds second order derivatives, multiplied by lambda, to global covariance matrix M.
Reimplemented from ParticleConstraint. Definition at line 95 of file PConstraint.C. |
|
||||||||||||||||
|
Definition at line 100 of file PConstraint.C. References cachevalid, nparams, and updateCache(). |
|
||||||||||||
|
Get first order derivatives. Call this with a predefined array "der" with the necessary number of entries! Implements ParticleConstraint. Definition at line 55 of file PConstraint.C. References efact, ParticleConstraint::fitobjects, pxfact, pyfact, and pzfact. |
|
|
Returns the value of the constraint.
Implements ParticleConstraint. Definition at line 36 of file PConstraint.C. References efact, ParticleConstraint::fitobjects, pxfact, pyfact, pzfact, and value. |
|
|
Invalidates any cached values for the next event.
Reimplemented from ParticleConstraint. Definition at line 145 of file PConstraint.C. References cachevalid. |
|
|
Definition at line 149 of file PConstraint.C. References cachevalid, ParticleConstraint::fitobjects, and nparams. Referenced by addToGlobalDerMatrix(). |
|
|
Definition at line 44 of file PConstraint.h. Referenced by addToGlobalDerMatrix(), invalidateCache(), and updateCache(). |
|
|
Definition at line 41 of file PConstraint.h. Referenced by getDerivatives(), and getValue(). |
|
|
Definition at line 45 of file PConstraint.h. Referenced by addToGlobalDerMatrix(), and updateCache(). |
|
|
Definition at line 38 of file PConstraint.h. Referenced by getDerivatives(), and getValue(). |
|
|
Definition at line 39 of file PConstraint.h. Referenced by getDerivatives(), and getValue(). |
|
|
Definition at line 40 of file PConstraint.h. Referenced by getDerivatives(), and getValue(). |
|
|
Definition at line 42 of file PConstraint.h. Referenced by getValue(). |
1.3.2