#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) |
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) |
double | calculateHcalTowerIso (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double RConeInner, double eMin, signed int depth) |
double | calculateHcalTowerIso (const reco::Photon *photon, const edm::Event &iEvent, const edm::EventSetup &iSetup, double RCone, double eMin, signed int depth) |
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) |
void | classify (const reco::Photon *photon, bool &isEBPho, bool &isEEPho, bool &isEBEtaGap, bool &isEBPhiGap, bool &isEERingGap, bool &isEEDeeGap, bool &isEBEEGap) |
PhotonIsolationCalculator () | |
void | setup (const edm::ParameterSet &conf, std::vector< int > flagsEB_, std::vector< int > flagsEE_, std::vector< int > severitiesEB_, std::vector< int > severitiesEE_) |
virtual | ~PhotonIsolationCalculator () |
Determine and Set quality information on Photon Objects
Definition at line 14 of file PhotonIsolationCalculator.h.
|
inline |
Definition at line 18 of file PhotonIsolationCalculator.h.
|
inlinevirtual |
Definition at line 20 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 | ||
) |
Definition at line 167 of file PhotonIsolationCalculator.cc.
References calculateEcalRecHitIso(), calculateHcalTowerIso(), calculateTrackIso(), classify(), EcalBarrel, EcalEndcap, 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, isolationtrackEtaSliceA_, isolationtrackEtaSliceB_, isolationtrackThresholdA_, isolationtrackThresholdB_, reco::Photon::IsolationVariables::nTrkHollowCone, reco::Photon::IsolationVariables::nTrkSolidCone, photonEcalRecHitConeInnerRadiusA_, photonEcalRecHitConeInnerRadiusB_, photonEcalRecHitConeOuterRadiusA_, photonEcalRecHitConeOuterRadiusB_, photonEcalRecHitEtaSliceA_, photonEcalRecHitEtaSliceB_, photonEcalRecHitThreshEA_, photonEcalRecHitThreshEB_, photonEcalRecHitThreshEtA_, photonEcalRecHitThreshEtB_, photonHcalDepth1TowerConeInnerRadiusA_, photonHcalDepth1TowerConeInnerRadiusB_, photonHcalDepth1TowerConeOuterRadiusA_, photonHcalDepth1TowerConeOuterRadiusB_, photonHcalDepth1TowerThreshEA_, photonHcalDepth1TowerThreshEB_, photonHcalDepth2TowerConeInnerRadiusA_, photonHcalDepth2TowerConeInnerRadiusB_, photonHcalDepth2TowerConeOuterRadiusA_, photonHcalDepth2TowerConeOuterRadiusB_, photonHcalDepth2TowerThreshEA_, photonHcalDepth2TowerThreshEB_, photonHcalTowerConeInnerRadiusA_, photonHcalTowerConeInnerRadiusB_, photonHcalTowerConeOuterRadiusA_, photonHcalTowerConeOuterRadiusB_, photonHcalTowerThreshEA_, photonHcalTowerThreshEB_, DetId::subdetId(), reco::Photon::superCluster(), trackConeInnerRadiusA_, trackConeInnerRadiusB_, trackConeOuterRadiusA_, trackConeOuterRadiusB_, trackD0RadiusA_, trackD0RadiusB_, trackLipRadiusA_, trackLipRadiusB_, trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, reco::Photon::IsolationVariables::trkSumPtHollowCone, reco::Photon::IsolationVariables::trkSumPtSolidCone, useNumCrystals_, and vetoClusteredEcalHits_.
double PhotonIsolationCalculator::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 | ||
) |
Definition at line 535 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().
double PhotonIsolationCalculator::calculateHcalTowerIso | ( | const reco::Photon * | photon, |
const edm::Event & | iEvent, | ||
const edm::EventSetup & | iSetup, | ||
double | RCone, | ||
double | RConeInner, | ||
double | eMin, | ||
signed int | depth | ||
) |
Definition at line 607 of file PhotonIsolationCalculator.cc.
References edm::Event::getByLabel(), EgammaTowerIsolation::getTowerEtSum(), hcalCollection_, and edm::Handle< T >::product().
Referenced by calculate().
double PhotonIsolationCalculator::calculateHcalTowerIso | ( | const reco::Photon * | photon, |
const edm::Event & | iEvent, | ||
const edm::EventSetup & | iSetup, | ||
double | RCone, | ||
double | eMin, | ||
signed int | depth | ||
) |
Definition at line 639 of file PhotonIsolationCalculator.cc.
References edm::Event::getByLabel(), EgammaTowerIsolation::getTowerEtSum(), hcalCollection_, reco::Photon::hcalTowersBehindClusters(), and edm::Handle< T >::product().
void PhotonIsolationCalculator::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 |
||
) |
Definition at line 491 of file PhotonIsolationCalculator.cc.
References beamSpotProducerTag_, edm::Event::getByLabel(), PhotonTkIsolation::getNumberTracks(), PhotonTkIsolation::getPtTracks(), edm::HandleBase::isValid(), edm::Handle< T >::product(), trackInputTag_, testEve_cfg::tracks, reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by calculate().
void PhotonIsolationCalculator::classify | ( | const reco::Photon * | photon, |
bool & | isEBPho, | ||
bool & | isEEPho, | ||
bool & | isEBEtaGap, | ||
bool & | isEBPhiGap, | ||
bool & | isEERingGap, | ||
bool & | isEEDeeGap, | ||
bool & | isEBEEGap | ||
) |
Definition at line 439 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 > | flagsEB_, | ||
std::vector< int > | flagsEE_, | ||
std::vector< int > | severitiesEB_, | ||
std::vector< int > | 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_, moduleEtaBoundary_, modulePhiBoundary_, severityExclEB_, severityExclEE_, trackInputTag_, trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, useNumCrystals_, and vetoClusteredEcalHits_.
Referenced by PhotonProducer::beginRun().
|
protected |
Definition at line 87 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 92 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
protected |
Definition at line 99 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 102 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 106 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 109 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 88 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 134 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 135 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 89 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalTowerIso(), and setup().
|
protected |
Definition at line 100 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 103 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 107 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 110 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 130 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 156 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 129 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 155 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 94 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
protected |
Definition at line 93 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
protected |
Definition at line 113 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 139 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 114 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 140 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 115 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 141 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 116 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 142 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 117 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 143 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 121 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 147 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 122 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 148 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 123 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 149 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 124 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 150 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 125 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 151 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 126 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 152 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 118 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 144 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 119 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 145 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 120 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 146 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 136 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 137 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 128 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 154 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 127 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 153 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 132 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 158 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 91 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
protected |
Definition at line 131 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 157 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 98 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 101 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 105 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 108 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 96 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 95 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().