1 #ifndef JetReco_JetTrackMatch_h 2 #define JetReco_JetTrackMatch_h 38 template <
typename JetC>
60 std::vector<JetRef>
result;
62 for (; it !=
mMap.
end(); ++it) {
69 std::vector<TrackRef>
result;
Association between Jets from jet collection and tracks from track collection.
friend struct const_iterator
void insert(const JetRef &fJet)
insert orphan jet
edm::AssociationMap< edm::OneToMany< JetC, reco::TrackCollection > > Map
void insert(const JetRef &fJet, const TrackRef &fTrack)
assign track to jet.
edm::Ref< reco::TrackCollection > TrackRef
const_iterator end() const
last iterator over the map (read only)
std::vector< TrackRef > getTracks(const JetRef &mJet) const
get all tracks associated with jet
auto const & tracks
cannot be loose
void insert(const key_type &k, const data_type &v)
insert an association
const_iterator begin() const
first iterator over the map (read only)
std::vector< JetRef > allJets() const
get list of all jats in the map