#include <GEDPhotonProducer.h>
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 edm::Handle< CaloTowerCollection > &hcalTowersHandle, 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::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 43 of file GEDPhotonProducer.h.
GEDPhotonProducer::GEDPhotonProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 53 of file GEDPhotonProducer.cc.
References barrelEcalHits_, candidateP4type_, conf_, edm::EDConsumerBase::consumesCollector(), endcapEcalHits_, edm::ParameterSet::existsAs(), flagsexclEB_, flagsexclEE_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), hcalTowers_, highEt_, hOverEConeSize_, minR9Barrel_, minR9Endcap_, pfCandidates_, pfEgammaCandidates_, photonCollection_, photonCoreProducerT_, photonProducer_, photonProducerT_, posCalculator_, preselCutValuesBarrel_, preselCutValuesEndcap_, reconstructionStep_, runMIPTagger_, severitiesexclEB_, severitiesexclEE_, AlCaHLTBitMon_QueryRunRegistry::string, thePhotonEnergyCorrector_, usePrimaryVertex_, valueMapPFCandPhoton_, and vertexProducer_.
GEDPhotonProducer::~GEDPhotonProducer | ( | ) |
Definition at line 186 of file GEDPhotonProducer.cc.
References thePhotonEnergyCorrector_.
|
finaloverridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 194 of file GEDPhotonProducer.cc.
References conf_, flagsexclEB_, flagsexclEE_, edm::ParameterSet::getParameter(), init, reconstructionStep_, PhotonMIPHaloTagger::setup(), PhotonIsolationCalculator::setup(), PFPhotonIsolationCalculator::setup(), severitiesexclEB_, severitiesexclEE_, thePFBasedIsolationCalculator_, thePhotonEnergyCorrector_, thePhotonIsolationCalculator_, and thePhotonMIPHaloTagger_.
|
finaloverridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 222 of file GEDPhotonProducer.cc.
References reconstructionStep_, thePFBasedIsolationCalculator_, thePhotonIsolationCalculator_, and thePhotonMIPHaloTagger_.
|
private |
fill 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 431 of file GEDPhotonProducer.cc.
References PhotonEnergyCorrector::calculate(), candidateP4type_, EcalClusterTools::covariances(), EcalClusterTools::e1x5(), reco::Photon::ShowerShape::e1x5, reco::Photon::ShowerShape::e2x5, EcalClusterTools::e2x5Max(), EcalClusterTools::e3x3(), reco::Photon::ShowerShape::e3x3, EcalClusterTools::e5x5(), reco::Photon::ShowerShape::e5x5, reco::Photon::ecal_photons, EcalBarrel, EcalEndcap, EcalClusterTools::eMax(), 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::Ref< C, T, F >::isNonnull(), EcalClusterTools::localCovariances(), reco::Photon::ShowerShape::maxEnergyXtal, p4, preselCutValuesBarrel_, preselCutValuesEndcap_, edm::Handle< T >::product(), edm::ESHandle< class >::product(), reco::Photon::regression1, reco::Photon::regression2, runMIPTagger_, EgammaHadTower::setTowerCollection(), severitiesexclEB_, severitiesexclEE_, reco::Photon::ShowerShape::sigmaEtaEta, reco::Photon::ShowerShape::sigmaIetaIeta, mathSSE::sqrt(), theCaloGeom_, thePhotonEnergyCorrector_, thePhotonIsolationCalculator_, thePhotonMIPHaloTagger_, and EgammaHadTower::towersOf().
Referenced by produce().
|
private |
Pre-selection loose isolation cuts
Definition at line 613 of file GEDPhotonProducer.cc.
References PFPhotonIsolationCalculator::calculate(), EcalBarrel, EcalEndcap, reco::Photon::ecalRecHitSumEtConeDR04(), reco::Photon::hadronicOverEm(), reco::Photon::hcalTowerSumEtConeDR04(), highEt_, edm::Ref< C, T, F >::isNonnull(), reco::Photon::nTrkHollowConeDR04(), reco::Photon::nTrkSolidConeDR04(), preselCutValuesBarrel_, preselCutValuesEndcap_, reco::LeafCandidate::pt(), reco::Photon::setPflowIDVariables(), reco::Photon::setPflowIsolationVariables(), reco::Photon::sigmaIetaIeta(), thePFBasedIsolationCalculator_, reco::Photon::trkSumPtHollowConeDR04(), and reco::Photon::trkSumPtSolidConeDR04().
|
virtual |
Implements edm::EDProducer.
Definition at line 235 of file GEDPhotonProducer.cc.
References barrelEcalHits_, endcapEcalHits_, edm::helper::Filler< Map >::fill(), fillPhotonCollection(), edm::EventSetup::get(), edm::Event::getByToken(), hcalTowers_, edm::helper::Filler< Map >::insert(), edm::InputTag::label(), pfCandidates_, pfEgammaCandidates_, photonCollection_, photonCoreProducerT_, photonProducer_, photonProducerT_, edm::ESHandle< class >::product(), edm::Event::put(), reconstructionStep_, theCaloGeom_, theCaloTopo_, usePrimaryVertex_, valueMapPFCandPhoton_, makeHLTPrescaleTable::values, GoodVertex_cfg::vertexCollection, and vertexProducer_.
|
private |
Definition at line 85 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 139 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 123 of file GEDPhotonProducer.h.
Referenced by beginRun(), and GEDPhotonProducer().
|
private |
Definition at line 94 of file GEDPhotonProducer.h.
|
private |
Definition at line 93 of file GEDPhotonProducer.h.
|
private |
Definition at line 86 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 137 of file GEDPhotonProducer.h.
|
private |
Definition at line 105 of file GEDPhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 106 of file GEDPhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 89 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 114 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 111 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 112 of file GEDPhotonProducer.h.
|
private |
Definition at line 115 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 116 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 113 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 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 81 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 84 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 124 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer().
|
private |
Definition at line 134 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 135 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 120 of file GEDPhotonProducer.h.
Referenced by beginRun(), endRun(), GEDPhotonProducer(), and produce().
|
private |
Definition at line 117 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 107 of file GEDPhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 108 of file GEDPhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), and GEDPhotonProducer().
|
private |
Definition at line 126 of file GEDPhotonProducer.h.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 127 of file GEDPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 99 of file GEDPhotonProducer.h.
Referenced by beginRun(), endRun(), and fillPhotonCollection().
|
private |
Definition at line 138 of file GEDPhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), GEDPhotonProducer(), and ~GEDPhotonProducer().
|
private |
Definition at line 100 of file GEDPhotonProducer.h.
Referenced by beginRun(), endRun(), and fillPhotonCollection().
|
private |
Definition at line 132 of file GEDPhotonProducer.h.
Referenced by beginRun(), endRun(), and fillPhotonCollection().
|
private |
Definition at line 122 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 119 of file GEDPhotonProducer.h.
|
private |
Definition at line 129 of file GEDPhotonProducer.h.
|
private |
Definition at line 95 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().
|
private |
Definition at line 90 of file GEDPhotonProducer.h.
Referenced by GEDPhotonProducer(), and produce().