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 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 45 of file PhotonProducer.cc.
PhotonProducer::PhotonProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 118 of file PhotonProducer.cc.
References barrelEcalHits_, candidateP4type_, endcapEcalHits_, flagsexclEB_, flagsexclEE_, hbheRecHits_, 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 330 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_2022v15_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_2022v15_cff::sigmaEtaEta, reco::Photon::ShowerShape::sigmaIetaIeta, mathSSE::sqrt(), parallelization::uint, spclusmultinvestigator_cfi::vertexCollection, and extraflags_cff::vtx.
Referenced by produce().
|
override |
Definition at line 243 of file PhotonProducer.cc.
References barrelEcalHits_, HLT_2022v15_cff::barrelRecHits, endcapEcalHits_, HLT_2022v15_cff::endcapRecHits, fillPhotonCollection(), edm::Event::getByToken(), edm::EventSetup::getData(), hcalHelperBc_, hcalHelperCone_, hcalRun2EffDepth_, edm::HandleBase::isValid(), eostools::move(), gedPhotons_cfi::outputPhotonCollection, PhotonCollection_, photonCoreProducer_, edm::Handle< T >::product(), edm::Event::put(), topologyToken_, usePrimaryVertex_, spclusmultinvestigator_cfi::vertexCollection, and vertexProducer_.
|
private |
Definition at line 67 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 71 of file PhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 107 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 68 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 77 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 78 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 69 of file PhotonProducer.cc.
Referenced by PhotonProducer().
|
private |
Definition at line 111 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 110 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 112 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 83 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 82 of file PhotonProducer.cc.
Referenced by PhotonProducer().
|
private |
Definition at line 84 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 85 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 65 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 66 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 106 of file PhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 96 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 99 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 101 of file PhotonProducer.cc.
|
private |
Definition at line 93 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 104 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 86 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 87 of file PhotonProducer.cc.
Referenced by PhotonProducer().
|
private |
Definition at line 79 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 80 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 72 of file PhotonProducer.cc.
Referenced by produce().
|
private |
Definition at line 91 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 89 of file PhotonProducer.cc.
|
private |
Definition at line 95 of file PhotonProducer.cc.
|
private |
Definition at line 70 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().