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

PxConstraint Class Reference

Sum (px) = 0 constraint. More...

#include <PxConstraint.h>

Inheritance diagram for PxConstraint:

Inheritance graph
[legend]
Collaboration diagram for PxConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PxConstraint ()
virtual ~PxConstraint ()
virtual double getValue () const=0
 Returns the value of the constraint.

virtual void getDerivatives (int idim, double der[]) const=0
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.


Detailed Description

Sum (px) = 0 constraint.

Author: Jenny List, Benno List Last update:

Date
2007/09/14 10:58:42
by:
Author
blist

Definition at line 35 of file PxConstraint.h.


Constructor & Destructor Documentation

PxConstraint::PxConstraint  ) 
 

Definition at line 24 of file PxConstraint.C.

PxConstraint::~PxConstraint  )  [virtual]
 

Definition at line 27 of file PxConstraint.C.


Member Function Documentation

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

Adds first order derivatives to global covariance matrix M.

Parameters:
idim  First dimension of array der
M  Global covariance matrix, dimension at least idim x idim

Reimplemented from ParticleConstraint.

Definition at line 57 of file PxConstraint.C.

References ParticleConstraint::ConstFitObjectIterator, ParticleConstraint::fitobjects, ParticleFitObject::getDPx(), ParticleConstraint::getGlobalNum(), ParticleFitObject::getGlobalParNum(), ParticleFitObject::getNPar(), and ParticleFitObject::isParamFixed().

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

Adds second order derivatives to global covariance matrix M.

Parameters:
idim  First dimension of array der
M  Global covariance matrix, dimension at least idim x idim
lambda  Lagrange multiplier for this constraint

Reimplemented from ParticleConstraint.

Definition at line 77 of file PxConstraint.C.

References ParticleFitObject::addTo2ndDerivatives(), ParticleConstraint::ConstFitObjectIterator, and ParticleConstraint::fitobjects.

void PxConstraint::getDerivatives int  idim,
double  der[]
const [pure virtual]
 

Get first order derivatives. Call this with a predefined array "der" with the necessary number of entries!

Parameters:
idim  First dimension of array der
der  Array of derivatives, dimension at least idim x idim

Implements ParticleConstraint.

Definition at line 43 of file PxConstraint.C.

References ParticleConstraint::fitobjects.

double PxConstraint::getValue  )  const [pure virtual]
 

Returns the value of the constraint.

Implements ParticleConstraint.

Definition at line 30 of file PxConstraint.C.

References ParticleConstraint::fitobjects.

Referenced by main().


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