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

PConstraint Class Reference

#include <PConstraint.h>

Inheritance diagram for PConstraint:

Inheritance graph
[legend]
Collaboration diagram for PConstraint:

Collaboration graph
[legend]
List of all members.

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

Constructor & Destructor Documentation

PConstraint::PConstraint double  pxfact_ = 1,
double  pyfact_ = 0,
double  pzfact_ = 0,
double  efact_ = 0,
double  value_ = 0
 

Definition at line 22 of file PConstraint.C.

PConstraint::~PConstraint  )  [virtual]
 

Definition at line 33 of file PConstraint.C.


Member Function Documentation

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

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().

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

Adds second order derivatives, multiplied by lambda, to global covariance matrix M.

Reimplemented from ParticleConstraint.

Definition at line 95 of file PConstraint.C.

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

Definition at line 100 of file PConstraint.C.

References cachevalid, nparams, and updateCache().

void PConstraint::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 ParticleConstraint.

Definition at line 55 of file PConstraint.C.

References efact, ParticleConstraint::fitobjects, pxfact, pyfact, and pzfact.

double PConstraint::getValue  )  const [virtual]
 

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.

void PConstraint::invalidateCache  )  const [virtual]
 

Invalidates any cached values for the next event.

Reimplemented from ParticleConstraint.

Definition at line 145 of file PConstraint.C.

References cachevalid.

void PConstraint::updateCache  )  const [protected]
 

Definition at line 149 of file PConstraint.C.

References cachevalid, ParticleConstraint::fitobjects, and nparams.

Referenced by addToGlobalDerMatrix().


Member Data Documentation

bool PConstraint::cachevalid [mutable, protected]
 

Definition at line 44 of file PConstraint.h.

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

double PConstraint::efact [protected]
 

Definition at line 41 of file PConstraint.h.

Referenced by getDerivatives(), and getValue().

int PConstraint::nparams [mutable, protected]
 

Definition at line 45 of file PConstraint.h.

Referenced by addToGlobalDerMatrix(), and updateCache().

double PConstraint::pxfact [protected]
 

Definition at line 38 of file PConstraint.h.

Referenced by getDerivatives(), and getValue().

double PConstraint::pyfact [protected]
 

Definition at line 39 of file PConstraint.h.

Referenced by getDerivatives(), and getValue().

double PConstraint::pzfact [protected]
 

Definition at line 40 of file PConstraint.h.

Referenced by getDerivatives(), and getValue().

double PConstraint::value [protected]
 

Definition at line 42 of file PConstraint.h.

Referenced by getValue().


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