00001 #ifndef KVFHelper_H 00002 #define KVFHelper_H 00003 00004 #include "RecoVertex/VertexPrimitives/interface/CachingVertex.h" 00005 00010 template <unsigned int N> 00011 class KVFHelper { 00012 00013 public: 00014 00015 typedef typename CachingVertex<N>::RefCountedVertexTrack RefCountedVertexTrack; 00016 typedef typename VertexTrack<N>::RefCountedLinearizedTrackState RefCountedLinearizedTrackState; 00017 typedef typename VertexTrack<N>::RefCountedRefittedTrackState RefCountedRefittedTrackState; 00018 typedef typename std::pair <bool, double> BDpair; 00019 00020 00030 double vertexChi2(const VertexState & vertexA, 00031 const VertexState & VertexB) const; 00032 00033 double vertexChi2(const CachingVertex<N> & vertexA, 00034 const CachingVertex<N> & vertexB) const; 00035 00042 BDpair trackParameterChi2(const RefCountedLinearizedTrackState linTrack, 00043 const RefCountedRefittedTrackState refittedTrackState) const; 00044 00050 BDpair trackParameterChi2(const RefCountedVertexTrack track) const; 00051 00052 }; 00053 00054 #endif