Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:19

0001 #ifndef VertexSmoothedChiSquaredEstimator_H
0002 #define VertexSmoothedChiSquaredEstimator_H
0003 
0004 #include "RecoVertex/VertexPrimitives/interface/CachingVertex.h"
0005 
0006 /** \class VertexSmoothedChiSquaredEstimator
0007  *  Pure abstract base class for algorithms computing 
0008  *  a better estimation of vertex chi-squared after vertex fitting. 
0009  *  For the KalmanVertexFit both fitted and smoothed vertices are 
0010  *  needed, hence the 2 vertices passed as argument in the method... 
0011  */
0012 
0013 template <unsigned int N>
0014 class VertexSmoothedChiSquaredEstimator {
0015 public:
0016   typedef typename CachingVertex<N>::RefCountedVertexTrack RefCountedVertexTrack;
0017   typedef typename std::pair<bool, double> BDpair;
0018 
0019   VertexSmoothedChiSquaredEstimator() {}
0020   virtual ~VertexSmoothedChiSquaredEstimator() {}
0021 
0022   virtual BDpair estimate(const CachingVertex<N> &) const = 0;
0023 
0024   virtual VertexSmoothedChiSquaredEstimator<N> *clone() const = 0;
0025 };
0026 
0027 #endif