#include <PhotonIsolationCalculator.h>
Public Member Functions | |
void | calculate (const reco::Photon *, const edm::Event &, const edm::EventSetup &es, reco::Photon::FiducialFlags &phofid, reco::Photon::IsolationVariables &phoisolR03, reco::Photon::IsolationVariables &phoisolR04, const HcalPFCuts *hcalCuts) const |
PhotonIsolationCalculator (const edm::ParameterSet &conf, std::vector< int > const &flagsEB_, std::vector< int > const &flagsEE_, std::vector< int > const &severitiesEB_, std::vector< int > const &severitiesEE_, edm::ConsumesCollector &&iC) | |
~PhotonIsolationCalculator ()=default | |
Private Member Functions | |
double | calculateEcalRecHitIso (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double etaSlice, double eMin, double etMin, bool vetoClusteredHits, bool useNumCrystals) const |
template<bool isoBC> | |
double | calculateHcalRecHitIso (const reco::Photon *photon, const CaloGeometry &geometry, const HcalTopology &hcalTopology, const HcalChannelQuality &hcalChStatus, const HcalSeverityLevelComputer &hcalSevLvlComputer, const CaloTowerConstituentsMap &towerMap, const HBHERecHitCollection &hbheRecHits, double RCone, double RConeInner, int depth, const HcalPFCuts *hcalCuts) const |
void | calculateTrackIso (const reco::Photon *photon, const edm::Event &e, double &trkCone, int &ntrkCone, double pTThresh=0, double RCone=.4, double RinnerCone=.1, double etaSlice=0.015, double lip=0.2, double d0=0.1) const |
Static Private Member Functions | |
static void | classify (const reco::Photon *photon, bool &isEBPho, bool &isEEPho, bool &isEBEtaGap, bool &isEBPhiGap, bool &isEERingGap, bool &isEEDeeGap, bool &isEBEEGap) |
Determine and Set quality information on Photon Objects
Definition at line 33 of file PhotonIsolationCalculator.h.
PhotonIsolationCalculator::PhotonIsolationCalculator | ( | const edm::ParameterSet & | conf, |
std::vector< int > const & | flagsEB_, | ||
std::vector< int > const & | flagsEE_, | ||
std::vector< int > const & | severitiesEB_, | ||
std::vector< int > const & | severitiesEE_, | ||
edm::ConsumesCollector && | iC | ||
) |
Isolation parameters for barrel and for two different cone sizes
Isolation parameters for Endcap and for two different cone sizes
Definition at line 29 of file PhotonIsolationCalculator.cc.
References barrelecalCollection_, beamSpotProducerTag_, caloGeometryToken_, ecalIsoBarrelRadiusA_, ecalIsoBarrelRadiusB_, ecalIsoEndcapRadiusA_, ecalIsoEndcapRadiusB_, ecalPFRechitThresholdsToken_, ecalSevLvlToken_, endcapecalCollection_, flagsEB_, flagsEE_, edm::ParameterSet::getParameter(), hbheRecHitsTag_, hcalChannelQualityToken_, hcalIsoEThresHB_, hcalIsoEThresHE_, hcalIsoInnerRadAEB_, hcalIsoInnerRadAEE_, hcalIsoInnerRadBEB_, hcalIsoInnerRadBEE_, hcalIsoOuterRadAEB_, hcalIsoOuterRadAEE_, hcalIsoOuterRadBEB_, hcalIsoOuterRadBEE_, hcalSevLvlComputerToken_, hcalTopologyToken_, mps_fire::i, maxHcalSeverity_, moduleEtaBoundary_, modulePhiBoundary_, severityExclEB_, severityExclEE_, towerMapToken_, trackInputTag_, trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, useNumCrystals_, and vetoClusteredEcalHits_.
|
default |
void PhotonIsolationCalculator::calculate | ( | const reco::Photon * | pho, |
const edm::Event & | e, | ||
const edm::EventSetup & | es, | ||
reco::Photon::FiducialFlags & | phofid, | ||
reco::Photon::IsolationVariables & | phoisolR03, | ||
reco::Photon::IsolationVariables & | phoisolR04, | ||
const HcalPFCuts * | hcalCuts | ||
) | const |
Definition at line 144 of file PhotonIsolationCalculator.cc.
References calculateEcalRecHitIso(), calculateTrackIso(), caloGeometryToken_, classify(), hcalRecHitTable_cff::depth, hgcalTestNeighbor_cfi::detector, MillePedeFileConverter_cfg::e, EcalBarrel, ecalIsoBarrelRadiusA_, ecalIsoBarrelRadiusB_, ecalIsoEndcapRadiusA_, ecalIsoEndcapRadiusB_, reco::Photon::IsolationVariables::ecalRecHitSumEt, fbc, edm::EventSetup::getData(), ecalDrivenElectronSeeds_cfi::hbheRecHits, hbheRecHitsTag_, hcalChannelQualityToken_, hcalIsoInnerRadAEB_, hcalIsoInnerRadAEE_, hcalIsoInnerRadBEB_, hcalIsoInnerRadBEE_, hcalIsoOuterRadAEB_, hcalIsoOuterRadAEE_, hcalIsoOuterRadBEB_, hcalIsoOuterRadBEE_, reco::Photon::IsolationVariables::hcalRecHitSumEt, reco::Photon::IsolationVariables::hcalRecHitSumEtBc, hcalSevLvlComputerToken_, hcalTopologyToken_, reco::CaloCluster::hitsAndFractions(), EcalPhiSymFlatTableProducers_cfi::id, SurfaceOrientation::inner, reco::Photon::FiducialFlags::isEB, reco::Photon::FiducialFlags::isEBEEGap, reco::Photon::FiducialFlags::isEBEtaGap, reco::Photon::FiducialFlags::isEBPhiGap, reco::Photon::FiducialFlags::isEE, reco::Photon::FiducialFlags::isEEDeeGap, reco::Photon::FiducialFlags::isEERingGap, reco::Photon::IsolationVariables::nTrkHollowCone, reco::Photon::IsolationVariables::nTrkSolidCone, SurfaceOrientation::outer, reco::Photon::IsolationVariables::pre7DepthHcal, DetId::subdetId(), reco::Photon::superCluster(), towerMapToken_, trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, reco::Photon::IsolationVariables::trkSumPtHollowCone, reco::Photon::IsolationVariables::trkSumPtSolidCone, useNumCrystals_, and vetoClusteredEcalHits_.
Referenced by PhotonProducer::fillPhotonCollection().
|
private |
Definition at line 486 of file PhotonIsolationCalculator.cc.
References barrelecalCollection_, caloGeometryToken_, EgammaRecHitIsolation::doFlagChecks(), EgammaRecHitIsolation::doSeverityChecks(), DetId::Ecal, ecalPFRechitThresholdsToken_, ecalSevLvlToken_, photonAnalyzer_cfi::eMin, endcapecalCollection_, photonAnalyzer_cfi::etMin, flagsEB_, flagsEE_, edm::EventSetup::getData(), EgammaRecHitIsolation::getEtSum(), edm::EventSetup::getHandle(), iEvent, displacedMuons_cfi::photon, edm::Handle< T >::product(), EgammaRecHitIsolation::setUseNumCrystals(), EgammaRecHitIsolation::setVetoClustered(), severityExclEB_, severityExclEE_, and particleFlowZeroSuppressionECAL_cff::thresholds.
Referenced by calculate().
|
private |
Definition at line 536 of file PhotonIsolationCalculator.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), hcalRecHitTable_cff::depth, ecalDrivenElectronSeeds_cfi::hbheRecHits, hcalIsoEThresHB_, hcalIsoEThresHE_, EgammaHcalIsolation::isBehindClusterSeed, maxHcalSeverity_, displacedMuons_cfi::photon, and EgammaHcalIsolation::withinConeAroundCluster.
|
private |
Definition at line 447 of file PhotonIsolationCalculator.cc.
References beamSpotProducerTag_, d0, MillePedeFileConverter_cfg::e, PhotonTkIsolation::getIso(), qcdUeDQM_cfi::lip, displacedMuons_cfi::photon, JetHT_cfg::trackCollection, trackInputTag_, DiMuonV_cfg::tracks, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by calculate().
|
staticprivate |
Definition at line 402 of file PhotonIsolationCalculator.cc.
References hgcalTestNeighbor_cfi::detector, EcalBarrel, EcalEndcap, PVValHelper::eta, JetMETHLTOfflineSource_cfi::feta, reco::CaloCluster::hitsAndFractions(), EEDetId::isNextToDBoundary(), EBDetId::isNextToEtaBoundary(), EBDetId::isNextToPhiBoundary(), EEDetId::isNextToRingBoundary(), displacedMuons_cfi::photon, and DetId::subdetId().
Referenced by calculate().
|
private |
Definition at line 98 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 111 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 102 of file PhotonIsolationCalculator.h.
Referenced by calculate(), calculateEcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 118 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 120 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 123 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 125 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 108 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 107 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 99 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 143 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 144 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 100 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 104 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 139 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 140 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 127 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 133 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 130 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 136 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 128 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 134 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 131 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 137 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 105 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 103 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 141 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 113 of file PhotonIsolationCalculator.h.
Referenced by PhotonIsolationCalculator().
|
private |
Definition at line 112 of file PhotonIsolationCalculator.h.
Referenced by PhotonIsolationCalculator().
|
private |
Definition at line 145 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 146 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 106 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 110 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and PhotonIsolationCalculator().
|
private |
Definition at line 117 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 119 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 122 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 124 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 115 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().
|
private |
Definition at line 114 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and PhotonIsolationCalculator().