CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 public:
32 
34  const VertexUpdator<5>* vu,
36 
41 
45  std::vector<TransientVertex> vertices(std::vector<reco::TransientTrack>& remain) const;
46 
51  std::vector<TransientVertex> vertices(std::vector<reco::TransientTrack>& remain,
52  const reco::BeamSpot& s,
53  bool use_beamspot = true) const;
54 
57  float trackCompatibilityCut() const { return theMinProb; }
58 
62 
65  TrimmedVertexFinder* clone() const { return new TrimmedVertexFinder(*this); }
66 
67 private:
68  // finds least compatible track
69  // returns vtxTracks.end() if all tracks are compatible
70  //
71  std::vector<RefCountedVertexTrack>::iterator theWorst(const CachingVertex<5>& vtx,
72  std::vector<RefCountedVertexTrack>& vtxTracks,
73  float cut) const;
74 
78  float theMinProb;
79 };
80 
81 #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)