test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrimmedVertexFinder.h
Go to the documentation of this file.
1 #ifndef _RecoVertex_TrimmedVertexFinder_H_
2 #define _RecoVertex_TrimmedVertexFinder_H_
3 
10 #include <vector>
11 
29 
30 public:
31 
34 
36  const VertexUpdator<5> * vu,
38 
43 
47  std::vector<TransientVertex>
48  vertices(std::vector<reco::TransientTrack> & remain) const;
49 
54  std::vector<TransientVertex>
55  vertices(std::vector<reco::TransientTrack> & remain,
56  const reco::BeamSpot & s, bool use_beamspot=true ) const;
57 
60  float trackCompatibilityCut() const { return theMinProb; }
61 
65 
69  return new TrimmedVertexFinder(*this);
70  }
71 
72 
73 private:
74 
75  // finds least compatible track
76  // returns vtxTracks.end() if all tracks are compatible
77  //
78  std::vector<RefCountedVertexTrack>::iterator theWorst(
79  const CachingVertex<5> & vtx,
80  std::vector<RefCountedVertexTrack> & vtxTracks,
81  float cut) const;
82 
86  float theMinProb;
87 
88 };
89 
90 #endif
TrimmedVertexFinder * clone() const
ReferenceCountingPointer< LinearizedTrackState< 5 > > RefCountedLinearizedTrackState
VertexUpdator< 5 > * theUpdator
VertexTrackCompatibilityEstimator< 5 > * theEstimator
void setTrackCompatibilityCut(float cut)
float trackCompatibilityCut() const
ReferenceCountingPointer< VertexTrack< 5 > > RefCountedVertexTrack
std::vector< RefCountedVertexTrack >::iterator theWorst(const CachingVertex< 5 > &vtx, std::vector< RefCountedVertexTrack > &vtxTracks, float cut) const
std::vector< TransientVertex > vertices(std::vector< reco::TransientTrack > &remain) const
VertexFitter< 5 > * theFitter
TrimmedVertexFinder(const VertexFitter< 5 > *vf, const VertexUpdator< 5 > *vu, const VertexTrackCompatibilityEstimator< 5 > *ve)