test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
18  public:
19 
20  // ---------- Con(de)structors ----------
21 
23  explicit JetTracksAssociationDR( double dr_threshold );
24 
26  virtual ~JetTracksAssociationDR();
27 
28  // ---------- Typedefs ----------
29 
32 
35 
38 
39  // Jet reference
41 
42  // Collection of jet references
43  typedef std::vector<JetRef> JetRefs;
44 
45  // Collection of track references
46  typedef std::vector<reco::TrackRef> TrackRefs;
47 
48  // Track Quality
50 
51  // ---------- Public interface ----------
52 
53  // Associate tracks to jets
55  const JetRefs&,
56  const TrackRefs& );
57 
60  const reco::Jet&,
61  const TrackRefs& ) = 0;
62 
63  // Takes Handle as input and creates collection of edm::Refs
64  static void createJetRefs( JetRefs&,
65  const Jets& );
66 
67  // Takes Handle as input and creates collection of edm::Refs
68  static void createTrackRefs( TrackRefs&,
69  const Tracks&,
70  const TrackQuality& );
71 
72  protected:
73 
76 
79 
80 };
81 
82 #endif // RecoJets_JetAssociationAlgorithms_JetTracksAssociationDR_h
edm::Handle< reco::TrackCollection > Tracks
Handle to track collection.
TrackQuality
track quality
Definition: TrackBase.h:151
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.
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
void associateTracksToJets(Association *, const JetRefs &, const TrackRefs &)
static void createJetRefs(JetRefs &, const Jets &)
edm::Handle< edm::View< reco::Jet > > Jets
Handle to jet collection.
virtual ~JetTracksAssociationDR()
Destructor.
static void createTrackRefs(TrackRefs &, const Tracks &, const TrackQuality &)