4 :
maxFraction(params.getParameter<double>(
"maxFraction")),
8 std::set<reco::TrackRef> pvTracks;
9 for (std::vector<reco::TrackBaseRef>::const_iterator iter = pv.
tracks_begin(); iter != pv.
tracks_end(); iter++) {
15 for (std::vector<reco::TrackBaseRef>::const_iterator iter = sv.
tracks_begin(); iter != sv.
tracks_end(); iter++) {
22 return (
double)count / (double)
total;
28 for (std::vector<reco::Vertex>::const_iterator sv = secondaryVertices.begin(); sv != secondaryVertices.end(); ++sv) {
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)
trackRef_iterator tracks_end() const
last iterator over tracks
float trackWeight(const TREF &r) const
returns the weight with which a Track has contributed to the vertex-fit.
trackRef_iterator tracks_begin() const
first iterator over tracks
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)