CMS 3D CMS Logo

JetTracksAssociationDR.h
Go to the documentation of this file.
1 // \class JetTracksAssociationDR
2 // Associate jets with tracks by simple "delta R" criteria
3 // Fedor Ratnikov (UMd)
4 
5 #ifndef RecoJets_JetAssociationAlgorithms_JetTracksAssociationDR_h
6 #define RecoJets_JetAssociationAlgorithms_JetTracksAssociationDR_h
7 
12 
13 class MagneticField;
14 class Propagator;
15 
17 public:
18  // ---------- Con(de)structors ----------
19 
21  explicit JetTracksAssociationDR(double dr_threshold);
22 
24  virtual ~JetTracksAssociationDR();
25 
26  // ---------- Typedefs ----------
27 
30 
33 
36 
37  // Jet reference
39 
40  // Collection of jet references
41  typedef std::vector<JetRef> JetRefs;
42 
43  // Collection of track references
44  typedef std::vector<reco::TrackRef> TrackRefs;
45 
46  // Track Quality
48 
49  // ---------- Public interface ----------
50 
51  // Associate tracks to jets
52  void associateTracksToJets(Association*, const JetRefs&, const TrackRefs&);
53 
55  virtual void associateTracksToJet(reco::TrackRefVector&, const reco::Jet&, const TrackRefs&) = 0;
56 
57  // Takes Handle as input and creates collection of edm::Refs
58  static void createJetRefs(JetRefs&, const Jets&);
59 
60  // Takes Handle as input and creates collection of edm::Refs
61  static void createTrackRefs(TrackRefs&, const Tracks&, const TrackQuality&);
62 
63 protected:
66 
69 };
70 
71 #endif // RecoJets_JetAssociationAlgorithms_JetTracksAssociationDR_h
TrackQuality
track quality
Definition: TrackBase.h:150
double mDeltaR2Threshold
Threshold used to associate tracks to jets.
Base class for all types of Jets.
Definition: Jet.h:20
edm::RefToBase< reco::Jet > JetRef
JetTracksAssociationDR()
Private default constructor.
std::vector< reco::TrackRef > TrackRefs
virtual void associateTracksToJet(reco::TrackRefVector &, const reco::Jet &, const TrackRefs &)=0
Associate tracks to the given jet.
edm::Handle< reco::TrackCollection > Tracks
Handle to track collection.
reco::TrackBase::TrackQuality TrackQuality
reco::JetTracksAssociation::Container Association
Container for jet-track associations.
std::vector< JetRef > JetRefs
This class analyses the reconstruction quality for a given track.
Definition: TrackQuality.h:28
edm::Handle< edm::View< reco::Jet > > Jets
Handle to jet collection.
void associateTracksToJets(Association *, const JetRefs &, const TrackRefs &)
static void createJetRefs(JetRefs &, const Jets &)
virtual ~JetTracksAssociationDR()
Destructor.
static void createTrackRefs(TrackRefs &, const Tracks &, const TrackQuality &)