4 unsigned int sharedTracks = 0;
6 auto found = trackRecoToSimAssociation.
find(*iTrack);
8 if(
found == trackRecoToSimAssociation.
end())
12 for(
const auto& tp:
found->val) {
14 return tp.first == vtp;
26 unsigned int sharedTracks = 0;
28 auto found = trackSimToRecoAssociation.
find(*iTP);
30 if(
found == trackSimToRecoAssociation.
end())
34 for(
const auto& tk:
found->val) {
36 return tk.first == vtk;
tp_iterator daughterTracks_begin() const
trackRef_iterator tracks_end() const
last iterator over tracks
const_iterator end() const
last iterator over the map (read only)
unsigned int calculateVertexSharedTracks(const reco::Vertex &recoV, const TrackingVertex &simV, const reco::RecoToSimCollection &trackRecoToSimAssociation)
const_iterator find(const key_type &k) const
find element with specified reference key
tp_iterator daughterTracks_end() const
trackRef_iterator tracks_begin() const
first iterator over tracks