#include <GEDPhotonProducer.h>
Classes | |
class | RecoStepInfo |
Public Member Functions | |
void | beginRun (edm::Run const &r, edm::EventSetup const &es) final |
void | endRun (edm::Run const &, edm::EventSetup const &) final |
GEDPhotonProducer (const edm::ParameterSet &ps) | |
void | produce (edm::Event &evt, const edm::EventSetup &es) override |
~GEDPhotonProducer () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
Private Member Functions | |
void | fillPhotonCollection (edm::Event &evt, edm::EventSetup const &es, const edm::Handle< reco::PhotonCoreCollection > &photonCoreHandle, const CaloTopology *topology, const EcalRecHitCollection *ecalBarrelHits, const EcalRecHitCollection *ecalEndcapHits, const EcalRecHitCollection *preshowerHits, const edm::Handle< CaloTowerCollection > &hcalTowersHandle, const reco::VertexCollection &pvVertices, reco::PhotonCollection &outputCollection, int &iSC) |
void | fillPhotonCollection (edm::Event &evt, edm::EventSetup const &es, const edm::Handle< reco::PhotonCollection > &photonHandle, const edm::Handle< reco::PFCandidateCollection > pfCandidateHandle, const edm::Handle< reco::PFCandidateCollection > pfEGCandidateHandle, edm::ValueMap< reco::PhotonRef > pfEGCandToPhotonMap, edm::Handle< reco::VertexCollection > &pvVertices, reco::PhotonCollection &outputCollection, int &iSC, const edm::Handle< edm::ValueMap< float >> &chargedHadrons, const edm::Handle< edm::ValueMap< float >> &neutralHadrons, const edm::Handle< edm::ValueMap< float >> &photons, const edm::Handle< edm::ValueMap< float >> &chargedHadronsWorstVtx, const edm::Handle< edm::ValueMap< float >> &chargedHadronsWorstVtxGeomVeto, const edm::Handle< edm::ValueMap< float >> &chargedHadronsPFPV, const edm::Handle< edm::ValueMap< float >> &pfEcalClusters, const edm::Handle< edm::ValueMap< float >> &pfHcalClusters) |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Definition at line 42 of file GEDPhotonProducer.h.
GEDPhotonProducer::GEDPhotonProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 68 of file GEDPhotonProducer.cc.
References barrelEcalHits_, candidateP4type_, checkHcalStatus_, conf_, endcapEcalHits_, edm::ParameterSet::exists(), flagsexclEB_, flagsexclEE_, edm::ParameterSet::getParameter(), hcalTowers_, highEt_, hOverEConeSize_, GEDPhotonProducer::RecoStepInfo::isFinal(), gedPhotons_cfi::isolationSumsCalculatorSet, edm::EDGetTokenT< T >::isUninitialized(), minR9Barrel_, minR9Endcap_, gedPhotons_cfi::mipVariableSet, dataset::name, pfCandidates_, pfEgammaCandidates_, gedPhotonSequence_cff::pfIsolCfg, phoChargedIsolationToken_, phoChargedPFPVIsoToken_, phoChargedWorstVtxGeomVetoIsoToken_, phoChargedWorstVtxIsoToken_, phoNeutralHadronIsolationToken_, phoPFECALClusIsolationToken_, phoPFHCALClusIsolationToken_, phoPhotonIsolationToken_, photonCollection_, photonCoreProducerT_, photonProducer_, photonProducerT_, cleanAndMergeSuperClusters_cfi::posCalcParameters, posCalculator_, preselCutValuesBarrel_, preselCutValuesEndcap_, preshowerHits_, recoStep_, runMIPTagger_, PhotonIsolationCalculator::setup(), PhotonMIPHaloTagger::setup(), severitiesexclEB_, severitiesexclEE_, AlCaHLTBitMon_QueryRunRegistry::string, thePhotonEnergyCorrector_, thePhotonIsolationCalculator_, thePhotonMIPHaloTagger_, usePrimaryVertex_, valueMapPFCandPhoton_, and vertexProducer_.
|
override |
Definition at line 239 of file GEDPhotonProducer.cc.
References thePhotonEnergyCorrector_, thePhotonIsolationCalculator_, and thePhotonMIPHaloTagger_.
|
final |
Definition at line 249 of file GEDPhotonProducer.cc.
References init, GEDPhotonProducer::RecoStepInfo::isFinal(), recoStep_, and thePhotonEnergyCorrector_.
|
final |
Definition at line 257 of file GEDPhotonProducer.cc.
|
private |
fill shower shape block
fill extra shower shapes
fill full5x5 shower shape block
fill extra full5x5 shower shapes
get ecal photon specific corrected energy plus values from regressions and store them in the Photon
Pre-selection loose isolation cuts
Definition at line 501 of file GEDPhotonProducer.cc.
References Cluster2ndMoments::alpha, barrelEcalHits_, PhotonIsolationCalculator::calculate(), PhotonEnergyCorrector::calculate(), candidateP4type_, checkHcalStatus_, EcalClusterToolsT< noZS >::cluster2ndMoments(), EcalClusterToolsT< noZS >::covariances(), EcalClusterToolsT< noZS >::e1x3(), reco::Photon::ShowerShape::e1x3, EcalClusterToolsT< noZS >::e1x5(), reco::Photon::ShowerShape::e1x5, EcalClusterToolsT< noZS >::e2nd(), reco::Photon::ShowerShape::e2nd, EcalClusterToolsT< noZS >::e2x2(), reco::Photon::ShowerShape::e2x2, reco::Photon::ShowerShape::e2x5, EcalClusterToolsT< noZS >::e2x5Bottom(), reco::Photon::ShowerShape::e2x5Bottom, EcalClusterToolsT< noZS >::e2x5Left(), reco::Photon::ShowerShape::e2x5Left, EcalClusterToolsT< noZS >::e2x5Max(), reco::Photon::ShowerShape::e2x5Max, EcalClusterToolsT< noZS >::e2x5Right(), reco::Photon::ShowerShape::e2x5Right, EcalClusterToolsT< noZS >::e2x5Top(), reco::Photon::ShowerShape::e2x5Top, EcalClusterToolsT< noZS >::e3x3(), reco::Photon::ShowerShape::e3x3, EcalClusterToolsT< noZS >::e5x5(), reco::Photon::ShowerShape::e5x5, EcalClusterToolsT< noZS >::eBottom(), reco::Photon::ShowerShape::eBottom, reco::Photon::ecal_photons, EcalBarrel, EcalEndcap, ecalRecalibRecHit_cfi::ecalRecHit, reco::Photon::ShowerShape::effSigmaRR, EcalClusterToolsT< noZS >::eLeft(), reco::Photon::ShowerShape::eLeft, photonPostprocessing_cfi::eMax, EcalClusterToolsT< noZS >::eMax(), edm::SortedCollection< T, SORT >::end(), endcapEcalHits_, EcalClusterToolsT< noZS >::eRight(), reco::Photon::ShowerShape::eRight, EcalClusterToolsT< noZS >::eTop(), reco::Photon::ShowerShape::eTop, f, edm::SortedCollection< T, SORT >::find(), flagsexclEB_, flagsexclEE_, particleFlow_cfi::full5x5_sigmaIetaIeta, geometry, EgammaHadTower::getDepth1HcalESum(), EgammaHadTower::getDepth2HcalESum(), EgammaTowerIsolation::getTowerESum(), EgammaHadTower::hasActiveHcal(), reco::Photon::ShowerShape::hcalDepth1OverEcal, reco::Photon::ShowerShape::hcalDepth1OverEcalBc, reco::Photon::ShowerShape::hcalDepth2OverEcal, reco::Photon::ShowerShape::hcalDepth2OverEcalBc, hcalTowers_, reco::Photon::ShowerShape::hcalTowersBehindClusters, highEt_, hfClusterShapes_cfi::hits, hOverEConeSize_, createfilelist::int, reco::Photon::ShowerShape::invalidHcal, reco::Photon::FiducialFlags::isEE, edm::isFinite(), EcalTools::isHGCalDet(), edm::Ref< C, T, F >::isNonnull(), reco::Photon::SaturationInfo::isSeedSaturated, EcalClusterToolsT< noZS >::localCovariances(), reco::Photon::ShowerShape::maxEnergyXtal, reco::Photon::SaturationInfo::nSaturatedXtals, nullptr, p4, preselCutValuesBarrel_, preselCutValuesEndcap_, preshowerHits_, edm::Handle< T >::product(), edm::ESHandle< T >::product(), ptFast(), reco::Photon::regression1, reco::Photon::regression2, runMIPTagger_, reco::CaloCluster::seed(), EgammaHadTower::setTowerCollection(), severitiesexclEB_, severitiesexclEE_, electronIdCutBased_cfi::sigmaEtaEta, reco::Photon::ShowerShape::sigmaEtaEta, reco::Photon::ShowerShape::sigmaIetaIeta, reco::Photon::ShowerShape::sigmaIetaIphi, reco::Photon::ShowerShape::sigmaIphiIphi, Cluster2ndMoments::sMaj, reco::Photon::ShowerShape::smAlpha, Cluster2ndMoments::sMin, reco::Photon::ShowerShape::smMajor, reco::Photon::ShowerShape::smMinor, mathSSE::sqrt(), theCaloGeom_, thePhotonEnergyCorrector_, thePhotonIsolationCalculator_, thePhotonMIPHaloTagger_, EgammaHadTower::towersOf(), and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by produce().
|
private |
Definition at line 832 of file GEDPhotonProducer.cc.
References PhotonEnergyCorrector::calculate(), candidateP4type_, reco::Photon::PflowIsolationVariables::chargedHadronIso, reco::Photon::PflowIsolationVariables::chargedHadronPFPVIso, reco::Photon::PflowIsolationVariables::chargedHadronWorstVtxGeomVetoIso, reco::Photon::PflowIsolationVariables::chargedHadronWorstVtxIso, reco::Photon::ecal_photons, EcalBarrel, EcalEndcap, EcalTools::isHGCalDet(), edm::Ref< C, T, F >::isNonnull(), GEDPhotonProducer::RecoStepInfo::isOOT(), edm::EDGetTokenT< T >::isUninitialized(), reco::Photon::PflowIsolationVariables::neutralHadronIso, reco::Photon::p4(), phoPFECALClusIsolationToken_, phoPFHCALClusIsolationToken_, reco::Photon::PflowIsolationVariables::photonIso, preselCutValuesBarrel_, preselCutValuesEndcap_, ptFast(), recoStep_, reco::Photon::regression1, reco::Photon::regression2, reco::Photon::setCandidateP4type(), reco::Photon::setP4(), reco::Photon::setPflowIDVariables(), reco::Photon::setPflowIsolationVariables(), reco::Photon::PflowIsolationVariables::sumEcalClusterEt, reco::Photon::PflowIsolationVariables::sumHcalClusterEt, and thePhotonEnergyCorrector_.
|
override |
Definition at line 261 of file GEDPhotonProducer.cc.
References barrelEcalHits_, particleFlowSuperClusterOOTECAL_cff::barrelRecHits, endcapEcalHits_, particleFlowSuperClusterOOTECAL_cff::endcapRecHits, Exception, objects.autophobj::filler, fillPhotonCollection(), PhotonEnergyCorrector::gedRegression(), edm::EventSetup::get(), edm::Event::getByToken(), hcalTowers_, PhotonEnergyCorrector::init(), GEDPhotonProducer::RecoStepInfo::isFinal(), GEDPhotonProducer::RecoStepInfo::isOOT(), edm::EDGetTokenT< T >::isUninitialized(), edm::HandleBase::isValid(), edm::InputTag::label(), eostools::move(), gedPhotons_cfi::outputPhotonCollection, pfCandidates_, pfEgammaCandidates_, phoChargedIsolationToken_, phoChargedPFPVIsoToken_, phoChargedWorstVtxGeomVetoIsoToken_, phoChargedWorstVtxIsoToken_, phoNeutralHadronIsolationToken_, phoPFECALClusIsolationToken_, phoPFHCALClusIsolationToken_, phoPhotonIsolationToken_, photonCollection_, photonCoreProducerT_, photonProducer_, photonProducerT_, preshowerHits_, edm::Handle< T >::product(), edm::ESHandle< T >::product(), edm::Event::put(), recoStep_, theCaloGeom_, theCaloTopo_, thePhotonEnergyCorrector_, ecaldqm::topology(), usePrimaryVertex_, valueMapPFCandPhoton_, MuonErrorMatrixValues_cff::values, particleFlowSuperClusterECAL_cfi::vertexCollection, and vertexProducer_.
|
private |
Definition at line 106 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 169 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 171 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 153 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 127 of file GEDPhotonProducer.h.
|
private |
Definition at line 126 of file GEDPhotonProducer.h.
|
private |
Definition at line 107 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 167 of file GEDPhotonProducer.h.
|
private |
Definition at line 135 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 136 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 111 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 144 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 141 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 142 of file GEDPhotonProducer.h.
|
private |
Definition at line 145 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 146 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 143 of file GEDPhotonProducer.h.
|
private |
Definition at line 114 of file GEDPhotonProducer.h.
|
private |
Definition at line 110 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 109 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 116 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 121 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 120 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 119 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 117 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 123 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 124 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 118 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 101 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 104 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 102 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 105 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 154 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 164 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 165 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 108 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 150 of file GEDPhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 147 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 137 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 138 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 156 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 157 of file GEDPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 168 of file GEDPhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), GEDPhotonProducer(), produce(), and ~GEDPhotonProducer().
|
private |
Definition at line 130 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and ~GEDPhotonProducer().
|
private |
Definition at line 162 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and ~GEDPhotonProducer().
|
private |
Definition at line 152 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 149 of file GEDPhotonProducer.h.
|
private |
Definition at line 159 of file GEDPhotonProducer.h.
|
private |
Definition at line 128 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 112 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().