#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 |
PhotonIsolationCalculator () | |
void | setup (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 () | |
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 |
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 31 of file PhotonIsolationCalculator.h.
|
inline |
Definition at line 33 of file PhotonIsolationCalculator.h.
|
inline |
Definition at line 35 of file PhotonIsolationCalculator.h.
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 |
Definition at line 145 of file PhotonIsolationCalculator.cc.
References calculateEcalRecHitIso(), calculateTrackIso(), caloGeometryToken_, classify(), LEDCalibrationChannels::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(), l1ctLayer2EG_cff::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 484 of file PhotonIsolationCalculator.cc.
References barrelecalCollection_, caloGeometryToken_, EgammaRecHitIsolation::doFlagChecks(), EgammaRecHitIsolation::doSeverityChecks(), DetId::Ecal, 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_, and severityExclEE_.
Referenced by calculate().
|
private |
Definition at line 532 of file PhotonIsolationCalculator.cc.
References LEDCalibrationChannels::depth, ecalDrivenElectronSeeds_cfi::hbheRecHits, hcalIsoEThresHB_, hcalIsoEThresHE_, EgammaHcalIsolation::isBehindClusterSeed, maxHcalSeverity_, displacedMuons_cfi::photon, and EgammaHcalIsolation::withinConeAroundCluster.
|
private |
Definition at line 445 of file PhotonIsolationCalculator.cc.
References beamSpotProducerTag_, d0, MillePedeFileConverter_cfg::e, PhotonTkIsolation::getIso(), qcdUeDQM_cfi::lip, displacedMuons_cfi::photon, JetHT_cfg::trackCollection, trackInputTag_, tracks, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by calculate().
|
staticprivate |
Definition at line 400 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().
void PhotonIsolationCalculator::setup | ( | 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_, 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_.
Referenced by PhotonProducer::PhotonProducer().
|
private |
Definition at line 96 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 108 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
private |
Definition at line 100 of file PhotonIsolationCalculator.h.
Referenced by calculate(), calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 115 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 117 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 120 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 122 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 105 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 97 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 140 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 141 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 98 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 102 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 136 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalRecHitIso(), and setup().
|
private |
Definition at line 137 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalRecHitIso(), and setup().
|
private |
Definition at line 124 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 130 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 127 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 133 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 125 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 131 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 128 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 134 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 103 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 101 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 138 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalRecHitIso(), and setup().
|
private |
Definition at line 110 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
private |
Definition at line 109 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
private |
Definition at line 142 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 143 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 104 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 107 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
private |
Definition at line 114 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 116 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 119 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 121 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 112 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 111 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().