Association between Jets from jet collection and tracks from track collection. More...
#include <JetTrackMatch.h>
Public Types | |
typedef edm::Ref< JetC > | JetRef |
typedef edm::AssociationMap< edm::OneToMany< JetC, reco::TrackCollection > > | Map |
typedef edm::Ref< reco::TrackCollection > | TrackRef |
Public Member Functions | |
std::vector< JetRef > | allJets () const |
get list of all jats in the map More... | |
std::vector< TrackRef > | getTracks (const JetRef &mJet) const |
get all tracks associated with jet More... | |
void | insert (const JetRef &fJet) |
insert orphan jet More... | |
void | insert (const JetRef &fJet, const TrackRef &fTrack) |
assign track to jet. More... | |
JetTrackMatch () | |
~JetTrackMatch () | |
Private Attributes | |
Map | mMap |
Association between Jets from jet collection and tracks from track collection.
Every jet may have several tracks associated with it
class definition:
template <typename jetc>=""> class JetTrackMatch { public: typedef edm::Ref<JetC> JetRef; typedef edm::Ref<reco::TrackCollection> TrackRef; JetTrackMatch (); ~JetTrackMatch (); // insert orphan jet void insert (const JetRef& fJet); // assign track to jet. void insert (const JetRef& fJet, const TrackRef& fTrack); // get list of all tracks in the map std::vector <JetRef> allJets () const; // get all tracks associated with jet std::vector <TrackRef> getTracks (const JetRef& mJet) const; };
Definition at line 39 of file JetTrackMatch.h.
typedef edm::Ref<JetC> reco::JetTrackMatch< JetC >::JetRef |
Definition at line 41 of file JetTrackMatch.h.
typedef edm::AssociationMap<edm::OneToMany<JetC, reco::TrackCollection> > reco::JetTrackMatch< JetC >::Map |
Definition at line 43 of file JetTrackMatch.h.
typedef edm::Ref<reco::TrackCollection> reco::JetTrackMatch< JetC >::TrackRef |
Definition at line 42 of file JetTrackMatch.h.
|
inline |
Definition at line 49 of file JetTrackMatch.h.
|
inline |
Definition at line 50 of file JetTrackMatch.h.
|
inline |
get list of all jats in the map
Definition at line 59 of file JetTrackMatch.h.
References edm::AssociationMap< Tag >::begin(), edm::AssociationMap< edm::OneToMany< JetC, reco::TrackCollection > >::const_iterator, edm::AssociationMap< Tag >::end(), reco::JetTrackMatch< JetC >::mMap, and mps_fire::result.
|
inline |
get all tracks associated with jet
Definition at line 68 of file JetTrackMatch.h.
References mps_fire::i, reco::JetTrackMatch< JetC >::mMap, mps_fire::result, and pwdgSkimBPark_cfi::tracks.
|
inline |
insert orphan jet
Definition at line 53 of file JetTrackMatch.h.
References edm::AssociationMap< Tag >::insert(), and reco::JetTrackMatch< JetC >::mMap.
Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly().
|
inline |
assign track to jet.
Definition at line 56 of file JetTrackMatch.h.
References edm::AssociationMap< Tag >::insert(), and reco::JetTrackMatch< JetC >::mMap.
Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly().
|
private |
Definition at line 46 of file JetTrackMatch.h.
Referenced by reco::JetTrackMatch< JetC >::allJets(), reco::JetTrackMatch< JetC >::getTracks(), and reco::JetTrackMatch< JetC >::insert().