CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
KinematicConstraint Class Referenceabstract

#include <KinematicConstraint.h>

Inheritance diagram for KinematicConstraint:
BackToBackKinematicConstraint FourMomentumKinematicConstraint MassKinematicConstraint MomentumKinematicConstraint MultipleKinematicConstraint PointingKinematicConstraint SimplePointingConstraint SmartPointingConstraint

Public Member Functions

virtual KinematicConstraintclone () const =0
 
virtual std::pair
< AlgebraicMatrix,
AlgebraicVector
derivative (const AlgebraicVector &exPoint) const =0
 
virtual std::pair
< AlgebraicMatrix,
AlgebraicVector
derivative (const std::vector< RefCountedKinematicParticle > &par) const =0
 
virtual AlgebraicVector deviations (int nStates) const =0
 
 KinematicConstraint ()
 
virtual int numberOfEquations () const =0
 
virtual std::pair
< AlgebraicVector,
AlgebraicVector
value (const AlgebraicVector &exPoint) const =0
 
virtual std::pair
< AlgebraicVector,
AlgebraicVector
value (const std::vector< RefCountedKinematicParticle > &par) const =0
 
virtual ~KinematicConstraint ()
 

Detailed Description

Pure abstract base class to implement different types of constraints for single tracks. Class caches the information about calculation of of constraint equation derivatives and values at given linearization 7-point (x,y,z,p_x,p_y,p_z,m)_0. Fitter usually takes current parameters as the first step point and the change it to the result of the first iteration.

Kirill Prokofiev, December 2002 Change for multistate refit: July 2004

Definition at line 21 of file KinematicConstraint.h.

Constructor & Destructor Documentation

KinematicConstraint::KinematicConstraint ( )
inline

Default constructor and destructor

Definition at line 27 of file KinematicConstraint.h.

27 {}
virtual KinematicConstraint::~KinematicConstraint ( )
inlinevirtual

Definition at line 29 of file KinematicConstraint.h.

29 {}

Member Function Documentation

virtual KinematicConstraint* KinematicConstraint::clone ( ) const
pure virtual
virtual std::pair<AlgebraicMatrix, AlgebraicVector> KinematicConstraint::derivative ( const AlgebraicVector exPoint) const
pure virtual
virtual std::pair<AlgebraicMatrix, AlgebraicVector> KinematicConstraint::derivative ( const std::vector< RefCountedKinematicParticle > &  par) const
pure virtual
virtual AlgebraicVector KinematicConstraint::deviations ( int  nStates) const
pure virtual

Returns vector of sigma squared associated to the KinematicParameters of refitted particles Initial deviations are given by user for the constraining parameters (mass, momentum components etc). In case of multiple states exactly the same values are added to every particle parameters

Implemented in FourMomentumKinematicConstraint, MassKinematicConstraint, BackToBackKinematicConstraint, MultipleKinematicConstraint, MomentumKinematicConstraint, PointingKinematicConstraint, SimplePointingConstraint, and SmartPointingConstraint.

Referenced by LagrangeParentParticleFitter::fit().

virtual int KinematicConstraint::numberOfEquations ( ) const
pure virtual

Returns an actual number of equations in particular constraint (corresponds to the number of strings in constraint derivative matrix, for example)

Implemented in BackToBackKinematicConstraint, FourMomentumKinematicConstraint, PointingKinematicConstraint, SimplePointingConstraint, SmartPointingConstraint, MassKinematicConstraint, MomentumKinematicConstraint, and MultipleKinematicConstraint.

Referenced by LagrangeParentParticleFitter::fit().

virtual std::pair<AlgebraicVector, AlgebraicVector> KinematicConstraint::value ( const AlgebraicVector exPoint) const
pure virtual
virtual std::pair<AlgebraicVector, AlgebraicVector> KinematicConstraint::value ( const std::vector< RefCountedKinematicParticle > &  par) const
pure virtual