CMS 3D CMS Logo

TrimmedVertexFitter.cc
Go to the documentation of this file.
5 
8  setPtCut(0.);
9 }
10 
13  setPtCut(pSet.getParameter<double>("minPt"));
14  setTrackCompatibilityCut(pSet.getParameter<double>("trackCompatibilityCut"));
15  setVertexFitProbabilityCut(pSet.getParameter<double>("vtxFitProbCut"));
16 }
17 
18 CachingVertex<5> TrimmedVertexFitter::vertex(const std::vector<reco::TransientTrack>& tracks) const {
19  std::vector<TransientVertex> vtces = theRector.vertices(tracks);
20  if (!vtces.empty()) {
21  const TransientVertex& rv = *(vtces.begin());
25  std::vector<RefCountedVertexTrack> vtrks;
26  std::vector<reco::TransientTrack> mytrks = rv.originalTracks();
27  for (std::vector<reco::TransientTrack>::const_iterator rt = mytrks.begin(); rt != mytrks.end(); ++rt) {
29 
30  RefCountedVertexTrack vtrk = vfac.vertexTrack(lstate, state, 1.0);
31  vtrks.push_back(vtrk);
32  };
33  return CachingVertex<5>(rv.position(), rv.positionError(), vtrks, rv.totalChiSquared());
34  };
35  return CachingVertex<5>();
36 }
37 
38 CachingVertex<5> TrimmedVertexFitter::vertex(const std::vector<RefCountedVertexTrack>& tracks) const {
39  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
40  throw VertexException("not implemented");
41 }
42 
43 CachingVertex<5> TrimmedVertexFitter::vertex(const std::vector<RefCountedVertexTrack>& tracks,
44  const reco::BeamSpot& spot) const {
45  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
46  throw VertexException("not implemented");
47 }
48 
49 CachingVertex<5> TrimmedVertexFitter::vertex(const std::vector<reco::TransientTrack>& tracks,
50  const GlobalPoint& linPoint) const {
51  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
52  throw VertexException("not implemented");
53 }
54 
55 CachingVertex<5> TrimmedVertexFitter::vertex(const std::vector<reco::TransientTrack>& tracks,
56  const GlobalPoint& priorPos,
57  const GlobalError& priorError) const {
58  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
59  throw VertexException("not implemented");
60 }
61 
62 CachingVertex<5> TrimmedVertexFitter::vertex(const std::vector<RefCountedVertexTrack>& tracks,
63  const GlobalPoint& priorPos,
64  const GlobalError& priorError) const {
65  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
66  throw VertexException("not implemented");
67 }
68 
69 CachingVertex<5> TrimmedVertexFitter::vertex(const std::vector<reco::TransientTrack>& tracks,
70  const reco::BeamSpot& beamSpot) const {
71  std::cout << "[TrimmedVertexFitter] method not implemented" << std::endl;
72  throw VertexException("not implemented");
73 }
74 
76 
78  ptcut = cut;
80 }
81 
83 
RefCountedLinearizedTrackState linearizedTrackState(const GlobalPoint &linP, const reco::TransientTrack &track) const override
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
float totalChiSquared() const
GlobalPoint position() const
KalmanTrimmedVertexFinder theRector
GlobalError positionError() const
Common base class.
RefCountedVertexTrack vertexTrack(const RefCountedLinearizedTrackState lt, const VertexState vs, float weight=1.0) const
TrimmedVertexFitter * clone() const override
std::vector< reco::TransientTrack > const & originalTracks() const
CachingVertex< 5 >::RefCountedVertexTrack RefCountedVertexTrack
auto const & tracks
cannot be loose
void setTrackCompatibilityCut(float cut)
std::vector< TransientVertex > vertices(const std::vector< reco::TransientTrack > &tracks) const override
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &tracks) const override
void setVertexFitProbabilityCut(float cut)
void setPtCut(float cut)