#include <PhotonProducer.h>
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 | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
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, CaloTowerCollection const &hcalTowers, reco::VertexCollection &pvVertices, reco::PhotonCollection &outputCollection, int &iSC, const EcalSeverityLevelAlgo *sevLv) |
Private Attributes | |
edm::EDGetTokenT< EcalRecHitCollection > | barrelEcalHits_ |
std::string | candidateP4type_ |
edm::EDGetTokenT< EcalRecHitCollection > | endcapEcalHits_ |
std::vector< int > | flagsexclEB_ |
std::vector< int > | flagsexclEE_ |
edm::EDGetTokenT< CaloTowerCollection > | hcalTowers_ |
double | highEt_ |
double | hOverEConeSize_ |
double | maxHOverE_ |
double | minR9Barrel_ |
double | minR9Endcap_ |
double | minSCEt_ |
std::string | PhotonCollection_ |
edm::EDGetTokenT< reco::PhotonCoreCollection > | photonCoreProducer_ |
PhotonEnergyCorrector | photonEnergyCorrector_ |
PhotonIsolationCalculator | photonIsolationCalculator_ |
PhotonMIPHaloTagger | photonMIPHaloTagger_ |
PositionCalc | posCalculator_ |
std::vector< double > | preselCutValuesBarrel_ |
std::vector< double > | preselCutValuesEndcap_ |
bool | runMIPTagger_ |
std::vector< int > | severitiesexclEB_ |
std::vector< int > | severitiesexclEE_ |
bool | usePrimaryVertex_ |
bool | validConversions_ |
bool | validPixelSeeds_ |
edm::EDGetTokenT< reco::VertexCollection > | vertexProducer_ |
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 |
Definition at line 35 of file PhotonProducer.h.
PhotonProducer::PhotonProducer | ( | const edm::ParameterSet & | ps | ) |
Definition at line 33 of file PhotonProducer.cc.
References barrelEcalHits_, candidateP4type_, endcapEcalHits_, flagsexclEB_, flagsexclEE_, hcalTowers_, highEt_, hOverEConeSize_, gedPhotons_cfi::isolationSumsCalculatorSet, minR9Barrel_, minR9Endcap_, gedPhotons_cfi::mipVariableSet, PhotonCollection_, photonCoreProducer_, photonIsolationCalculator_, photonMIPHaloTagger_, MonitorAlCaEcalPi0_cfi::posCalcParameters, posCalculator_, preselCutValuesBarrel_, preselCutValuesEndcap_, runMIPTagger_, PhotonIsolationCalculator::setup(), PhotonMIPHaloTagger::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 213 of file PhotonProducer.cc.
References PhotonIsolationCalculator::calculate(), PhotonEnergyCorrector::calculate(), PositionCalc::Calculate_Location(), candidateP4type_, EcalClusterToolsT< noZS >::covariances(), egamma::depth1HcalESum(), egamma::depth2HcalESum(), 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, geometry, edm::EventSetup::get(), get, CaloGeometry::getSubdetectorGeometry(), EgammaTowerIsolation::getTowerESum(), reco::Photon::ShowerShape::hcalDepth1OverEcal, reco::Photon::ShowerShape::hcalDepth1OverEcalBc, reco::Photon::ShowerShape::hcalDepth2OverEcal, reco::Photon::ShowerShape::hcalDepth2OverEcalBc, conversions_cfi::hcalTowers, reco::Photon::ShowerShape::hcalTowersBehindClusters, highEt_, hfClusterShapes_cfi::hits, hOverEConeSize_, 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_, 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(), egamma::towersOf(), spclusmultinvestigator_cfi::vertexCollection, and extraflags_cff::vtx.
Referenced by produce().
|
override |
Definition at line 126 of file PhotonProducer.cc.
References barrelEcalHits_, HLT_FULL_cff::barrelRecHits, endcapEcalHits_, HLT_FULL_cff::endcapRecHits, fillPhotonCollection(), edm::EventSetup::get(), edm::Event::get(), get, edm::Event::getByToken(), conversions_cfi::hcalTowers, hcalTowers_, edm::HandleBase::isValid(), eostools::move(), gedPhotons_cfi::outputPhotonCollection, PhotonCollection_, photonCoreProducer_, edm::Handle< T >::product(), edm::ESHandle< T >::product(), edm::Event::put(), ecaldqm::topology(), usePrimaryVertex_, spclusmultinvestigator_cfi::vertexCollection, and vertexProducer_.
|
private |
Definition at line 57 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 94 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 58 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 65 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 66 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 59 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 73 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 70 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 71 of file PhotonProducer.h.
|
private |
Definition at line 74 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 75 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 72 of file PhotonProducer.h.
|
private |
Definition at line 55 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 56 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 93 of file PhotonProducer.h.
Referenced by fillPhotonCollection().
|
private |
Definition at line 85 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 88 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 82 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 91 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 76 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 67 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 68 of file PhotonProducer.h.
Referenced by fillPhotonCollection(), and PhotonProducer().
|
private |
Definition at line 80 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().
|
private |
Definition at line 78 of file PhotonProducer.h.
|
private |
Definition at line 84 of file PhotonProducer.h.
|
private |
Definition at line 60 of file PhotonProducer.h.
Referenced by PhotonProducer(), and produce().