Calculates a lepton's jet isolation angle. More...
#include "PhysicsTools/PatUtils/interface/LeptonJetIsolationAngle.h"
Public Member Functions | |
float | calculate (const Electron &anElectron, const edm::Handle< edm::View< reco::Track > > &trackHandle, const edm::Event &iEvent) |
float | calculate (const Muon &aMuon, const edm::Handle< edm::View< reco::Track > > &trackHandle, const edm::Event &iEvent) |
LeptonJetIsolationAngle (edm::ConsumesCollector &&iC) | |
~LeptonJetIsolationAngle () | |
Private Member Functions | |
float | calculate (const CLHEP::HepLorentzVector &aLepton, const edm::Handle< edm::View< reco::Track > > &trackHandle, const edm::Event &iEvent) |
float | spaceAngle (const CLHEP::HepLorentzVector &aLepton, const reco::CaloJet &aJet) |
Private Attributes | |
edm::EDGetTokenT< std::vector< reco::GsfElectron > > | electronsToken_ |
edm::EDGetTokenT< reco::CaloJetCollection > | jetToken_ |
TrackerIsolationPt | trkIsolator_ |
Calculates a lepton's jet isolation angle.
LeptonJetIsolationAngle calculates an isolation angle w.r.t. a list of given jets as the minimal angle to a jet in Euclidean space, as defined in CMS Note 2006/024
Definition at line 33 of file LeptonJetIsolationAngle.h.
LeptonJetIsolationAngle::LeptonJetIsolationAngle | ( | edm::ConsumesCollector && | iC | ) |
Definition at line 14 of file LeptonJetIsolationAngle.cc.
LeptonJetIsolationAngle::~LeptonJetIsolationAngle | ( | ) |
Definition at line 22 of file LeptonJetIsolationAngle.cc.
float LeptonJetIsolationAngle::calculate | ( | const Electron & | anElectron, |
const edm::Handle< edm::View< reco::Track > > & | trackHandle, | ||
const edm::Event & | iEvent | ||
) |
Definition at line 27 of file LeptonJetIsolationAngle.cc.
References reco::LeafCandidate::energy(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::pz().
Referenced by calculate().
float LeptonJetIsolationAngle::calculate | ( | const Muon & | aMuon, |
const edm::Handle< edm::View< reco::Track > > & | trackHandle, | ||
const edm::Event & | iEvent | ||
) |
Definition at line 31 of file LeptonJetIsolationAngle.cc.
References calculate(), reco::LeafCandidate::energy(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::pz().
|
private |
Definition at line 38 of file LeptonJetIsolationAngle.cc.
References pat::TrackerIsolationPt::calculate(), reco::deltaR2(), electrons_cff::electrons, electronsToken_, edm::Event::getByToken(), jetToken_, MTVHistoProducerAlgoForTrackerBlock_cfi::mindr, edm::Handle< T >::product(), reco::LeafCandidate::pt(), spaceAngle(), mathSSE::sqrt(), and trkIsolator_.
|
private |
Definition at line 80 of file LeptonJetIsolationAngle.cc.
References funct::cos(), reco::LeafCandidate::phi(), funct::sin(), and reco::LeafCandidate::theta().
Referenced by calculate().
|
private |
Definition at line 52 of file LeptonJetIsolationAngle.h.
Referenced by calculate().
|
private |
Definition at line 51 of file LeptonJetIsolationAngle.h.
Referenced by calculate().
|
private |
Definition at line 50 of file LeptonJetIsolationAngle.h.
Referenced by calculate().