00001 // \class JetTracksAssociationDRCalo 00002 // Associate jets with tracks by simple "delta R" criteria 00003 // Fedor Ratnikov (UMd), Aug. 28, 2007 00004 // $Id: JetTracksAssociationDRCalo.h,v 1.6 2010/03/18 12:17:58 bainbrid Exp $ 00005 00006 #ifndef JetTracksAssociationDRCalo_h 00007 #define JetTracksAssociationDRCalo_h 00008 00009 #include "DataFormats/JetReco/interface/JetTracksAssociation.h" 00010 #include "DataFormats/Math/interface/Point3D.h" 00011 00012 class MagneticField; 00013 class Propagator; 00014 00015 class JetTracksAssociationDRCalo { 00016 public: 00017 JetTracksAssociationDRCalo (double fDr); 00018 ~JetTracksAssociationDRCalo () {} 00019 00020 void produce (reco::JetTracksAssociation::Container* fAssociation, 00021 const std::vector <edm::RefToBase<reco::Jet> >& fJets, 00022 const std::vector <reco::TrackRef>& fTracks, 00023 const MagneticField& fField, 00024 const Propagator& fPropagator) const; 00025 00027 static math::XYZPoint propagateTrackToCalorimeter (const reco::Track& fTrack, 00028 const MagneticField& fField, 00029 const Propagator& fPropagator); 00030 private: 00032 double mDeltaR2Threshold; 00033 }; 00034 00035 #endif