17 typedef reco::VertexCollection::const_iterator IV;
24 float w =
vtx.trackWeight(trackRef);
48 bool useTimeVtx = useTime && iv->tError() > 0.;
63 int vtxIdMinSignif = -1;
68 double dzsig =
dz /
track->dzError();
69 double dist = dzsig * dzsig;
71 bool useTimeVtx = useTime && iv->tError() > 0.;
72 if (useTime && !useTimeVtx) {
77 double dtsig =
dt / timeReso;
79 dist += dtsig * dtsig;
85 vtxIdMinSignif = iv -
vertices.begin();
90 const float add_cov = vtxIdMinSignif >= 0 ?
vertices[vtxIdMinSignif].covariance(2, 2) : 0.f;
91 const float dzE =
sqrt(
track->dzError() *
track->dzError() + add_cov);
92 if (vtxIdMinSignif >= 0 and
96 iVertex = vtxIdMinSignif;
130 if (distanceToJetAxis < minDistanceToJetAxis) {
131 minDistanceToJetAxis = distanceToJetAxis;
146 return std::pair<int, PrimaryVertexAssignment::Quality>(vtxIdMinSignif,
152 if (vtxIdMinSignif >= 0)