9 const double dR2Min = 0.01 * 0.01;
17 if (pfCandidate->charge() != 0) {
20 pfCandToVertexAssociation != pfCandToVertexAssociations.
end();
21 ++pfCandToVertexAssociation) {
24 for (noPuUtils::CandQualityPairVector::const_iterator pfCandidate_vertex = pfCandidates_vertex.begin();
25 pfCandidate_vertex != pfCandidates_vertex.end();
26 ++pfCandidate_vertex) {
30 if (pfCandidate != pfcVtx)
34 double z = pfCandToVertexAssociation->key->position().z();
35 int quality = pfCandidate_vertex->second;
41 return vtxAssociationType;
49 pfCandToVertexAssociation != pfCandToVertexAssociations.
end();
50 ++pfCandToVertexAssociation) {
54 for (noPuUtils::CandQualityPairVector::const_iterator pfCandidate_vertex = pfCandidates_vertex.begin();
55 pfCandidate_vertex != pfCandidates_vertex.end();
56 ++pfCandidate_vertex) {
57 revPfCandToVtxAssoc.
insert(pfCandidate_vertex->first, std::make_pair(
vertex, pfCandidate_vertex->second));
61 return revPfCandToVtxAssoc;
72 if (pfCandidate->charge() != 0) {
77 pfCandToVertexAssociations.
find(pfCandidate);
78 if (itPfcToVtxAss != pfCandToVertexAssociations.
end()) {
79 pfCandAssocVtxs = &itPfcToVtxAss->
val;
82 pfcToVtxAssoc != pfCandToVertexAssociations.
end();
85 pfCandAssocVtxs = &pfcToVtxAssoc->val;
90 if (pfCandAssocVtxs !=
nullptr) {
91 for (noPuUtils::VertexQualityPairVector::const_iterator pfcAssVtx = pfCandAssocVtxs->begin();
92 pfcAssVtx != pfCandAssocVtxs->end();
94 double z = pfcAssVtx->first->position().z();
95 int quality = pfcAssVtx->second;
101 return vtxAssociationType;
108 int& vtxAssociationType,