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 // $Id: JetTracksAssociationDR.h,v 1.1 2009/03/30 15:06:33 bainbrid Exp $
5 
6 #ifndef RecoJets_JetAssociationAlgorithms_JetTracksAssociationDR_h
7 #define RecoJets_JetAssociationAlgorithms_JetTracksAssociationDR_h
8 
13 
14 class MagneticField;
15 class Propagator;
16 
18 
19  public:
20 
21  // ---------- Con(de)structors ----------
22 
24  explicit JetTracksAssociationDR( double dr_threshold );
25 
27  virtual ~JetTracksAssociationDR();
28 
29  // ---------- Typedefs ----------
30 
33 
36 
39 
40  // Jet reference
42 
43  // Collection of jet references
44  typedef std::vector<JetRef> JetRefs;
45 
46  // Collection of track references
47  typedef std::vector<reco::TrackRef> TrackRefs;
48 
49  // Track Quality
51 
52  // ---------- Public interface ----------
53 
54  // Associate tracks to jets
56  const JetRefs&,
57  const TrackRefs& );
58 
61  const reco::Jet&,
62  const TrackRefs& ) = 0;
63 
64  // Takes Handle as input and creates collection of edm::Refs
65  static void createJetRefs( JetRefs&,
66  const Jets& );
67 
68  // Takes Handle as input and creates collection of edm::Refs
69  static void createTrackRefs( TrackRefs&,
70  const Tracks&,
71  const TrackQuality& );
72 
73  protected:
74 
77 
80 
81 };
82 
83 #endif // RecoJets_JetAssociationAlgorithms_JetTracksAssociationDR_h
edm::Handle< reco::TrackCollection > Tracks
Handle to track collection.
TrackQuality
track quality
Definition: TrackBase.h:94
double mDeltaR2Threshold
Threshold used to associate tracks to jets.
Base class for all types of Jets.
Definition: Jet.h:21
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:26
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 &)