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

PyConstraint Class Reference

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

#include <PyConstraint.h>

Inheritance diagram for PyConstraint:

Inheritance graph
[legend]
Collaboration diagram for PyConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PyConstraint ()
virtual ~PyConstraint ()
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 (py) = 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 PyConstraint.h.


Constructor & Destructor Documentation

PyConstraint::PyConstraint  ) 
 

Definition at line 30 of file PyConstraint.C.

PyConstraint::~PyConstraint  )  [virtual]
 

Definition at line 33 of file PyConstraint.C.


Member Function Documentation

void PyConstraint::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 63 of file PyConstraint.C.

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

void PyConstraint::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 83 of file PyConstraint.C.

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

void PyConstraint::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 49 of file PyConstraint.C.

References ParticleConstraint::fitobjects.

double PyConstraint::getValue  )  const [pure virtual]
 

Returns the value of the constraint.

Implements ParticleConstraint.

Definition at line 36 of file PyConstraint.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