#include <GEDPhotonProducer.h>
Public Member Functions | |
virtual void | beginRun (edm::Run const &r, edm::EventSetup const &es) overridefinal |
virtual void | endRun (edm::Run const &, edm::EventSetup const &) overridefinal |
GEDPhotonProducer (const edm::ParameterSet &ps) | |
virtual void | produce (edm::Event &evt, const edm::EventSetup &es) |
~GEDPhotonProducer () | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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) |
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 |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 41 of file GEDPhotonProducer.h.
GEDPhotonProducer::GEDPhotonProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 54 of file GEDPhotonProducer.cc.
References barrelEcalHits_, candidateP4type_, conf_, edm::EDConsumerBase::consumesCollector(), endcapEcalHits_, edm::ParameterSet::existsAs(), flagsexclEB_, flagsexclEE_, edm::ParameterSet::getParameter(), hcalTowers_, highEt_, hOverEConeSize_, minR9Barrel_, minR9Endcap_, pfCandidates_, pfEgammaCandidates_, photonCollection_, photonCoreProducerT_, photonProducer_, photonProducerT_, HLT_FULL_cff::posCalcParameters, posCalculator_, preselCutValuesBarrel_, preselCutValuesEndcap_, preshowerHits_, reconstructionStep_, runMIPTagger_, PhotonMIPHaloTagger::setup(), PhotonIsolationCalculator::setup(), severitiesexclEB_, severitiesexclEE_, AlCaHLTBitMon_QueryRunRegistry::string, thePhotonEnergyCorrector_, thePhotonIsolationCalculator_, thePhotonMIPHaloTagger_, usePrimaryVertex_, valueMapPFCandPhoton_, and vertexProducer_.
GEDPhotonProducer::~GEDPhotonProducer | ( | ) |
Definition at line 201 of file GEDPhotonProducer.cc.
References thePhotonEnergyCorrector_, thePhotonIsolationCalculator_, and thePhotonMIPHaloTagger_.
|
finaloverridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 211 of file GEDPhotonProducer.cc.
References conf_, edm::ParameterSet::getParameter(), init, reconstructionStep_, PFPhotonIsolationCalculator::setup(), thePFBasedIsolationCalculator_, and thePhotonEnergyCorrector_.
|
finaloverridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 223 of file GEDPhotonProducer.cc.
References reconstructionStep_, and thePFBasedIsolationCalculator_.
|
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 437 of file GEDPhotonProducer.cc.
References barrelEcalHits_, PhotonEnergyCorrector::calculate(), candidateP4type_, 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, reco::Photon::ShowerShape::effSigmaRR, EcalClusterToolsT< noZS >::eLeft(), reco::Photon::ShowerShape::eLeft, EcalClusterToolsT< noZS >::eMax(), endcapEcalHits_, EcalClusterToolsT< noZS >::eRight(), reco::Photon::ShowerShape::eRight, EcalClusterToolsT< noZS >::eTop(), reco::Photon::ShowerShape::eTop, flagsexclEB_, flagsexclEE_, geometry, EgammaHadTower::getDepth1HcalESum(), EgammaHadTower::getDepth2HcalESum(), EgammaTowerIsolation::getTowerESum(), reco::Photon::ShowerShape::hcalDepth1OverEcal, reco::Photon::ShowerShape::hcalDepth1OverEcalBc, reco::Photon::ShowerShape::hcalDepth2OverEcal, reco::Photon::ShowerShape::hcalDepth2OverEcalBc, reco::Photon::ShowerShape::hcalTowersBehindClusters, highEt_, hOverEConeSize_, edm::isFinite(), edm::Ref< C, T, F >::isNonnull(), EcalClusterToolsT< noZS >::localCovariances(), reco::Photon::ShowerShape::maxEnergyXtal, p4, preselCutValuesBarrel_, preselCutValuesEndcap_, preshowerHits_, edm::Handle< T >::product(), edm::ESHandle< class >::product(), ptFast(), reco::Photon::regression1, reco::Photon::regression2, runMIPTagger_, cmsHarvester::sep, EgammaHadTower::setTowerCollection(), severitiesexclEB_, severitiesexclEE_, reco::Photon::ShowerShape::sigmaEtaEta, reco::Photon::ShowerShape::sigmaIetaIeta, reco::Photon::ShowerShape::sigmaIetaIphi, reco::Photon::ShowerShape::sigmaIphiIphi, mathSSE::sqrt(), theCaloGeom_, thePhotonEnergyCorrector_, thePhotonIsolationCalculator_, thePhotonMIPHaloTagger_, and EgammaHadTower::towersOf().
Referenced by produce().
|
private |
Definition at line 686 of file GEDPhotonProducer.cc.
References PhotonEnergyCorrector::calculate(), PFPhotonIsolationCalculator::calculate(), candidateP4type_, reco::Photon::ecal_photons, EcalBarrel, EcalEndcap, edm::Ref< C, T, F >::isNonnull(), reco::Photon::p4(), preselCutValuesBarrel_, preselCutValuesEndcap_, ptFast(), reco::Photon::regression1, reco::Photon::regression2, reco::Photon::setCandidateP4type(), reco::Photon::setP4(), reco::Photon::setPflowIDVariables(), reco::Photon::setPflowIsolationVariables(), thePFBasedIsolationCalculator_, and thePhotonEnergyCorrector_.
|
virtual |
Implements edm::stream::EDProducerBase.
Definition at line 231 of file GEDPhotonProducer.cc.
References barrelEcalHits_, endcapEcalHits_, Exception, edm::helper::Filler< Map >::fill(), fillPhotonCollection(), PhotonEnergyCorrector::gedRegression(), edm::EventSetup::get(), edm::Event::getByToken(), hcalTowers_, PhotonEnergyCorrector::init(), edm::helper::Filler< Map >::insert(), edm::InputTag::label(), pfCandidates_, pfEgammaCandidates_, photonCollection_, photonCoreProducerT_, photonProducer_, photonProducerT_, preshowerHits_, edm::ESHandle< class >::product(), edm::Event::put(), reconstructionStep_, theCaloGeom_, theCaloTopo_, thePhotonEnergyCorrector_, ecaldqm::topology(), usePrimaryVertex_, valueMapPFCandPhoton_, makeHLTPrescaleTable::values, GoodVertex_cfg::vertexCollection, and vertexProducer_.
|
private |
Definition at line 84 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 136 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 120 of file GEDPhotonProducer.h.
Referenced by beginRun(), and GEDPhotonProducer().
|
private |
Definition at line 93 of file GEDPhotonProducer.h.
|
private |
Definition at line 92 of file GEDPhotonProducer.h.
|
private |
Definition at line 85 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 134 of file GEDPhotonProducer.h.
|
private |
Definition at line 102 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 103 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 89 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 111 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 108 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 109 of file GEDPhotonProducer.h.
|
private |
Definition at line 112 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 113 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 110 of file GEDPhotonProducer.h.
|
private |
Definition at line 88 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 87 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 79 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 82 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 80 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 83 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 121 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 131 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 132 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 86 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 117 of file GEDPhotonProducer.h.
Referenced by beginRun(), endRun(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 114 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 104 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 105 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 123 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 124 of file GEDPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 96 of file GEDPhotonProducer.h.
Referenced by beginRun(), endRun(), and fillPhotonCollection().
|
private |
Definition at line 135 of file GEDPhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), GEDPhotonProducer(), produce(), and ~GEDPhotonProducer().
|
private |
Definition at line 97 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and ~GEDPhotonProducer().
|
private |
Definition at line 129 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), GEDPhotonProducer(), and ~GEDPhotonProducer().
|
private |
Definition at line 119 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 116 of file GEDPhotonProducer.h.
|
private |
Definition at line 126 of file GEDPhotonProducer.h.
|
private |
Definition at line 94 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 90 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().