Classes | |
class | RecoStepInfo |
Public Member Functions | |
void | endStream () override |
GEDPhotonProducer (const edm::ParameterSet &ps, const CacheData *gcache) | |
void | produce (edm::Event &evt, const edm::EventSetup &es) override |
Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< CacheData > > | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Static Public Member Functions | |
static void | globalEndJob (const CacheData *) |
static std::unique_ptr< CacheData > | initializeGlobalCache (const edm::ParameterSet &) |
Private Types | |
typedef EcalPFClusterIsolation< reco::Photon > | PhotonEcalPFClusterIsolation |
typedef HcalPFClusterIsolation< reco::Photon > | PhotonHcalPFClusterIsolation |
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 ElectronHcalHelper *hcalHelperCone, const ElectronHcalHelper *hcalHelperBc, const reco::VertexCollection &pvVertices, reco::PhotonCollection &outputCollection, int &iSC, EcalPFRecHitThresholds const &thresholds) |
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, reco::VertexCollection const &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< edm::GlobalCache< CacheData > > | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Definition at line 88 of file GEDPhotonProducer.cc.
|
private |
Definition at line 234 of file GEDPhotonProducer.cc.
|
private |
Definition at line 252 of file GEDPhotonProducer.cc.
GEDPhotonProducer::GEDPhotonProducer | ( | const edm::ParameterSet & | ps, |
const CacheData * | gcache | ||
) |
Get the set for PF cluster isolation calculator
Definition at line 281 of file GEDPhotonProducer.cc.
|
override |
Definition at line 492 of file GEDPhotonProducer.cc.
References tensorflow::closeSession(), and tfSessions_.
|
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 699 of file GEDPhotonProducer.cc.
References Cluster2ndMoments::alpha, barrelEcalHits_, caloGeom_, candidateP4type_, EcalClusterToolsT< noZS >::cluster2ndMoments(), EcalClusterToolsT< noZS >::covariances(), reco::Photon::PflowIDVariables::dnn, dnnPFidEnabled_, EcalClusterToolsT< noZS >::e1x3(), reco::Photon::ShowerShape::e1x3, EgHLTOffHistBins_cfi::e1x5, EcalClusterToolsT< noZS >::e1x5(), reco::Photon::ShowerShape::e1x5, reco::Photon::ShowerShape::e2nd, EcalClusterToolsT< noZS >::e2nd(), electrons_cff::e2nd, EcalClusterToolsT< noZS >::e2x2(), reco::Photon::ShowerShape::e2x2, EgHLTOffHistBins_cfi::e2x5, reco::Photon::ShowerShape::e2x5, EcalClusterToolsT< noZS >::e2x5Bottom(), reco::Photon::ShowerShape::e2x5Bottom, electrons_cff::e2x5Bottom, EcalClusterToolsT< noZS >::e2x5Left(), reco::Photon::ShowerShape::e2x5Left, electrons_cff::e2x5Left, EcalClusterToolsT< noZS >::e2x5Max(), reco::Photon::ShowerShape::e2x5Max, EcalClusterToolsT< noZS >::e2x5Right(), reco::Photon::ShowerShape::e2x5Right, electrons_cff::e2x5Right, EcalClusterToolsT< noZS >::e2x5Top(), reco::Photon::ShowerShape::e2x5Top, electrons_cff::e2x5Top, EcalClusterToolsT< noZS >::e3x3(), reco::Photon::ShowerShape::e3x3, EcalClusterToolsT< noZS >::e5x5(), reco::Photon::ShowerShape::e5x5, electrons_cff::e5x5, EcalClusterToolsT< noZS >::eBottom(), reco::Photon::ShowerShape::eBottom, electrons_cff::eBottom, reco::Photon::ecal_photons, EcalBarrel, ecalClusterESGetTokens_, EcalEndcap, ecalisoAlgo, ecalRecHit_cfi::ecalRecHit, reco::Photon::ShowerShape::effSigmaRR, EcalClusterToolsT< noZS >::eLeft(), reco::Photon::ShowerShape::eLeft, electrons_cff::eLeft, cosmicPhotonAnalyzer_cfi::eMax, EcalClusterToolsT< noZS >::eMax(), endcapEcalHits_, EcalClusterToolsT< noZS >::eRight(), reco::Photon::ShowerShape::eRight, electrons_cff::eRight, EcalClusterToolsT< noZS >::eTop(), reco::Photon::ShowerShape::eTop, electrons_cff::eTop, flagsexclEB_, flagsexclEE_, HLT_2024v14_cff::full5x5_sigmaIetaIeta, EcalClusterLazyToolsBase::ESGetTokens::get(), edm::Event::getHandle(), ElectronHcalHelper::hasActiveHcal(), hcalCuts_, ElectronHcalHelper::hcalESum(), hcalisoAlgo, reco::Photon::ShowerShape::hcalOverEcal, reco::Photon::ShowerShape::hcalOverEcalBc, ElectronHcalHelper::hcalTowersBehindClusters(), reco::Photon::ShowerShape::hcalTowersBehindClusters, highEt_, hfClusterShapes_cfi::hits, l1ctLayer2EG_cff::id, createfilelist::int, reco::Photon::ShowerShape::invalidHcal, reco::Photon::FiducialFlags::isEE, edm::isFinite(), EcalTools::isHGCalDet(), edm::Ref< C, T, F >::isNonnull(), reco::Photon::SaturationInfo::isSeedSaturated, EgammaLocalCovParamDefaults::kRelEnCut, EcalClusterToolsT< noZS >::localCovariances(), LogDebug, reco::Photon::ShowerShape::maxEnergyXtal, multThresEB_, multThresEE_, reco::Photon::SaturationInfo::nSaturatedXtals, electrons_cff::nSaturatedXtals, gedPhotons_cfi::outputPhotonCollection, pfClusterProducer_, pfClusterProducerHCAL_, pfClusterProducerHFEM_, pfClusterProducerHFHAD_, displacedMuons_cfi::photon, MaterialEffects_cfi::photonEnergy, photonEnergyCorrector_, photonIsoCalculator_, photonMIPHaloTagger_, reco::Photon::ShowerShape::pre7DepthHcal, preselCutValuesBarrel_, preselCutValuesEndcap_, preshowerHits_, ptFast(), reco::Photon::regression1, reco::Photon::regression2, runMIPTagger_, reco::CaloCluster::seed(), severitiesexclEB_, severitiesexclEE_, reco::Photon::ShowerShape::sigmaEtaEta, HLT_2024v14_cff::sigmaEtaEta, run3scouting_cff::sigmaIetaIeta, 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(), reco::Photon::PflowIsolationVariables::sumEcalClusterEt, reco::Photon::PflowIsolationVariables::sumHcalClusterEt, tfSessions_, particleFlowZeroSuppressionECAL_cff::thresholds, HLT_2024v14_cff::topology, parallelization::uint, useHF_, contentValuesCheck::values, spclusmultinvestigator_cfi::vertexCollection, and L1BJetProducer_cff::vtx.
Referenced by produce().
|
private |
sets values only for EE, for EB it always returns 1
Definition at line 1060 of file GEDPhotonProducer.cc.
References candidateP4type_, reco::Photon::PflowIsolationVariables::chargedHadronIso, reco::Photon::PflowIsolationVariables::chargedHadronPFPVIso, reco::Photon::PflowIsolationVariables::chargedHadronWorstVtxGeomVetoIso, reco::Photon::PflowIsolationVariables::chargedHadronWorstVtxIso, reco::Photon::ecal_photons, EcalBarrel, EcalEndcap, reco::LeafCandidate::get(), EcalTools::isHGCalDet(), edm::Ref< C, T, F >::isNonnull(), GEDPhotonProducer::RecoStepInfo::isOOT(), edm::EDGetTokenT< T >::isUninitialized(), reco::Photon::PflowIsolationVariables::neutralHadronIso, gedPhotons_cfi::outputPhotonCollection, reco::Photon::p4(), phoPFECALClusIsolationToken_, phoPFHCALClusIsolationToken_, photonEnergyCorrector_, reco::Photon::PflowIsolationVariables::photonIso, photonMVABasedHaloTagger_, preselCutValuesBarrel_, preselCutValuesEndcap_, ptFast(), recoStep_, reco::Photon::regression1, reco::Photon::regression2, runMVABasedHaloTagger_, reco::Photon::setCandidateP4type(), reco::Photon::setHaloTaggerMVAVal(), reco::LeafCandidate::setMass(), reco::Photon::setP4(), reco::Photon::setPflowIsolationVariables(), reco::Photon::PflowIsolationVariables::sumEcalClusterEt, reco::Photon::PflowIsolationVariables::sumHcalClusterEt, and spclusmultinvestigator_cfi::vertexCollection.
|
inlinestatic |
Definition at line 95 of file GEDPhotonProducer.cc.
|
static |
Definition at line 487 of file GEDPhotonProducer.cc.
References DiMuonV_cfg::config.
|
override |
PF ECAL cluster based isolations
Definition at line 498 of file GEDPhotonProducer.cc.
References barrelEcalHits_, HLT_2024v14_cff::barrelRecHits, caloGeom_, caloGeometryToken_, caloTopologyToken_, cutsFromDB_, ecaldrMax_, ecaldrVetoBarrel_, ecaldrVetoEndcap_, ecalenergyBarrel_, ecalenergyEndcap_, ecaletaStripBarrel_, ecaletaStripEndcap_, ecalisoAlgo, ecalPFRechitThresholdsToken_, endcapEcalHits_, HLT_2024v14_cff::endcapRecHits, options_cfi::eventSetup, Exception, trigObjTnPSource_cfi::filler, fillPhotonCollection(), edm::Event::get(), edm::Event::getByToken(), hcalCuts_, hcalCutsToken_, hcaldrMax_, hcaldrVetoBarrel_, hcaldrVetoEndcap_, hcalenergyBarrel_, hcalenergyEndcap_, hcaletaStripBarrel_, hcaletaStripEndcap_, hcalHelperBc_, hcalHelperCone_, hcalisoAlgo, hcalRun2EffDepth_, hcaluseEt_, GEDPhotonProducer::RecoStepInfo::isFinal(), GEDPhotonProducer::RecoStepInfo::isOOT(), edm::EDGetTokenT< T >::isUninitialized(), edm::HandleBase::isValid(), edm::InputTag::label(), eostools::move(), pfCandidates_, pfEgammaCandidates_, phoChargedIsolationToken_, phoChargedPFPVIsoToken_, phoChargedWorstVtxGeomVetoIsoToken_, phoChargedWorstVtxIsoToken_, phoNeutralHadronIsolationToken_, phoPFECALClusIsolationToken_, phoPFHCALClusIsolationToken_, phoPhotonIsolationToken_, photonCollection_, photonCoreProducerT_, photonEnergyCorrector_, photonProducer_, photonProducerT_, preshowerHits_, edm::Event::put(), recoStep_, particleFlowZeroSuppressionECAL_cff::thresholds, HLT_2024v14_cff::topology, usePrimaryVertex_, valueMapPFCandPhoton_, contentValuesCheck::values, spclusmultinvestigator_cfi::vertexCollection, and vertexProducer_.
|
private |
Definition at line 153 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 201 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 215 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 214 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 212 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 190 of file GEDPhotonProducer.cc.
|
private |
Definition at line 101 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 224 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 173 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 227 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 228 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 229 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 232 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 233 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 230 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 231 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 235 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 216 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 154 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 182 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 183 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 158 of file GEDPhotonProducer.cc.
|
private |
Definition at line 102 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 100 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 239 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 240 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 241 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 244 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 245 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 242 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 243 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 220 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 219 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 253 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 221 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 246 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 191 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 189 of file GEDPhotonProducer.cc.
|
private |
Definition at line 192 of file GEDPhotonProducer.cc.
|
private |
Definition at line 193 of file GEDPhotonProducer.cc.
|
private |
Definition at line 187 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 188 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 161 of file GEDPhotonProducer.cc.
|
private |
Definition at line 157 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 236 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 248 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 249 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 250 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 156 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 163 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 168 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 167 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 166 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 164 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 170 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 171 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 165 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 148 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 151 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 211 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 177 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 204 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 206 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 149 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 152 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 208 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 209 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 155 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 197 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 194 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 195 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 184 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 185 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 225 of file GEDPhotonProducer.cc.
Referenced by endStream(), and fillPhotonCollection().
|
private |
Definition at line 238 of file GEDPhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 199 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 175 of file GEDPhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 159 of file GEDPhotonProducer.cc.
Referenced by produce().