8 std::set<reco::TrackRef> pvTracks;
9 for (std::vector<reco::TrackBaseRef>::const_iterator iter =
pv.tracks_begin(); iter !=
pv.tracks_end(); iter++) {
10 if (
pv.trackWeight(*iter) >= 0.5)
15 for (std::vector<reco::TrackBaseRef>::const_iterator iter =
sv.tracks_begin(); iter !=
sv.tracks_end(); iter++) {
16 if (
sv.trackWeight(*iter) >= 0.5) {
29 recoVertices.push_back(*
sv);
31 for (std::vector<reco::Vertex>::iterator
sv = recoVertices.begin();
sv != recoVertices.end(); ++
sv) {
33 for (std::vector<reco::Vertex>::iterator sv2 = recoVertices.begin(); sv2 != recoVertices.end(); ++sv2) {
44 sv = recoVertices.erase(
sv) - 1;
std::vector< Vertex > VertexCollection
collection of Vertex objects
reco::VertexCollection mergeVertex(reco::VertexCollection &secondaryVertices)
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
double significance() const
VertexMerging(const edm::ParameterSet ¶ms)
static double computeSharedTracks(const reco::Vertex &pv, const reco::Vertex &sv)