#include <JetTracksAssociationDRCalo.h>
Classes | |
struct | ImpactPoint |
Definition of track impact point. More... | |
Public Member Functions | |
void | associateTracksToJet (reco::TrackRefVector &, const reco::Jet &, const TrackRefs &) |
Associate tracks to the given jet. More... | |
JetTracksAssociationDRCalo (double dr_threshold) | |
Constructor taking dR threshold as argument. More... | |
void | produce (Association *, const Jets &, const Tracks &, const TrackQuality &, const MagneticField &, const Propagator &) |
Associates tracks to jets (using Handles as input) More... | |
void | produce (Association *, const JetRefs &, const TrackRefs &, const MagneticField &, const Propagator &) |
Associates tracks to jets. More... | |
void | propagateTracks (const TrackRefs &, const MagneticField &, const Propagator &) |
~JetTracksAssociationDRCalo () | |
Destructor. More... | |
Public Member Functions inherited from JetTracksAssociationDR | |
void | associateTracksToJets (Association *, const JetRefs &, const TrackRefs &) |
JetTracksAssociationDR (double dr_threshold) | |
Constructor taking dR threshold as argument. More... | |
virtual | ~JetTracksAssociationDR () |
Destructor. More... | |
Static Public Member Functions | |
static math::XYZPoint | propagateTrackToCalorimeter (const reco::Track &, const MagneticField &, const Propagator &) |
Propagates track to calorimeter face. More... | |
Static Public Member Functions inherited from JetTracksAssociationDR | |
static void | createJetRefs (JetRefs &, const Jets &) |
static void | createTrackRefs (TrackRefs &, const Tracks &, const TrackQuality &) |
Private Member Functions | |
JetTracksAssociationDRCalo () | |
Private default constructor. More... | |
Static Private Member Functions | |
static GlobalPoint | propagateTrackToCalo (const reco::Track &, const MagneticField &, const Propagator &) |
Propagates track to calorimeter face. More... | |
Private Attributes | |
std::vector< ImpactPoint > | propagatedTracks_ |
Impact points of tracks at calorimeter face. More... | |
Additional Inherited Members | |
Public Types inherited from JetTracksAssociationDR | |
typedef reco::JetTracksAssociation::Container | Association |
Container for jet-track associations. More... | |
typedef edm::RefToBase< reco::Jet > | JetRef |
typedef std::vector< JetRef > | JetRefs |
typedef edm::Handle< edm::View < reco::Jet > > | Jets |
Handle to jet collection. More... | |
typedef reco::TrackBase::TrackQuality | TrackQuality |
typedef std::vector < reco::TrackRef > | TrackRefs |
typedef edm::Handle < reco::TrackCollection > | Tracks |
Handle to track collection. More... | |
Protected Member Functions inherited from JetTracksAssociationDR | |
JetTracksAssociationDR () | |
Private default constructor. More... | |
Protected Attributes inherited from JetTracksAssociationDR | |
double | mDeltaR2Threshold |
Threshold used to associate tracks to jets. More... | |
Definition at line 17 of file JetTracksAssociationDRCalo.h.
|
explicit |
Constructor taking dR threshold as argument.
Definition at line 18 of file JetTracksAssociationDRCalo.cc.
JetTracksAssociationDRCalo::~JetTracksAssociationDRCalo | ( | ) |
|
private |
Private default constructor.
|
virtual |
Associate tracks to the given jet.
Implements JetTracksAssociationDR.
Definition at line 59 of file JetTracksAssociationDRCalo.cc.
References edm::RefVector< C, T, F >::clear(), Geom::deltaR2(), reco::LeafCandidate::eta(), JetTracksAssociationDR::mDeltaR2Threshold, reco::LeafCandidate::phi(), propagatedTracks_, and edm::RefVector< C, T, F >::push_back().
void JetTracksAssociationDRCalo::produce | ( | Association * | fAssociation, |
const Jets & | fJets, | ||
const Tracks & | fTracks, | ||
const TrackQuality & | fQuality, | ||
const MagneticField & | fField, | ||
const Propagator & | fPropagator | ||
) |
Associates tracks to jets (using Handles as input)
Definition at line 30 of file JetTracksAssociationDRCalo.cc.
References JetTracksAssociationDR::createJetRefs(), JetTracksAssociationDR::createTrackRefs(), analyzePatCleaning_cfg::jets, and testEve_cfg::tracks.
void JetTracksAssociationDRCalo::produce | ( | Association * | fAssociation, |
const JetRefs & | fJets, | ||
const TrackRefs & | fTracks, | ||
const MagneticField & | fField, | ||
const Propagator & | fPropagator | ||
) |
Associates tracks to jets.
Definition at line 46 of file JetTracksAssociationDRCalo.cc.
References JetTracksAssociationDR::associateTracksToJets(), and propagateTracks().
void JetTracksAssociationDRCalo::propagateTracks | ( | const TrackRefs & | fTracks, |
const MagneticField & | fField, | ||
const Propagator & | fPropagator | ||
) |
Definition at line 74 of file JetTracksAssociationDRCalo.cc.
References PV3DBase< T, PVType, FrameType >::barePhi(), JetTracksAssociationDRCalo::ImpactPoint::eta, PV3DBase< T, PVType, FrameType >::eta(), spr::goodTrack(), JetTracksAssociationDRCalo::ImpactPoint::index, PV3DBase< T, PVType, FrameType >::mag(), JetTracksAssociationDRCalo::ImpactPoint::phi, propagatedTracks_, and propagateTrackToCalo().
Referenced by produce().
|
staticprivate |
Propagates track to calorimeter face.
Definition at line 106 of file JetTracksAssociationDRCalo.cc.
References Plane::build(), Cylinder::build(), reco::TrackBase::charge(), JetTracksAssociationDRCalo::ImpactPoint::eta, funct::exp(), reco::Track::extra(), TrajectoryStateOnSurface::globalPosition(), JetTracksAssociationDRCalo::ImpactPoint::index, edm::Ref< C, T, F >::isAvailable(), TrajectoryStateOnSurface::isValid(), reco::Track::outerPx(), reco::Track::outerPy(), reco::Track::outerPz(), reco::Track::outerX(), reco::Track::outerY(), reco::Track::outerZ(), JetTracksAssociationDRCalo::ImpactPoint::phi, Propagator::propagate(), reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::pz(), query::result, funct::tan(), reco::btau::trackMomentum, reco::TrackBase::vx(), reco::TrackBase::vy(), and reco::TrackBase::vz().
Referenced by propagateTracks(), and propagateTrackToCalorimeter().
|
static |
Propagates track to calorimeter face.
Definition at line 96 of file JetTracksAssociationDRCalo.cc.
References propagateTrackToCalo(), query::result, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by jptJetAnalysis::TrackPropagatorToCalo::impactPoint().
|
private |
Impact points of tracks at calorimeter face.
Definition at line 75 of file JetTracksAssociationDRCalo.h.
Referenced by associateTracksToJet(), and propagateTracks().