Calculates a lepton's calorimetric isolation energy. More...
#include "PhysicsTools/PatUtils/interface/CaloIsolationEnergy.h"
Public Member Functions | |
float | calculate (const Electron &anElectron, const std::vector< CaloTower > &theTowers, float isoConeElectron=0.3) const |
calculate the CalIsoE from the lepton object More... | |
float | calculate (const Muon &aMuon, const std::vector< CaloTower > &theTowers, float isoConeMuon=0.3) const |
CaloIsolationEnergy () | |
constructor More... | |
virtual | ~CaloIsolationEnergy () |
destructor More... | |
Private Member Functions | |
float | calculate (const reco::Track &track, const float leptonEnergy, const std::vector< CaloTower > &theTowers, float isoCone) const |
calculate the CalIsoE from the lepton's track More... | |
Calculates a lepton's calorimetric isolation energy.
CaloIsolationEnergy calculates a calorimetric isolation energy in a half-cone (dependent on the lepton's charge) around the lepton's impact position on the ECAL surface, as defined in CMS Note 2006/024
Definition at line 32 of file CaloIsolationEnergy.h.
CaloIsolationEnergy::CaloIsolationEnergy | ( | ) |
|
virtual |
float CaloIsolationEnergy::calculate | ( | const Electron & | anElectron, |
const std::vector< CaloTower > & | theTowers, | ||
float | isoConeElectron = 0.3 |
||
) | const |
calculate the CalIsoE from the lepton object
Definition at line 23 of file CaloIsolationEnergy.cc.
References reco::GsfElectron::caloEnergy(), reco::LeafCandidate::energy(), and pat::Electron::gsfTrack().
Referenced by calculate().
float CaloIsolationEnergy::calculate | ( | const Muon & | aMuon, |
const std::vector< CaloTower > & | theTowers, | ||
float | isoConeMuon = 0.3 |
||
) | const |
Definition at line 29 of file CaloIsolationEnergy.cc.
References calculate(), reco::LeafCandidate::energy(), and pat::Muon::track().
|
private |
calculate the CalIsoE from the lepton's track
Definition at line 36 of file CaloIsolationEnergy.cc.
References HLT_2022v12_cff::dPhi, HGC3DClusterGenMatchSelector_cfi::dR, reco::TrackBase::eta(), M_PI, reco::TrackBase::phi(), funct::pow(), and mathSSE::sqrt().