#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) |
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) |
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 188 of file PhotonIsolationCalculator.cc.
References calculateEcalRecHitIso(), calculateHcalTowerIso(), calculateTrackIso(), classify(), ExpressReco_HICollisions_FallBack::detector, EcalBarrel, EcalEndcap, ecalIsoBarrelRadiusA_, ecalIsoBarrelRadiusB_, ecalIsoEndcapRadiusA_, ecalIsoEndcapRadiusB_, reco::Photon::IsolationVariables::ecalRecHitSumEt, reco::Photon::IsolationVariables::hcalDepth1TowerSumEt, reco::Photon::IsolationVariables::hcalDepth2TowerSumEt, hcalIsoBarrelRadiusA_, hcalIsoBarrelRadiusB_, hcalIsoEndcapRadiusA_, hcalIsoEndcapRadiusB_, reco::Photon::IsolationVariables::hcalTowerSumEt, 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 527 of file PhotonIsolationCalculator.cc.
References barrelecalCollection_, barrelecalProducer_, EgammaRecHitIsolation::doSpikeRemoval(), DetId::Ecal, endcapecalCollection_, endcapecalProducer_, edm::EventSetup::get(), edm::Event::getByLabel(), EgammaRecHitIsolation::getEtSum(), edm::Handle< T >::product(), edm::ESHandle< class >::product(), EgammaRecHitIsolation::setUseNumCrystals(), EgammaRecHitIsolation::setVetoClustered(), severityLevelCut_, severityRecHitThreshold_, spId_, and spikeIdThreshold_.
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 598 of file PhotonIsolationCalculator.cc.
References edm::Event::getByLabel(), EgammaTowerIsolation::getTowerEtSum(), hcalCollection_, hcalProducer_, and edm::Handle< T >::product().
Referenced by calculate().
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 483 of file PhotonIsolationCalculator.cc.
References beamSpotProducerTag_, cmsDriverOptions::counter, edm::Event::getByLabel(), PhotonTkIsolation::getNumberTracks(), PhotonTkIsolation::getPtTracks(), edm::HandleBase::isValid(), edm::Handle< T >::product(), ExpressReco_HICollisions_FallBack::trackCollection, 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 431 of file PhotonIsolationCalculator.cc.
References ExpressReco_HICollisions_FallBack::detector, 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 | ) |
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_, barrelecalProducer_, beamSpotProducerTag_, ecalIsoBarrelRadiusA_, ecalIsoBarrelRadiusB_, ecalIsoEndcapRadiusA_, ecalIsoEndcapRadiusB_, endcapecalCollection_, endcapecalProducer_, edm::ParameterSet::getParameter(), hcalCollection_, hcalIsoBarrelRadiusA_, hcalIsoBarrelRadiusB_, hcalIsoEndcapRadiusA_, hcalIsoEndcapRadiusB_, hcalProducer_, EcalSeverityLevelAlgo::kE1OverE9, EcalSeverityLevelAlgo::kSwissCross, EcalSeverityLevelAlgo::kSwissCrossBordersIncluded, moduleEtaBoundary_, modulePhiBoundary_, severityLevelCut_, severityRecHitThreshold_, python.multivaluedict::sort(), spId_, spikeIdThreshold_, trackInputTag_, trkIsoBarrelRadiusA_, trkIsoBarrelRadiusB_, trkIsoEndcapRadiusA_, trkIsoEndcapRadiusB_, useNumCrystals_, v_chstatus_, and vetoClusteredEcalHits_.
Referenced by PhotonProducer::beginRun().
|
protected |
Definition at line 75 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 76 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 84 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
protected |
Definition at line 91 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 94 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
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 77 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 78 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 79 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalTowerIso(), and setup().
|
protected |
Definition at line 92 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 95 of file PhotonIsolationCalculator.h.
Referenced by calculate(), 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 80 of file PhotonIsolationCalculator.h.
Referenced by calculateHcalTowerIso(), and setup().
|
protected |
Definition at line 122 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 149 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 121 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 148 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 86 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
protected |
Definition at line 85 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
protected |
Definition at line 105 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 132 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 106 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 133 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 107 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 134 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 108 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 135 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 109 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 136 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 113 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 140 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 114 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 141 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 115 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 142 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 116 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 143 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 117 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 144 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 118 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 145 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 110 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 137 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 111 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 138 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 112 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 139 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 126 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 127 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 129 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 128 of file PhotonIsolationCalculator.h.
Referenced by calculateEcalRecHitIso(), and setup().
|
protected |
Definition at line 120 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 147 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 119 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 146 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 124 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 151 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 82 of file PhotonIsolationCalculator.h.
Referenced by calculateTrackIso(), and setup().
|
protected |
Definition at line 123 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 150 of file PhotonIsolationCalculator.h.
Referenced by calculate().
|
protected |
Definition at line 90 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 93 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 97 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 100 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 88 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().
|
protected |
Definition at line 130 of file PhotonIsolationCalculator.h.
Referenced by setup().
|
protected |
Definition at line 87 of file PhotonIsolationCalculator.h.
Referenced by calculate(), and setup().