CMS 3D CMS Logo

SimplePointingConstraint.h

Go to the documentation of this file.
00001 #ifndef SimplePointingConstraint_H
00002 #define SimplePointingConstraint_H
00003 
00004 #include "RecoVertex/KinematicFitPrimitives/interface/KinematicConstraint.h"
00005 
00006 
00021 class SimplePointingConstraint : public KinematicConstraint
00022 {
00023  public:
00024  
00025   SimplePointingConstraint(const GlobalPoint& ref):refPoint(ref)
00026   {}
00027 
00032  virtual pair<AlgebraicVector, AlgebraicVector> value(const AlgebraicVector& exPoint) const;
00033 
00034  virtual pair<AlgebraicMatrix, AlgebraicVector> derivative(const AlgebraicVector& exPoint) const;
00035 
00040  virtual pair<AlgebraicMatrix, AlgebraicVector> derivative(const vector<RefCountedKinematicParticle> par) const;
00041 
00042  virtual pair<AlgebraicVector, AlgebraicVector> value(const vector<RefCountedKinematicParticle> par) const;
00043 
00044  virtual AlgebraicVector deviations(int nStates) const;
00045 
00051  virtual int numberOfEquations() const;
00052 
00053  virtual SimplePointingConstraint * clone() const
00054  {return new SimplePointingConstraint(*this);}
00055  
00056  private:
00057 
00058  pair<AlgebraicVector,AlgebraicVector> makeValue(const AlgebraicVector& exPoint)const ; 
00059  pair<AlgebraicMatrix, AlgebraicVector> makeDerivative(const AlgebraicVector& exPoint) const;
00060  
00061  GlobalPoint  refPoint;
00062 
00063 };
00064 
00065 #endif

Generated on Tue Jun 9 17:46:09 2009 for CMSSW by  doxygen 1.5.4