#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_) |
~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 dso_internal |
double | calculateHcalTowerIso (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double eMin, signed int depth) const dso_internal |
double | calculateHcalTowerIso (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double eMin, signed int depth) const dso_internal |
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 dso_internal |
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) dso_internal |
Private Attributes | |
edm::InputTag | barrelecalCollection_ |
edm::InputTag | beamSpotProducerTag_ |
double | ecalIsoBarrelRadiusA_ [5] |
double | ecalIsoBarrelRadiusB_ [5] |
double | ecalIsoEndcapRadiusA_ [5] |
double | ecalIsoEndcapRadiusB_ [5] |
edm::InputTag | endcapecalCollection_ |
std::vector< int > | flagsEB_ |
std::vector< int > | flagsEE_ |
edm::InputTag | 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::InputTag | 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.
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(), 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_.
|
private |
Definition at line 588 of file PhotonIsolationCalculator.cc.
References barrelecalCollection_, EgammaRecHitIsolation::doFlagChecks(), EgammaRecHitIsolation::doSeverityChecks(), DetId::Ecal, endcapecalCollection_, flagsEB_, flagsEE_, edm::EventSetup::get(), edm::Event::getByLabel(), EgammaRecHitIsolation::getEtSum(), edm::Handle< T >::product(), edm::ESHandle< class >::product(), EgammaRecHitIsolation::setUseNumCrystals(), EgammaRecHitIsolation::setVetoClustered(), severityExclEB_, and severityExclEE_.
Referenced by calculate().
|
private |
Definition at line 658 of file PhotonIsolationCalculator.cc.
References edm::Event::getByLabel(), EgammaTowerIsolation::getTowerEtSum(), hcalCollection_, and edm::Handle< T >::product().
Referenced by calculate().
|
private |
Definition at line 690 of file PhotonIsolationCalculator.cc.
References edm::Event::getByLabel(), EgammaTowerIsolation::getTowerEtSum(), hcalCollection_, reco::Photon::hcalTowersBehindClusters(), and edm::Handle< T >::product().
|
private |
Definition at line 547 of file PhotonIsolationCalculator.cc.
References beamSpotProducerTag_, edm::Event::getByLabel(), PhotonTkIsolation::getIso(), edm::HandleBase::isValid(), edm::Handle< T >::product(), trackInputTag_, testEve_cfg::tracks, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by calculate().
|
staticprivate |
Definition at line 495 of file PhotonIsolationCalculator.cc.
References EcalBarrel, EcalEndcap, eta(), reco::CaloCluster::hitsAndFractions(), EEDetId::isNextToDBoundary(), EBDetId::isNextToEtaBoundary(), EBDetId::isNextToPhiBoundary(), EEDetId::isNextToRingBoundary(), DetId::subdetId(), reco::Photon::superCluster(), and funct::true.
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_ | ||
) |
Isolation parameters for barrel and for two different cone sizes
Isolation parameters for Endcap and for two different cone sizes
Definition at line 46 of file PhotonIsolationCalculator.cc.
References barrelecalCollection_, beamSpotProducerTag_, ecalIsoBarrelRadiusA_, ecalIsoBarrelRadiusB_, ecalIsoEndcapRadiusA_, ecalIsoEndcapRadiusB_, endcapecalCollection_, flagsEB_, flagsEE_, edm::ParameterSet::getParameter(), hcalCollection_, hcalIsoBarrelRadiusA_, hcalIsoBarrelRadiusB_, hcalIsoEndcapRadiusA_, hcalIsoEndcapRadiusB_, i, moduleEtaBoundary_, modulePhiBoundary_, severityExclEB_, severityExclEE_, trackInputTag_, trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, useNumCrystals_, and vetoClusteredEcalHits_.
Referenced by PhotonProducer::beginRun(), and GEDPhotonProducer::beginRun().
|
private |
Definition at line 97 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 98 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 123 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 124 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 99 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalTowerIso(), 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 104 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
private |
Definition at line 103 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
private |
Definition at line 125 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 126 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
private |
Definition at line 101 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
private |
Definition at line 108 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 111 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 115 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 106 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
private |
Definition at line 105 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().