Public Member Functions | |
PhotonProducer (const edm::ParameterSet &ps) | |
void | produce (edm::Event &evt, const edm::EventSetup &es) override |
Public Member Functions inherited from edm::stream::EDProducer<> | |
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 |
Private Member Functions | |
void | fillPhotonCollection (edm::Event &evt, edm::EventSetup const &es, const edm::Handle< reco::PhotonCoreCollection > &photonCoreHandle, const CaloTopology *topology, const HcalPFCuts *hcalCuts, const EcalRecHitCollection *ecalBarrelHits, const EcalRecHitCollection *ecalEndcapHits, ElectronHcalHelper const &hcalHelperCone, ElectronHcalHelper const &hcalHelperBc, reco::VertexCollection &pvVertices, reco::PhotonCollection &outputCollection, int &iSC) |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
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 48 of file PhotonProducer.cc.
PhotonProducer::PhotonProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 125 of file PhotonProducer.cc.
References barrelEcalHits_, candidateP4type_, cutsFromDB_, endcapEcalHits_, flagsexclEB_, flagsexclEE_, hbheRecHits_, hcalCutsToken_, hcalHelperBc_, hcalHelperCone_, hcalRun2EffDepth_, highEt_, ElectronHcalHelper::Configuration::hOverEConeSize, hOverEConeSize_, gedPhotons_cfi::isolationSumsCalculatorSet, minR9Barrel_, minR9Endcap_, gedPhotons_cfi::mipVariableSet, PhotonCollection_, photonCoreProducer_, photonIsolationCalculator_, photonMIPHaloTagger_, ecalPiZeroTask_cfi::posCalcParameters, posCalculator_, preselCutValuesBarrel_, preselCutValuesEndcap_, runMIPTagger_, runMVABasedHaloTagger_, PhotonMIPHaloTagger::setup(), PhotonIsolationCalculator::setup(), severitiesexclEB_, severitiesexclEE_, AlCaHLTBitMon_QueryRunRegistry::string, usePrimaryVertex_, and vertexProducer_.
|
private |
fill shower shape block
fill full5x5 shower shape block
get ecal photon specific corrected energy plus values from regressions and store them in the Photon
Pre-selection loose isolation cuts
Definition at line 348 of file PhotonProducer.cc.
References PhotonEnergyCorrector::calculate(), PhotonIsolationCalculator::calculate(), PositionCalc::Calculate_Location(), caloGeomToken_, candidateP4type_, EcalClusterToolsT< noZS >::covariances(), EgHLTOffHistBins_cfi::e1x5, EcalClusterToolsT< noZS >::e1x5(), reco::Photon::ShowerShape::e1x5, EgHLTOffHistBins_cfi::e2x5, reco::Photon::ShowerShape::e2x5, EcalClusterToolsT< noZS >::e2x5Max(), EcalClusterToolsT< noZS >::e3x3(), reco::Photon::ShowerShape::e3x3, EcalClusterToolsT< noZS >::e5x5(), reco::Photon::ShowerShape::e5x5, DetId::Ecal, reco::Photon::ecal_photons, EcalBarrel, EcalEndcap, EcalPreshower, cosmicPhotonAnalyzer_cfi::eMax, EcalClusterToolsT< noZS >::eMax(), flagsexclEB_, flagsexclEE_, HLT_2023v12_cff::full5x5_sigmaIetaIeta, relativeConstraints::geometry, edm::EventSetup::getData(), ElectronHcalHelper::hcalESum(), reco::Photon::ShowerShape::hcalOverEcal, reco::Photon::ShowerShape::hcalOverEcalBc, ElectronHcalHelper::hcalTowersBehindClusters(), reco::Photon::ShowerShape::hcalTowersBehindClusters, highEt_, hfClusterShapes_cfi::hits, l1ctLayer2EG_cff::id, PhotonEnergyCorrector::init(), createfilelist::int, EcalClusterToolsT< noZS >::localCovariances(), reco::Photon::ShowerShape::maxEnergyXtal, EgHLTOffEleSelection_cfi::minR9, minR9Barrel_, minR9Endcap_, PhotonMIPHaloTagger::MIPcalculate(), gedPhotons_cfi::outputPhotonCollection, MaterialEffects_cfi::photonEnergy, photonEnergyCorrector_, photonIsolationCalculator_, photonMIPHaloTagger_, posCalculator_, reco::Photon::ShowerShape::pre7DepthHcal, preselCutValuesBarrel_, preselCutValuesEndcap_, electrons_cff::r9, reco::Photon::regression1, runMIPTagger_, severitiesexclEB_, severitiesexclEE_, reco::Photon::ShowerShape::sigmaEtaEta, HLT_2023v12_cff::sigmaEtaEta, run3scouting_cff::sigmaIetaIeta, reco::Photon::ShowerShape::sigmaIetaIeta, mathSSE::sqrt(), parallelization::uint, spclusmultinvestigator_cfi::vertexCollection, and L1BJetProducer_cff::vtx.
Referenced by produce().
|
override |
Definition at line 256 of file PhotonProducer.cc.
References barrelEcalHits_, HLT_2023v12_cff::barrelRecHits, cutsFromDB_, endcapEcalHits_, HLT_2023v12_cff::endcapRecHits, fillPhotonCollection(), edm::Event::getByToken(), edm::EventSetup::getData(), hcalCutsToken_, hcalHelperBc_, hcalHelperCone_, hcalRun2EffDepth_, edm::HandleBase::isValid(), eostools::move(), gedPhotons_cfi::outputPhotonCollection, PhotonCollection_, photonCoreProducer_, edm::Handle< T >::product(), edm::Event::put(), pfClusterHBHEAlpaka_cff::topology, topologyToken_, usePrimaryVertex_, spclusmultinvestigator_cfi::vertexCollection, and vertexProducer_.
|
private |
Definition at line 71 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 75 of file PhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 111 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 119 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 72 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 81 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 82 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 73 of file PhotonProducer.cc.
Referenced by PhotonProducer().
|
private |
Definition at line 118 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 115 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 114 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 116 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 87 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 86 of file PhotonProducer.cc.
Referenced by PhotonProducer().
|
private |
Definition at line 88 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 89 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 69 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 70 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 110 of file PhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 100 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 103 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 105 of file PhotonProducer.cc.
|
private |
Definition at line 97 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 107 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 108 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 90 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 91 of file PhotonProducer.cc.
Referenced by PhotonProducer().
|
private |
Definition at line 83 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 84 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 76 of file PhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 95 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 93 of file PhotonProducer.cc.
|
private |
Definition at line 99 of file PhotonProducer.cc.
|
private |
Definition at line 74 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().