#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 40 of file PFPhotonIsolationCalculator.h.
|
private |
PFPhotonIsolationCalculator::PFPhotonIsolationCalculator | ( | ) |
Definition at line 76 of file PFPhotonIsolationCalculator.cc.
PFPhotonIsolationCalculator::~PFPhotonIsolationCalculator | ( | ) |
Definition at line 83 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 89 of file PFPhotonIsolationCalculator.cc.
References reco::Photon::PflowIsolationVariables::chargedHadronIso, fGetIsolation(), getIsolationCharged(), getIsolationNeutral(), getIsolationPhoton(), reco::Photon::PflowIsolationVariables::neutralHadronIso, and reco::Photon::PflowIsolationVariables::photonIso.
Referenced by GEDPhotonProducer::fillPhotonCollection().
|
private |
Definition at line 685 of file PFPhotonIsolationCalculator.cc.
References bCheckClosestZVertex_, getHLTprescales::index, edm::Handle< T >::product(), reco::PFCandidate::trackRef(), reco::PFCandidate::vertex(), and w().
Referenced by isChargedParticleVetoed().
|
private |
Definition at line 139 of file PFPhotonIsolationCalculator.cc.
References fGetIsolationInRings(), fIsolation_, and fIsolationInRings_.
Referenced by calculate().
|
private |
Definition at line 149 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), fEta_, fIsolationInRings_, fIsolationInRingsCharged_, fIsolationInRingsChargedAll_, fIsolationInRingsNeutral_, fIsolationInRingsPhoton_, fPhi_, fRingSize_, fVx_, fVy_, fVz_, iMissHits_, iNumberOfRings_, isChargedParticleVetoed(), isNeutralParticleVetoed(), edm::Ref< C, T, F >::isNonnull(), isPhotonParticleVetoed(), pivotInBarrel, refSC, and reco::Photon::superCluster().
Referenced by fGetIsolation().
|
inlineprivate |
Definition at line 77 of file PFPhotonIsolationCalculator.h.
References fIsolationCharged_, and fIsolationInRingsCharged_.
Referenced by calculate().
|
inlineprivate |
Definition at line 78 of file PFPhotonIsolationCalculator.h.
References fIsolationChargedAll_.
|
inlineprivate |
Definition at line 82 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsCharged_.
|
inlineprivate |
Definition at line 83 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsChargedAll_.
|
inlineprivate |
Definition at line 81 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsNeutral_.
|
inlineprivate |
Definition at line 80 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsPhoton_.
|
inlineprivate |
Definition at line 76 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsNeutral_, and fIsolationNeutral_.
Referenced by calculate().
|
inlineprivate |
Definition at line 75 of file PFPhotonIsolationCalculator.h.
References fIsolationInRingsPhoton_, and fIsolationPhoton_.
Referenced by calculate().
|
private |
Definition at line 110 of file PFPhotonIsolationCalculator.cc.
References fConeSize_, fIsolationInRings_, fIsolationInRingsCharged_, fIsolationInRingsChargedAll_, fIsolationInRingsNeutral_, and fIsolationInRingsPhoton_.
Referenced by setup().
|
private |
Definition at line 467 of file PFPhotonIsolationCalculator.cc.
Referenced by fGetIsolationInRings().
|
private |
Definition at line 474 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyDzDxyVeto_, bApplyPFPUVeto_, bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, chargedHadronVertex(), SiPixelRawToDigiRegional_cfi::deltaPhi, deltaR(), 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(), and reco::PFCandidate::trackRef().
|
private |
Definition at line 579 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyDzDxyVeto_, bApplyPFPUVeto_, bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, chargedHadronVertex(), SiPixelRawToDigiRegional_cfi::deltaPhi, deltaR(), fConeSize_, fDeltaRVetoBarrelCharged_, fDeltaRVetoEndcapCharged_, fEta_, fPhi_, fRectangleDeltaEtaVetoBarrelCharged_, fRectangleDeltaEtaVetoEndcapCharged_, fRectangleDeltaPhiVetoBarrelCharged_, fRectangleDeltaPhiVetoEndcapCharged_, fVx_, fVy_, iParticleType_, edm::Ref< C, T, F >::isNull(), kPhoton, and pivotInBarrel.
|
private |
Definition at line 365 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, SiPixelRawToDigiRegional_cfi::deltaPhi, deltaR(), reco::LeafCandidate::eta(), fConeSize_, fDeltaRVetoBarrelNeutrals_, fDeltaRVetoEndcapNeutrals_, fEta_, fPhi_, fRectangleDeltaEtaVetoBarrelNeutrals_, fRectangleDeltaEtaVetoEndcapNeutrals_, fRectangleDeltaPhiVetoBarrelNeutrals_, fRectangleDeltaPhiVetoEndcapNeutrals_, reco::LeafCandidate::phi(), and pivotInBarrel.
Referenced by fGetIsolationInRings().
|
private |
Definition at line 415 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, SiPixelRawToDigiRegional_cfi::deltaPhi, deltaR(), fConeSize_, fDeltaRVetoBarrelNeutrals_, fDeltaRVetoEndcapNeutrals_, fEta_, fPhi_, fRectangleDeltaEtaVetoBarrelNeutrals_, fRectangleDeltaEtaVetoEndcapNeutrals_, fRectangleDeltaPhiVetoBarrelNeutrals_, fRectangleDeltaPhiVetoEndcapNeutrals_, and pivotInBarrel.
|
private |
Definition at line 306 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyMissHitPhVeto_, bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, bUseCrystalSize_, SiPixelRawToDigiRegional_cfi::deltaPhi, 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().
|
private |
Definition at line 246 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), bApplyMissHitPhVeto_, bApplyVeto_, bDeltaRVetoBarrel_, bDeltaRVetoEndcap_, bRectangleVetoBarrel_, bRectangleVetoEndcap_, bUseCrystalSize_, SiPixelRawToDigiRegional_cfi::deltaPhi, 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 746 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), i, reco::LeafCandidate::pdgId(), reco::Photon::superCluster(), and reco::PFCandidate::superClusterRef().
|
private |
Definition at line 791 of file PFPhotonIsolationCalculator.cc.
References funct::abs(), deltaR(), reco::LeafCandidate::eta(), 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 20 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_.
Referenced by GEDPhotonProducer::beginRun().
|
private |
Definition at line 126 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 128 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 127 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 125 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 123 of file PFPhotonIsolationCalculator.h.
Referenced by chargedHadronVertex(), and setup().
|
private |
Definition at line 131 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 134 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 135 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 129 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 124 of file PFPhotonIsolationCalculator.h.
Referenced by initializeRings(), isChargedParticleVetoed(), isNeutralParticleVetoed(), isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 139 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 138 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 137 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 143 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 142 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 141 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 171 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), isChargedParticleVetoed(), isNeutralParticleVetoed(), and isPhotonParticleVetoed().
|
private |
Definition at line 173 of file PFPhotonIsolationCalculator.h.
|
private |
Definition at line 110 of file PFPhotonIsolationCalculator.h.
|
private |
Definition at line 111 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolation().
|
private |
Definition at line 114 of file PFPhotonIsolationCalculator.h.
Referenced by getIsolationCharged().
|
private |
Definition at line 115 of file PFPhotonIsolationCalculator.h.
Referenced by getIsolationChargedAll().
|
private |
Definition at line 117 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolation(), fGetIsolationInRings(), and initializeRings().
|
private |
Definition at line 120 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), getIsolationCharged(), getIsolationInRingsCharged(), and initializeRings().
|
private |
Definition at line 121 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), getIsolationInRingsChargedAll(), and initializeRings().
|
private |
Definition at line 119 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), getIsolationInRingsNeutral(), getIsolationNeutral(), and initializeRings().
|
private |
Definition at line 118 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), getIsolationInRingsPhoton(), getIsolationPhoton(), and initializeRings().
|
private |
Definition at line 113 of file PFPhotonIsolationCalculator.h.
Referenced by getIsolationNeutral().
|
private |
Definition at line 112 of file PFPhotonIsolationCalculator.h.
Referenced by getIsolationPhoton().
|
private |
Definition at line 145 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 172 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), isChargedParticleVetoed(), isNeutralParticleVetoed(), and isPhotonParticleVetoed().
|
private |
Definition at line 174 of file PFPhotonIsolationCalculator.h.
|
private |
Definition at line 176 of file PFPhotonIsolationCalculator.h.
|
private |
Definition at line 157 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 156 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 155 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 161 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 160 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 159 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 149 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 148 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 147 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 153 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 152 of file PFPhotonIsolationCalculator.h.
Referenced by isNeutralParticleVetoed(), and setup().
|
private |
Definition at line 151 of file PFPhotonIsolationCalculator.h.
Referenced by isPhotonParticleVetoed(), and setup().
|
private |
Definition at line 166 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and setup().
|
private |
Definition at line 177 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and isChargedParticleVetoed().
|
private |
Definition at line 178 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and isChargedParticleVetoed().
|
private |
Definition at line 179 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings().
|
private |
Definition at line 164 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and isPhotonParticleVetoed().
|
private |
Definition at line 163 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and setup().
|
private |
Definition at line 108 of file PFPhotonIsolationCalculator.h.
Referenced by isChargedParticleVetoed(), and setup().
|
private |
Definition at line 182 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), isChargedParticleVetoed(), isNeutralParticleVetoed(), and isPhotonParticleVetoed().
|
private |
Definition at line 181 of file PFPhotonIsolationCalculator.h.
Referenced by fGetIsolationInRings(), and isPhotonParticleVetoed().