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, const EcalSeverityLevelAlgo *sevLv) |
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 44 of file PhotonProducer.cc.
PhotonProducer::PhotonProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 113 of file PhotonProducer.cc.
References barrelEcalHits_, candidateP4type_, ElectronHcalHelper::Configuration::checkHcalStatus, endcapEcalHits_, ElectronHcalHelper::Configuration::eThresHB, ElectronHcalHelper::Configuration::eThresHE, flagsexclEB_, flagsexclEE_, ElectronHcalHelper::Configuration::hbheRecHits, hbheRecHits_, hcalHelperBc_, hcalHelperCone_, hcalRun2EffDepth_, highEt_, ElectronHcalHelper::Configuration::hOverEConeSize, hOverEConeSize_, gedPhotons_cfi::isolationSumsCalculatorSet, ElectronHcalHelper::Configuration::maxSeverityHB, ElectronHcalHelper::Configuration::maxSeverityHE, minR9Barrel_, minR9Endcap_, gedPhotons_cfi::mipVariableSet, ElectronHcalHelper::Configuration::onlyBehindCluster, PhotonCollection_, photonCoreProducer_, photonIsolationCalculator_, photonMIPHaloTagger_, MonitorAlCaEcalPi0_cfi::posCalcParameters, posCalculator_, preselCutValuesBarrel_, preselCutValuesEndcap_, runMIPTagger_, 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 332 of file PhotonProducer.cc.
References PhotonEnergyCorrector::calculate(), PhotonIsolationCalculator::calculate(), PositionCalc::Calculate_Location(), 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_FULL_cff::full5x5_sigmaIetaIeta, relativeConstraints::geometry, edm::EventSetup::get(), get, CaloGeometry::getSubdetectorGeometry(), ElectronHcalHelper::hcalESum(), reco::Photon::ShowerShape::hcalOverEcal, reco::Photon::ShowerShape::hcalOverEcalBc, ElectronHcalHelper::hcalTowersBehindClusters(), reco::Photon::ShowerShape::hcalTowersBehindClusters, highEt_, hfClusterShapes_cfi::hits, triggerObjects_cff::id, PhotonEnergyCorrector::init(), createfilelist::int, EcalClusterToolsT< noZS >::localCovariances(), reco::Photon::ShowerShape::maxEnergyXtal, EgHLTOffEleSelection_cfi::minR9, minR9Barrel_, minR9Endcap_, PhotonMIPHaloTagger::MIPcalculate(), gedPhotons_cfi::outputPhotonCollection, p4, MaterialEffects_cfi::photonEnergy, photonEnergyCorrector_, photonIsolationCalculator_, photonMIPHaloTagger_, posCalculator_, reco::Photon::ShowerShape::pre7DepthHcal, preselCutValuesBarrel_, preselCutValuesEndcap_, edm::ESHandle< T >::product(), electrons_cff::r9, reco::Photon::regression1, runMIPTagger_, severitiesexclEB_, severitiesexclEE_, electronIdCutBasedExt_cfi::sigmaEtaEta, reco::Photon::ShowerShape::sigmaEtaEta, reco::Photon::ShowerShape::sigmaIetaIeta, mathSSE::sqrt(), parallelization::uint, spclusmultinvestigator_cfi::vertexCollection, and extraflags_cff::vtx.
Referenced by produce().
|
override |
Definition at line 236 of file PhotonProducer.cc.
References barrelEcalHits_, HLT_FULL_cff::barrelRecHits, endcapEcalHits_, HLT_FULL_cff::endcapRecHits, fillPhotonCollection(), edm::EventSetup::get(), get, edm::Event::getByToken(), hcalHelperBc_, hcalHelperCone_, hcalRun2EffDepth_, edm::HandleBase::isValid(), eostools::move(), gedPhotons_cfi::outputPhotonCollection, PhotonCollection_, photonCoreProducer_, edm::Handle< T >::product(), edm::ESHandle< T >::product(), edm::Event::put(), usePrimaryVertex_, spclusmultinvestigator_cfi::vertexCollection, and vertexProducer_.
|
private |
Definition at line 67 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 102 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 75 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 76 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 106 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 105 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 107 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 80 of file PhotonProducer.cc.
Referenced by PhotonProducer().
|
private |
Definition at line 82 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 83 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 101 of file PhotonProducer.cc.
Referenced by fillPhotonCollection().
|
private |
Definition at line 93 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 96 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 98 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 84 of file PhotonProducer.cc.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
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 88 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 86 of file PhotonProducer.cc.
|
private |
Definition at line 92 of file PhotonProducer.cc.
|
private |
Definition at line 70 of file PhotonProducer.cc.
Referenced by PhotonProducer(), and produce().