#include <PhotonProducer.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, const EcalSeverityLevelAlgo *sevLv) |
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 38 of file PhotonProducer.h.
PhotonProducer::PhotonProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 38 of file PhotonProducer.cc.
References barrelEcalHits_, candidateP4type_, conf_, endcapEcalHits_, flagsexclEB_, flagsexclEE_, edm::ParameterSet::getParameter(), hcalTowers_, highEt_, hOverEConeSize_, minR9Barrel_, minR9Endcap_, PhotonCollection_, photonCoreProducer_, posCalculator_, preselCutValuesBarrel_, preselCutValuesEndcap_, runMIPTagger_, severitiesexclEB_, severitiesexclEE_, AlCaHLTBitMon_QueryRunRegistry::string, usePrimaryVertex_, and vertexProducer_.
PhotonProducer::~PhotonProducer | ( | ) |
Definition at line 140 of file PhotonProducer.cc.
|
finaloverridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 148 of file PhotonProducer.cc.
References conf_, flagsexclEB_, flagsexclEE_, edm::ParameterSet::getParameter(), init, PhotonMIPHaloTagger::setup(), PhotonIsolationCalculator::setup(), severitiesexclEB_, severitiesexclEE_, thePhotonEnergyCorrector_, thePhotonIsolationCalculator_, and thePhotonMIPHaloTagger_.
|
finaloverridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 161 of file PhotonProducer.cc.
References thePhotonEnergyCorrector_, 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 274 of file PhotonProducer.cc.
References PhotonEnergyCorrector::calculate(), PositionCalc::Calculate_Location(), 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, DetId::Ecal, reco::Photon::ecal_photons, EcalBarrel, EcalEndcap, EcalPreshower, 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_, EcalClusterTools::localCovariances(), reco::Photon::ShowerShape::maxEnergyXtal, minR9Barrel_, minR9Endcap_, p4, posCalculator_, preselCutValuesBarrel_, preselCutValuesEndcap_, edm::Handle< T >::product(), edm::ESHandle< class >::product(), reco::Photon::regression1, 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().
|
virtual |
Implements edm::EDProducer.
Definition at line 169 of file PhotonProducer.cc.
References barrelEcalHits_, endcapEcalHits_, fillPhotonCollection(), edm::EventSetup::get(), edm::Event::getByToken(), hcalTowers_, PhotonCollection_, photonCoreProducer_, edm::ESHandle< class >::product(), edm::Event::put(), theCaloGeom_, theCaloTopo_, usePrimaryVertex_, GoodVertex_cfg::vertexCollection, and vertexProducer_.
|
private |
Definition at line 67 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 114 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 96 of file PhotonProducer.h.
Referenced by beginRun(), and PhotonProducer().
|
private |
Definition at line 73 of file PhotonProducer.h.
|
private |
Definition at line 72 of file PhotonProducer.h.
|
private |
Definition at line 68 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 112 of file PhotonProducer.h.
|
private |
Definition at line 78 of file PhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 79 of file PhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 69 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 87 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 84 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 85 of file PhotonProducer.h.
|
private |
Definition at line 88 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 89 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 86 of file PhotonProducer.h.
|
private |
Definition at line 65 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 66 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 93 of file PhotonProducer.h.
|
private |
Definition at line 98 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 109 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 110 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 90 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 80 of file PhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 81 of file PhotonProducer.h.
Referenced by beginRun(), fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 100 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and produce().
|
private |
Definition at line 101 of file PhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 113 of file PhotonProducer.h.
Referenced by beginRun(), endRun(), and fillPhotonCollection().
|
private |
Definition at line 104 of file PhotonProducer.h.
Referenced by beginRun(), endRun(), and fillPhotonCollection().
|
private |
Definition at line 107 of file PhotonProducer.h.
Referenced by beginRun(), endRun(), and fillPhotonCollection().
|
private |
Definition at line 95 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 92 of file PhotonProducer.h.
|
private |
Definition at line 103 of file PhotonProducer.h.
|
private |
Definition at line 70 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().