Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
reco::PFCandidate::ParticleType | candidatePdgId (const edm::Ptr< reco::Candidate > candidate, bool isAOD) |
template<class T , class U > | |
float | computeWorstPFChargedIsolation (const T &photon, const U &pfCandidates, const edm::Handle< reco::VertexCollection > vertices, bool isAOD, bool isPVConstraint, const reco::Vertex &pv, float dRmax, float dxyMax, float dzMax, float dRvetoBarrel, float dRvetoEndcap, float ptMin) |
void | getImpactParameters (const edm::Ptr< reco::Candidate > &candidate, bool isAOD, const reco::Vertex &pv, float &dxy, float &dz) |
const reco::Track * | getTrackPointer (const edm::Ptr< reco::Candidate > candidate, bool isAOD) |
void | produce (edm::Event &, const edm::EventSetup &) override |
void | writeValueMap (edm::Event &iEvent, const edm::Handle< edm::View< reco::Photon > > &handle, const std::vector< float > &values, const std::string &label) const |
Static Private Attributes | |
static char | phoChargedIsolation_ [] = "phoChargedIsolation" |
static char | phoEcalPFClIsolation_ [] = "phoEcalPFClIsolation" |
static char | phoESEffSigmaRR_ [] = "phoESEffSigmaRR" |
static char | phoFull5x5E1x3_ [] = "phoFull5x5E1x3" |
static char | phoFull5x5E2x2_ [] = "phoFull5x5E2x2" |
static char | phoFull5x5E2x5Max_ [] = "phoFull5x5E2x5Max" |
static char | phoFull5x5E5x5_ [] = "phoFull5x5E5x5" |
static char | phoFull5x5SigmaIEtaIEta_ [] = "phoFull5x5SigmaIEtaIEta" |
static char | phoFull5x5SigmaIEtaIPhi_ [] = "phoFull5x5SigmaIEtaIPhi" |
static char | phoHcalPFClIsolation_ [] = "phoHcalPFClIsolation" |
static char | phoNeutralHadronIsolation_ [] = "phoNeutralHadronIsolation" |
static char | phoPhotonIsolation_ [] = "phoPhotonIsolation" |
static char | phoTrkIsolation_ [] = "phoTrkIsolation" |
static char | phoWorstChargedIsolation_ [] = "phoWorstChargedIsolation" |
static char | phoWorstChargedIsolationWithConeVeto_ [] = "phoWorstChargedIsolationWithConeVeto" |
static char | phoWorstChargedIsolationWithConeVetoWithPVConstraint_ [] = "phoWorstChargedIsolationWithConeVetoWithPVConstraint" |
static char | phoWorstChargedIsolationWithPVConstraint_ [] = "phoWorstChargedIsolationWithPVConstraint" |
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 | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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 40 of file PhotonIDValueMapProducer.cc.
|
explicit |
Definition at line 156 of file PhotonIDValueMapProducer.cc.
References ebReducedRecHitCollection_, ebReducedRecHitCollectionMiniAOD_, eeReducedRecHitCollection_, eeReducedRecHitCollectionMiniAOD_, esReducedRecHitCollection_, esReducedRecHitCollectionMiniAOD_, edm::ParameterSet::getParameter(), edm::InputTag::label(), diffTwoXMLs::label, particleBasedIsolationToken_, pfCandidatesToken_, pfCandidatesTokenMiniAOD_, phoChargedIsolation_, phoEcalPFClIsolation_, phoESEffSigmaRR_, phoFull5x5E1x3_, phoFull5x5E2x2_, phoFull5x5E2x5Max_, phoFull5x5E5x5_, phoFull5x5SigmaIEtaIEta_, phoFull5x5SigmaIEtaIPhi_, phoHcalPFClIsolation_, phoNeutralHadronIsolation_, phoPhotonIsolation_, phoTrkIsolation_, phoWorstChargedIsolation_, phoWorstChargedIsolationWithConeVeto_, phoWorstChargedIsolationWithConeVetoWithPVConstraint_, phoWorstChargedIsolationWithPVConstraint_, src_, srcMiniAOD_, usesES_, vtxToken_, and vtxTokenMiniAOD_.
|
override |
Definition at line 229 of file PhotonIDValueMapProducer.cc.
|
private |
Definition at line 611 of file PhotonIDValueMapProducer.cc.
References funct::abs(), reco::PFCandidate::gamma, reco::PFCandidate::h, reco::PFCandidate::h0, common_cff::pdgId, and reco::PFCandidate::X.
Referenced by computeWorstPFChargedIsolation(), and produce().
|
private |
Definition at line 545 of file PhotonIDValueMapProducer.cc.
References candidatePdgId(), reco::deltaR2(), PVValHelper::dxy, PVValHelper::dz, getImpactParameters(), reco::PFCandidate::h, mps_fire::i, ALCARECOTkAlBeamHalo_cff::ptMin, and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by fillDescriptions(), and produce().
|
static |
Definition at line 533 of file PhotonIDValueMapProducer.cc.
References edm::ConfigurationDescriptions::addDefault(), computeWorstPFChargedIsolation(), and edm::ParameterSetDescription::setUnknown().
|
private |
Definition at line 643 of file PhotonIDValueMapProducer.cc.
References DEFINE_FWK_MODULE, reco::TrackBase::dxy(), pat::PackedCandidate::dxy(), reco::TrackBase::dz(), pat::PackedCandidate::dz(), and reco::Vertex::position().
Referenced by computeWorstPFChargedIsolation(), and produce().
|
private |
Definition at line 632 of file PhotonIDValueMapProducer.cc.
|
overrideprivate |
Definition at line 232 of file PhotonIDValueMapProducer.cc.
References candidatePdgId(), computeWorstPFChargedIsolation(), reco::deltaR2(), PVValHelper::dxy, PVValHelper::dz, AlignmentTrackSelector_cfi::dzMax, heepElectronID_HEEPV50_CSA14_25ns_cff::e5x5, ebReducedRecHitCollection_, ebReducedRecHitCollectionMiniAOD_, eeReducedRecHitCollection_, eeReducedRecHitCollectionMiniAOD_, esReducedRecHitCollection_, esReducedRecHitCollectionMiniAOD_, Exception, f, reco::PFCandidate::gamma, edm::Event::getByToken(), getImpactParameters(), reco::PFCandidate::h, reco::PFCandidate::h0, iEvent, isInFootprint(), edm::detail::isnan(), edm::HandleBase::isValid(), lazyToolnoZS, particleBasedIsolationToken_, pfCandidatesToken_, pfCandidatesTokenMiniAOD_, egammaObjectModificationsInMiniAOD_cff::phoChargedIsolation, phoChargedIsolation_, phoEcalPFClIsolation_, phoESEffSigmaRR_, phoFull5x5E1x3_, phoFull5x5E2x2_, phoFull5x5E2x5Max_, phoFull5x5E5x5_, phoFull5x5SigmaIEtaIEta_, phoFull5x5SigmaIEtaIPhi_, phoHcalPFClIsolation_, egammaObjectModificationsInMiniAOD_cff::phoNeutralHadronIsolation, phoNeutralHadronIsolation_, egammaObjectModificationsInMiniAOD_cff::phoPhotonIsolation, phoPhotonIsolation_, phoTrkIsolation_, egammaObjectModificationsInMiniAOD_cff::phoWorstChargedIsolation, phoWorstChargedIsolation_, phoWorstChargedIsolationWithConeVeto_, phoWorstChargedIsolationWithConeVetoWithPVConstraint_, phoWorstChargedIsolationWithPVConstraint_, ALCARECOTkAlBeamHalo_cff::ptMin, MetAnalyzer::pv(), mathSSE::sqrt(), TrackRefitter_38T_cff::src, src_, srcMiniAOD_, PFTauMVAInputDiscriminatorTranslator_cfi::test, usesES_, electrons_cff::vertices, vtxToken_, vtxTokenMiniAOD_, writeValueMap(), reco::Vertex::x(), reco::Vertex::y(), and reco::Vertex::z().
|
private |
Definition at line 519 of file PhotonIDValueMapProducer.cc.
References objects.autophobj::filler, cmsBatch::handle, eostools::move(), and edm::Event::put().
Referenced by produce().
|
private |
Definition at line 89 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 98 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 90 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 99 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 91 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 100 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 86 of file PhotonIDValueMapProducer.cc.
Referenced by produce().
|
private |
Definition at line 93 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 102 of file PhotonIDValueMapProducer.cc.
|
private |
Definition at line 94 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 103 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 118 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 129 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 116 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 112 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 113 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 114 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 115 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 110 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 111 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 128 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 119 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 120 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 127 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 121 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 122 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 124 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 123 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 95 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 104 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 107 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 92 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 101 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().