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
JetTracksAssociation.h
JetTracksAssociationDR
Definition: JetTracksAssociationDR.h:16
JetTracksAssociationDR::JetRefs
std::vector< JetRef > JetRefs
Definition: JetTracksAssociationDR.h:41
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
JetTracksAssociationDR::associateTracksToJets
void associateTracksToJets(Association *, const JetRefs &, const TrackRefs &)
Definition: JetTracksAssociationDR.cc:17
reco::TrackBase::TrackQuality
TrackQuality
track quality
Definition: TrackBase.h:150
Jet.h
edm::RefVector< TrackCollection >
edm::Handle
Definition: AssociativeIterator.h:50
JetTracksAssociationDR::~JetTracksAssociationDR
virtual ~JetTracksAssociationDR()
Destructor.
Definition: JetTracksAssociationDR.cc:13
JetTracksAssociationDR::createJetRefs
static void createJetRefs(JetRefs &, const Jets &)
Definition: JetTracksAssociationDR.cc:31
Propagator
Definition: Propagator.h:44
Track.h
TrackFwd.h
JetTracksAssociationDR::Jets
edm::Handle< edm::View< reco::Jet > > Jets
Handle to jet collection.
Definition: JetTracksAssociationDR.h:32
TrackQuality
This class analyses the reconstruction quality for a given track.
Definition: TrackQuality.h:29
JetTracksAssociationDR::createTrackRefs
static void createTrackRefs(TrackRefs &, const Tracks &, const TrackQuality &)
Definition: JetTracksAssociationDR.cc:41
edm::AssociationVector
Definition: AssociationVector.h:67
JetTracksAssociationDR::Tracks
edm::Handle< reco::TrackCollection > Tracks
Handle to track collection.
Definition: JetTracksAssociationDR.h:35
JetTracksAssociationDR::Association
reco::JetTracksAssociation::Container Association
Container for jet-track associations.
Definition: JetTracksAssociationDR.h:29
JetTracksAssociationDR::mDeltaR2Threshold
double mDeltaR2Threshold
Threshold used to associate tracks to jets.
Definition: JetTracksAssociationDR.h:68
JetTracksAssociationDR::TrackRefs
std::vector< reco::TrackRef > TrackRefs
Definition: JetTracksAssociationDR.h:44
edm::RefToBase< reco::Jet >
JetTracksAssociationDR::JetRef
edm::RefToBase< reco::Jet > JetRef
Definition: JetTracksAssociationDR.h:38
JetTracksAssociationDR::associateTracksToJet
virtual void associateTracksToJet(reco::TrackRefVector &, const reco::Jet &, const TrackRefs &)=0
Associate tracks to the given jet.
JetTracksAssociationDR::JetTracksAssociationDR
JetTracksAssociationDR()
Private default constructor.
Definition: JetTracksAssociationDR.h:65
MagneticField
Definition: MagneticField.h:19
JetTracksAssociationDR::TrackQuality
reco::TrackBase::TrackQuality TrackQuality
Definition: JetTracksAssociationDR.h:47