#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 |
double | calculateHcalTowerIso (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double eMin, signed int depth) const |
double | calculateHcalTowerIso (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double eMin, signed 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) |
Private Attributes | |
edm::EDGetToken | barrelecalCollection_ |
edm::EDGetToken | beamSpotProducerTag_ |
double | ecalIsoBarrelRadiusA_ [5] |
double | ecalIsoBarrelRadiusB_ [5] |
double | ecalIsoEndcapRadiusA_ [5] |
double | ecalIsoEndcapRadiusB_ [5] |
edm::EDGetToken | endcapecalCollection_ |
std::vector< int > | flagsEB_ |
std::vector< int > | flagsEE_ |
edm::EDGetToken | hcalCollection_ |
double | hcalIsoBarrelRadiusA_ [9] |
double | hcalIsoBarrelRadiusB_ [9] |
double | hcalIsoEndcapRadiusA_ [9] |
double | hcalIsoEndcapRadiusB_ [9] |
std::vector< double > | moduleEtaBoundary_ |
double | modulePhiBoundary_ |
std::vector< int > | severityExclEB_ |
std::vector< int > | severityExclEE_ |
edm::EDGetToken | trackInputTag_ |
double | trkIsoBarrelRadiusA_ [6] |
double | trkIsoBarrelRadiusB_ [6] |
double | trkIsoEndcapRadiusA_ [6] |
double | trkIsoEndcapRadiusB_ [6] |
bool | useNumCrystals_ |
bool | vetoClusteredEcalHits_ |
Determine and Set quality information on Photon Objects
Definition at line 17 of file PhotonIsolationCalculator.h.
|
inline |
Definition at line 21 of file PhotonIsolationCalculator.h.
|
inline |
Definition at line 23 of file PhotonIsolationCalculator.h.
References calculate(), calculateEcalRecHitIso(), calculateHcalTowerIso(), calculateTrackIso(), classify(), allConversions_cfi::d0, egammaForCoreTracking_cff::depth, dso_internal, MillePedeFileConverter_cfg::e, photonPostprocessing_cfi::eMin, btagDijet_cfi::etMin, flagsEB_, flagsEE_, iEvent, btvTracks_cfi::lip, muons2muons_cfi::photon, setup(), gedGsfElectrons_cfi::useNumCrystals, and conversionTrackCandidates_cfi::vetoClusteredHits.
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 182 of file PhotonIsolationCalculator.cc.
References calculateEcalRecHitIso(), calculateHcalTowerIso(), calculateTrackIso(), classify(), gamEcalExtractorBlocks_cff::detector, EcalBarrel, ecalIsoBarrelRadiusA_, ecalIsoBarrelRadiusB_, ecalIsoEndcapRadiusA_, ecalIsoEndcapRadiusB_, reco::Photon::IsolationVariables::ecalRecHitSumEt, reco::Photon::IsolationVariables::hcalDepth1TowerSumEt, reco::Photon::IsolationVariables::hcalDepth1TowerSumEtBc, reco::Photon::IsolationVariables::hcalDepth2TowerSumEt, reco::Photon::IsolationVariables::hcalDepth2TowerSumEtBc, hcalIsoBarrelRadiusA_, hcalIsoBarrelRadiusB_, hcalIsoEndcapRadiusA_, hcalIsoEndcapRadiusB_, reco::Photon::IsolationVariables::hcalTowerSumEt, reco::Photon::IsolationVariables::hcalTowerSumEtBc, 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, DetId::subdetId(), reco::Photon::superCluster(), trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, reco::Photon::IsolationVariables::trkSumPtHollowCone, reco::Photon::IsolationVariables::trkSumPtSolidCone, useNumCrystals_, and vetoClusteredEcalHits_.
Referenced by GEDPhotonProducer::fillPhotonCollection(), and ~PhotonIsolationCalculator().
|
private |
Definition at line 590 of file PhotonIsolationCalculator.cc.
References barrelecalCollection_, EgammaRecHitIsolation::doFlagChecks(), EgammaRecHitIsolation::doSeverityChecks(), DetId::Ecal, endcapecalCollection_, flagsEB_, flagsEE_, edm::EventSetup::get(), edm::Event::getByToken(), EgammaRecHitIsolation::getEtSum(), edm::Handle< T >::product(), edm::ESHandle< T >::product(), EgammaRecHitIsolation::setUseNumCrystals(), EgammaRecHitIsolation::setVetoClustered(), severityExclEB_, and severityExclEE_.
Referenced by calculate(), and ~PhotonIsolationCalculator().
|
private |
Definition at line 656 of file PhotonIsolationCalculator.cc.
References edm::Event::getByToken(), EgammaTowerIsolation::getTowerEtSum(), hcalCollection_, edm::EDGetToken::isUninitialized(), and edm::Handle< T >::product().
Referenced by calculate(), and ~PhotonIsolationCalculator().
|
private |
Definition at line 687 of file PhotonIsolationCalculator.cc.
References edm::Event::getByToken(), EgammaTowerIsolation::getTowerEtSum(), hcalCollection_, reco::Photon::hcalTowersBehindClusters(), edm::EDGetToken::isUninitialized(), and edm::Handle< T >::product().
|
private |
Definition at line 549 of file PhotonIsolationCalculator.cc.
References beamSpotProducerTag_, edm::Event::getByToken(), PhotonTkIsolation::getIso(), edm::HandleBase::isValid(), edm::Handle< T >::product(), findElectronsInSiStrips_cfi::trackCollection, trackInputTag_, l1t::tracks, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by calculate(), and ~PhotonIsolationCalculator().
|
staticprivate |
Definition at line 497 of file PhotonIsolationCalculator.cc.
References gamEcalExtractorBlocks_cff::detector, EcalBarrel, EcalEndcap, PVValHelper::eta, reco::CaloCluster::hitsAndFractions(), EEDetId::isNextToDBoundary(), EBDetId::isNextToEtaBoundary(), EBDetId::isNextToPhiBoundary(), EEDetId::isNextToRingBoundary(), DetId::subdetId(), reco::Photon::superCluster(), and funct::true.
Referenced by calculate(), and ~PhotonIsolationCalculator().
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 45 of file PhotonIsolationCalculator.cc.
References barrelecalCollection_, beamSpotProducerTag_, ecalIsoBarrelRadiusA_, ecalIsoBarrelRadiusB_, ecalIsoEndcapRadiusA_, ecalIsoEndcapRadiusB_, endcapecalCollection_, flagsEB_, flagsEE_, edm::ParameterSet::getParameter(), hcalCollection_, hcalIsoBarrelRadiusA_, hcalIsoBarrelRadiusB_, hcalIsoEndcapRadiusA_, hcalIsoEndcapRadiusB_, mps_fire::i, moduleEtaBoundary_, modulePhiBoundary_, severityExclEB_, severityExclEE_, trackInputTag_, trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, useNumCrystals_, and vetoClusteredEcalHits_.
Referenced by GEDPhotonProducer::GEDPhotonProducer(), PhotonProducer::PhotonProducer(), and ~PhotonIsolationCalculator().
|
private |
Definition at line 98 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 103 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
private |
Definition at line 110 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 113 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 99 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 124 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), setup(), and ~PhotonIsolationCalculator().
|
private |
Definition at line 125 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), setup(), and ~PhotonIsolationCalculator().
|
private |
Definition at line 100 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalTowerIso(), and setup().
|
private |
Definition at line 111 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 114 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 118 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 105 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
private |
Definition at line 104 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
private |
Definition at line 126 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 127 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 102 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
private |
Definition at line 109 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 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 107 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 106 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().