#include <PFPhotonIsolationCalculator.h>
Public Member Functions | |
void | calculate (const reco::Photon *, const edm::Handle< reco::PFCandidateCollection > pfCandidateHandle, edm::Handle< reco::VertexCollection > &vertices, const edm::Event &e, const edm::EventSetup &es, reco::Photon::PflowIsolationVariables &phoisol03) |
PFPhotonIsolationCalculator () | |
void | setup (const edm::ParameterSet &conf) |
~PFPhotonIsolationCalculator () | |
Private Types | |
enum | VetoType { kElectron = -1, kPhoton = 1 } |
Definition at line 35 of file PFPhotonIsolationCalculator.h.
|
private |
PFPhotonIsolationCalculator::PFPhotonIsolationCalculator | ( | ) |
Definition at line 62 of file PFPhotonIsolationCalculator.cc.
PFPhotonIsolationCalculator::~PFPhotonIsolationCalculator | ( | ) |
Definition at line 67 of file PFPhotonIsolationCalculator.cc.
void PFPhotonIsolationCalculator::calculate | ( | const reco::Photon * | aPho, |
const edm::Handle< reco::PFCandidateCollection > | pfCandidateHandle, | ||
edm::Handle< reco::VertexCollection > & | vertices, | ||
const edm::Event & | e, | ||
const edm::EventSetup & | es, | ||
reco::Photon::PflowIsolationVariables & | phoisol03 | ||
) |
Definition at line 69 of file PFPhotonIsolationCalculator.cc.
References reco::Photon::PflowIsolationVariables::chargedHadronIso, fGetIsolation(), getIsolationCharged(), getIsolationNeutral(), getIsolationPhoton(), reco::Photon::PflowIsolationVariables::neutralHadronIso, reco::Photon::PflowIsolationVariables::photonIso, and badGlobalMuonTaggersAOD_cff::vtx.
|
private |
Definition at line 630 of file PFPhotonIsolationCalculator.cc.
References bCheckClosestZVertex_, PVValHelper::dz, edm::Handle< T >::product(), HLT_2018_cff::track, reco::PFCandidate::trackRef(), reco::PFCandidate::vertex(), pwdgSkimBPark_cfi::vertices, badGlobalMuonTaggersAOD_cff::vtx, and w.
Referenced by getIsolationInRingsChargedAll(), and isChargedParticleVetoed().
|
private |
Definition at line 107 of file PFPhotonIsolationCalculator.cc.
References fGetIsolationInRings(), fIsolation_, and fIsolationInRings_.
Referenced by calculate(), and getIsolationInRingsChargedAll().
|
private |
Definition at line 117 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), fEta_, fIsolationInRings_, fIsolationInRingsCharged_, fIsolationInRingsChargedAll_, fIsolationInRingsNeutral_, fIsolationInRingsPhoton_, fPhi_, fRingSize_, fVx_, fVy_, fVz_, iMissHits_, createfilelist::int, iNumberOfRings_, isChargedParticleVetoed(), isNeutralParticleVetoed(), edm::Ref< C, T, F >::isNonnull(), isPhotonParticleVetoed(), pivotInBarrel, refSC, and reco::Photon::superCluster().
Referenced by fGetIsolation(), and getIsolationInRingsChargedAll().
|
inlineprivate |
Definition at line 66 of file PFPhotonIsolationCalculator.h.
References fIsolationCharged_, and fIsolationInRingsCharged_.
Referenced by calculate().
|
inlineprivate |
Definition at line 70 of file PFPhotonIsolationCalculator.h.
References fIsolationChargedAll_.
|
inlineprivate |
Definition at line 74 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsCharged_.
|
inlineprivate |
Definition at line 75 of file PFPhotonIsolationCalculator.h.
References chargedHadronVertex(), fGetIsolation(), fGetIsolationInRings(), fIsolationInRingsChargedAll_, isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), matchPFObject(), pfDeepBoostedJetPreprocessParams_cfi::pfcand, muons2muons_cfi::photon, and badGlobalMuonTaggersAOD_cff::vtx.
|
inlineprivate |
Definition at line 73 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsNeutral_.
|
inlineprivate |
Definition at line 72 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsPhoton_.
|
inlineprivate |
Definition at line 62 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsNeutral_, and fIsolationNeutral_.
Referenced by calculate().
|
inlineprivate |
Definition at line 58 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsPhoton_, and fIsolationPhoton_.
Referenced by calculate().
|
private |
Definition at line 84 of file PFPhotonIsolationCalculator.cc.
References fConeSize_, fIsolationInRings_, fIsolationInRingsCharged_, fIsolationInRingsChargedAll_, fIsolationInRingsNeutral_, fIsolationInRingsPhoton_, and dqmMemoryStats::float.
Referenced by setup().
|
private |
Definition at line 426 of file PFPhotonIsolationCalculator.cc.
Referenced by fGetIsolationInRings(), and getIsolationInRingsChargedAll().
|
private |
Definition at line 434 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyDzDxyVeto_, bApplyPFPUVeto_, bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, chargedHadronVertex(), SiPixelRawToDigiRegional_cfi::deltaPhi, PbPb_ZMuSkimMuonDPG_cff::deltaR, PVValHelper::dxy, PVValHelper::dz, reco::LeafCandidate::eta(), fConeSize_, fDeltaRVetoBarrelCharged_, fDeltaRVetoEndcapCharged_, fEta_, fPhi_, fRectangleDeltaEtaVetoBarrelCharged_, fRectangleDeltaEtaVetoEndcapCharged_, fRectangleDeltaPhiVetoBarrelCharged_, fRectangleDeltaPhiVetoEndcapCharged_, fVx_, fVy_, iParticleType_, edm::Ref< C, T, F >::isNull(), kPhoton, reco::LeafCandidate::phi(), pivotInBarrel, reco::LeafCandidate::pt(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::PFCandidate::trackRef(), and badGlobalMuonTaggersAOD_cff::vtx.
|
private |
Definition at line 532 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyDzDxyVeto_, bApplyPFPUVeto_, bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, chargedHadronVertex(), SiPixelRawToDigiRegional_cfi::deltaPhi, PbPb_ZMuSkimMuonDPG_cff::deltaR, PVValHelper::dxy, PVValHelper::dz, fConeSize_, fDeltaRVetoBarrelCharged_, fDeltaRVetoEndcapCharged_, fEta_, fPhi_, fRectangleDeltaEtaVetoBarrelCharged_, fRectangleDeltaEtaVetoEndcapCharged_, fRectangleDeltaPhiVetoBarrelCharged_, fRectangleDeltaPhiVetoEndcapCharged_, fVx_, fVy_, iParticleType_, edm::Ref< C, T, F >::isNull(), kPhoton, pivotInBarrel, and badGlobalMuonTaggersAOD_cff::vtx.
|
private |
Definition at line 326 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, SiPixelRawToDigiRegional_cfi::deltaPhi, PbPb_ZMuSkimMuonDPG_cff::deltaR, reco::LeafCandidate::eta(), fConeSize_, fDeltaRVetoBarrelNeutrals_, fDeltaRVetoEndcapNeutrals_, fEta_, fPhi_, fRectangleDeltaEtaVetoBarrelNeutrals_, fRectangleDeltaEtaVetoEndcapNeutrals_, fRectangleDeltaPhiVetoBarrelNeutrals_, fRectangleDeltaPhiVetoEndcapNeutrals_, reco::LeafCandidate::phi(), and pivotInBarrel.
Referenced by fGetIsolationInRings(), and getIsolationInRingsChargedAll().
|
private |
Definition at line 376 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, SiPixelRawToDigiRegional_cfi::deltaPhi, PbPb_ZMuSkimMuonDPG_cff::deltaR, fConeSize_, fDeltaRVetoBarrelNeutrals_, fDeltaRVetoEndcapNeutrals_, fEta_, fPhi_, fRectangleDeltaEtaVetoBarrelNeutrals_, fRectangleDeltaEtaVetoEndcapNeutrals_, fRectangleDeltaPhiVetoBarrelNeutrals_, fRectangleDeltaPhiVetoEndcapNeutrals_, and pivotInBarrel.
|
private |
Definition at line 267 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyMissHitPhVeto_, bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, bUseCrystalSize_, SiPixelRawToDigiRegional_cfi::deltaPhi, PbPb_ZMuSkimMuonDPG_cff::deltaR, fConeSize_, fDeltaRVetoBarrelPhotons_, fDeltaRVetoEndcapPhotons_, fEta_, fNumberOfCrystalEndcapPhotons_, fPhi_, fRectangleDeltaEtaVetoBarrelPhotons_, fRectangleDeltaEtaVetoEndcapPhotons_, fRectangleDeltaPhiVetoBarrelPhotons_, fRectangleDeltaPhiVetoEndcapPhotons_, iMissHits_, edm::Ref< C, T, F >::isNonnull(), pivotInBarrel, refSC, and mathSSE::sqrt().
Referenced by fGetIsolationInRings(), and getIsolationInRingsChargedAll().
|
private |
Definition at line 208 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyMissHitPhVeto_, bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, bUseCrystalSize_, SiPixelRawToDigiRegional_cfi::deltaPhi, PbPb_ZMuSkimMuonDPG_cff::deltaR, reco::LeafCandidate::eta(), fConeSize_, fDeltaRVetoBarrelPhotons_, fDeltaRVetoEndcapPhotons_, fEta_, fNumberOfCrystalEndcapPhotons_, fPhi_, fRectangleDeltaEtaVetoBarrelPhotons_, fRectangleDeltaEtaVetoEndcapPhotons_, fRectangleDeltaPhiVetoBarrelPhotons_, fRectangleDeltaPhiVetoEndcapPhotons_, iMissHits_, edm::Ref< C, T, F >::isNonnull(), reco::PFCandidate::mva_nothing_gamma(), reco::LeafCandidate::phi(), pivotInBarrel, refSC, mathSSE::sqrt(), and reco::PFCandidate::superClusterRef().
|
private |
Definition at line 684 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), mps_fire::i, reco::LeafCandidate::pdgId(), reco::Photon::superCluster(), and reco::PFCandidate::superClusterRef().
Referenced by getIsolationInRingsChargedAll().
|
private |
Definition at line 722 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), PbPb_ZMuSkimMuonDPG_cff::deltaR, reco::LeafCandidate::eta(), mps_fire::i, reco::LeafCandidate::pdgId(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::GsfElectron::superCluster(), and reco::PFCandidate::superClusterRef().
void PFPhotonIsolationCalculator::setup | ( | const edm::ParameterSet & | conf | ) |
Definition at line 16 of file PFPhotonIsolationCalculator.cc.
References bApplyDzDxyVeto_, bApplyMissHitPhVeto_, bApplyPFPUVeto_, bApplyVeto_, bCheckClosestZVertex_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, bUseCrystalSize_, fConeSize_, fDeltaRVetoBarrelCharged_, fDeltaRVetoBarrelNeutrals_, fDeltaRVetoBarrelPhotons_, fDeltaRVetoEndcapCharged_, fDeltaRVetoEndcapNeutrals_, fDeltaRVetoEndcapPhotons_, fNumberOfCrystalEndcapPhotons_, fRectangleDeltaEtaVetoBarrelCharged_, fRectangleDeltaEtaVetoBarrelNeutrals_, fRectangleDeltaEtaVetoBarrelPhotons_, fRectangleDeltaEtaVetoEndcapCharged_, fRectangleDeltaEtaVetoEndcapNeutrals_, fRectangleDeltaEtaVetoEndcapPhotons_, fRectangleDeltaPhiVetoBarrelCharged_, fRectangleDeltaPhiVetoBarrelNeutrals_, fRectangleDeltaPhiVetoBarrelPhotons_, fRectangleDeltaPhiVetoEndcapCharged_, fRectangleDeltaPhiVetoEndcapNeutrals_, fRectangleDeltaPhiVetoEndcapPhotons_, fRingSize_, edm::ParameterSet::getParameter(), initializeRings(), iNumberOfRings_, and iParticleType_.
|
private |
Definition at line 124 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 126 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 125 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 123 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 121 of file PFPhotonIsolationCalculator.h.
Referenced by chargedHadronVertex(), and setup().
|
private |
Definition at line 129 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 130 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 132 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 133 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 127 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 122 of file PFPhotonIsolationCalculator.h.
Referenced by initializeRings(), isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 137 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 136 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 135 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 141 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 140 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 139 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 169 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), isChargedParticleVetoed(), isNeutralParticleVetoed(), and isPhotonParticleVetoed().
|
private |
Definition at line 171 of file PFPhotonIsolationCalculator.h.
|
private |
Definition at line 108 of file PFPhotonIsolationCalculator.h.
|
private |
Definition at line 109 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolation().
|
private |
Definition at line 112 of file PFPhotonIsolationCalculator.h.
Referenced by getIsolationCharged().
|
private |
Definition at line 113 of file PFPhotonIsolationCalculator.h.
Referenced by getIsolationChargedAll().
|
private |
Definition at line 115 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolation(), fGetIsolationInRings(), and initializeRings().
|
private |
Definition at line 118 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), getIsolationCharged(), getIsolationInRingsCharged(), and initializeRings().
|
private |
Definition at line 119 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), getIsolationInRingsChargedAll(), and initializeRings().
|
private |
Definition at line 117 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), getIsolationInRingsNeutral(), getIsolationNeutral(), and initializeRings().
|
private |
Definition at line 116 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), getIsolationInRingsPhoton(), getIsolationPhoton(), and initializeRings().
|
private |
Definition at line 111 of file PFPhotonIsolationCalculator.h.
Referenced by getIsolationNeutral().
|
private |
Definition at line 110 of file PFPhotonIsolationCalculator.h.
Referenced by getIsolationPhoton().
|
private |
Definition at line 143 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 170 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), isChargedParticleVetoed(), isNeutralParticleVetoed(), and isPhotonParticleVetoed().
|
private |
Definition at line 172 of file PFPhotonIsolationCalculator.h.
|
private |
Definition at line 174 of file PFPhotonIsolationCalculator.h.
|
private |
Definition at line 155 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 154 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 153 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 159 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 158 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 157 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 147 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 146 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 145 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 151 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 150 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 149 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 164 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and setup().
|
private |
Definition at line 175 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and isChargedParticleVetoed().
|
private |
Definition at line 176 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and isChargedParticleVetoed().
|
private |
Definition at line 177 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings().
|
private |
Definition at line 162 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and isPhotonParticleVetoed().
|
private |
Definition at line 161 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and setup().
|
private |
Definition at line 106 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 180 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), isChargedParticleVetoed(), isNeutralParticleVetoed(), and isPhotonParticleVetoed().
|
private |
Definition at line 179 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and isPhotonParticleVetoed().