#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 eMin, signed int depth) 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 |
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 19 of file PhotonIsolationCalculator.h.
|
inline |
Definition at line 21 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 180 of file PhotonIsolationCalculator.cc.
References calculateEcalRecHitIso(), calculateHcalTowerIso(), calculateTrackIso(), classify(), hgcalTestNeighbor_cfi::detector, MillePedeFileConverter_cfg::e, 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::CaloCluster::hitsAndFractions(), 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 PhotonProducer::fillPhotonCollection(), and GEDPhotonProducer::fillPhotonCollection().
|
private |
Definition at line 605 of file PhotonIsolationCalculator.cc.
References barrelecalCollection_, EgammaRecHitIsolation::doFlagChecks(), EgammaRecHitIsolation::doSeverityChecks(), DetId::Ecal, photonAnalyzer_cfi::eMin, endcapecalCollection_, photonAnalyzer_cfi::etMin, flagsEB_, flagsEE_, edm::EventSetup::get(), get, EgammaRecHitIsolation::getEtSum(), iEvent, muons2muons_cfi::photon, edm::Handle< T >::product(), edm::ESHandle< T >::product(), EgammaRecHitIsolation::setUseNumCrystals(), EgammaRecHitIsolation::setVetoClustered(), severityExclEB_, severityExclEE_, and conversionTrackCandidates_cfi::vetoClusteredHits.
Referenced by calculate().
|
private |
Definition at line 680 of file PhotonIsolationCalculator.cc.
References LEDCalibrationChannels::depth, photonAnalyzer_cfi::eMin, EgammaTowerIsolation::getTowerEtSum(), hcalCollection_, iEvent, edm::EDGetToken::isUninitialized(), muons2muons_cfi::photon, and edm::Handle< T >::product().
|
private |
Definition at line 655 of file PhotonIsolationCalculator.cc.
References LEDCalibrationChannels::depth, photonAnalyzer_cfi::eMin, EgammaTowerIsolation::getTowerEtSum(), hcalCollection_, iEvent, edm::EDGetToken::isUninitialized(), muons2muons_cfi::photon, and edm::Handle< T >::product().
Referenced by calculate().
|
private |
Definition at line 566 of file PhotonIsolationCalculator.cc.
References beamSpotProducerTag_, d0, MillePedeFileConverter_cfg::e, PhotonTkIsolation::getIso(), qcdUeDQM_cfi::lip, muons2muons_cfi::photon, duplicaterechits_cfi::trackCollection, trackInputTag_, PDWG_EXOHSCP_cff::tracks, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by calculate().
|
staticprivate |
Definition at line 521 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(), muons2muons_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 44 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(), and PhotonProducer::PhotonProducer().
|
private |
Definition at line 85 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 90 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
private |
Definition at line 97 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 100 of file PhotonIsolationCalculator.h.
Referenced by calculate(), 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 calculate(), and setup().
|
private |
Definition at line 86 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 110 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 111 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 87 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalTowerIso(), and setup().
|
private |
Definition at line 98 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 105 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 108 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 92 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
private |
Definition at line 91 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
private |
Definition at line 112 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 113 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 89 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
private |
Definition at line 96 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 99 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 106 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 94 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 93 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().