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 30 of file LeptonJetIsolationAngle.h.
LeptonJetIsolationAngle::LeptonJetIsolationAngle | ( | edm::ConsumesCollector && | iC | ) |
Definition at line 12 of file LeptonJetIsolationAngle.cc.
LeptonJetIsolationAngle::~LeptonJetIsolationAngle | ( | ) |
Definition at line 17 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 20 of file LeptonJetIsolationAngle.cc.
References reco::LeafCandidate::energy(), iEvent, 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 26 of file LeptonJetIsolationAngle.cc.
References calculate(), reco::LeafCandidate::energy(), iEvent, reco::LeafCandidate::px(), reco::LeafCandidate::py(), and reco::LeafCandidate::pz().
|
private |
Definition at line 34 of file LeptonJetIsolationAngle.cc.
References pat::TrackerIsolationPt::calculate(), HLTMuonOfflineAnalyzer_cfi::deltaR2, pwdgSkimBPark_cfi::electrons, electronsToken_, iEvent, jetToken_, MTVHistoProducerAlgoForTrackerBlock_cfi::mindr, edm::Handle< T >::product(), reco::LeafCandidate::pt(), spaceAngle(), mathSSE::sqrt(), and trkIsolator_.
|
private |
Definition at line 79 of file LeptonJetIsolationAngle.cc.
References funct::cos(), reco::LeafCandidate::phi(), funct::sin(), and reco::LeafCandidate::theta().
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().
|
private |
Definition at line 49 of file LeptonJetIsolationAngle.h.
Referenced by calculate().