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

EConstraint Class Reference

Sum (E) = ECM constraint. More...

#include <EConstraint.h>

Inheritance diagram for EConstraint:

Inheritance graph
[legend]
Collaboration diagram for EConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EConstraint (double ecm_)
 Constructor.

virtual ~EConstraint ()
 Virtual destructor.

virtual double getValue () const=0
 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.

double getEcm () const
 Accessor for the center of mass energy.


Protected Attributes

double ecm
 The center of mass energy.


Detailed Description

Sum (E) = ECM constraint.

Author: Jenny List Last update:

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

Definition at line 35 of file EConstraint.h.


Constructor & Destructor Documentation

EConstraint::EConstraint double  ecm_  ) 
 

Constructor.

Parameters:
ecm_  The center of mass energy

Definition at line 25 of file EConstraint.C.

EConstraint::~EConstraint  )  [virtual]
 

Virtual destructor.

Definition at line 28 of file EConstraint.C.


Member Function Documentation

void EConstraint::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 58 of file EConstraint.C.

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

void EConstraint::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 78 of file EConstraint.C.

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

void EConstraint::getDerivatives int  idim,
double  der[]
const [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 44 of file EConstraint.C.

References ParticleConstraint::fitobjects.

double EConstraint::getEcm  )  const [inline]
 

Accessor for the center of mass energy.

Definition at line 63 of file EConstraint.h.

References ecm.

Referenced by getValue().

double EConstraint::getValue  )  const [pure virtual]
 

Returns the value of the constraint.

Implements ParticleConstraint.

Definition at line 31 of file EConstraint.C.

References ParticleConstraint::fitobjects, and getEcm().


Member Data Documentation

double EConstraint::ecm [protected]
 

The center of mass energy.

Definition at line 67 of file EConstraint.h.

Referenced by getEcm().


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