Public Member Functions | |
PhotonIDValueMapProducer (const edm::ParameterSet &) | |
~PhotonIDValueMapProducer () | |
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) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
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, float dRmax, float dxyMax, float dzMax, float dRvetoBarrel, float dRvetoEndcap, float ptMin) |
const reco::Track * | getTrackPointer (const edm::Ptr< reco::Candidate > candidate, bool isAOD) |
virtual 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 | 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 | phoNeutralHadronIsolation_ [] = "phoNeutralHadronIsolation" |
static char | phoPhotonIsolation_ [] = "phoPhotonIsolation" |
static char | phoWorstChargedIsolation_ [] = "phoWorstChargedIsolation" |
static char | phoWorstChargedIsolationWithConeVeto_ [] = "phoWorstChargedIsolationWithConeVeto" |
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 |
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 138 of file PhotonIDValueMapProducer.cc.
References ebReducedRecHitCollection_, ebReducedRecHitCollectionMiniAOD_, eeReducedRecHitCollection_, eeReducedRecHitCollectionMiniAOD_, esReducedRecHitCollection_, esReducedRecHitCollectionMiniAOD_, edm::ParameterSet::getParameter(), edm::InputTag::label(), diffTwoXMLs::label, particleBasedIsolationToken_, pfCandidatesToken_, pfCandidatesTokenMiniAOD_, phoChargedIsolation_, phoESEffSigmaRR_, phoFull5x5E1x3_, phoFull5x5E2x2_, phoFull5x5E2x5Max_, phoFull5x5E5x5_, phoFull5x5SigmaIEtaIEta_, phoFull5x5SigmaIEtaIPhi_, phoNeutralHadronIsolation_, phoPhotonIsolation_, phoWorstChargedIsolation_, phoWorstChargedIsolationWithConeVeto_, src_, srcMiniAOD_, usesES_, vtxToken_, and vtxTokenMiniAOD_.
PhotonIDValueMapProducer::~PhotonIDValueMapProducer | ( | ) |
Definition at line 203 of file PhotonIDValueMapProducer.cc.
|
private |
Definition at line 535 of file PhotonIDValueMapProducer.cc.
References funct::abs(), reco::PFCandidate::gamma, reco::PFCandidate::h, reco::PFCandidate::h0, cosmictrackingParticleSelector_cfi::pdgId, and reco::PFCandidate::X.
Referenced by computeWorstPFChargedIsolation(), and produce().
|
private |
Definition at line 472 of file PhotonIDValueMapProducer.cc.
References candidatePdgId(), reco::deltaR2(), particleFlowDisplacedVertexCandidate_cfi::dxy, reco::TrackBase::dxy(), allConversions_cfi::dz, reco::TrackBase::dz(), AlignmentTrackSelector_cfi::dzMax, getTrackPointer(), reco::PFCandidate::h, mps_fire::i, ALCARECOTkAlBeamHalo_cff::ptMin, and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by fillDescriptions(), and produce().
|
static |
Definition at line 460 of file PhotonIDValueMapProducer.cc.
References edm::ConfigurationDescriptions::addDefault(), computeWorstPFChargedIsolation(), and edm::ParameterSetDescription::setUnknown().
|
private |
Definition at line 556 of file PhotonIDValueMapProducer.cc.
References DEFINE_FWK_MODULE.
Referenced by computeWorstPFChargedIsolation(), and produce().
|
overrideprivatevirtual |
Definition at line 206 of file PhotonIDValueMapProducer.cc.
References candidatePdgId(), computeWorstPFChargedIsolation(), reco::deltaR2(), particleFlowDisplacedVertexCandidate_cfi::dxy, reco::TrackBase::dxy(), allConversions_cfi::dz, reco::TrackBase::dz(), AlignmentTrackSelector_cfi::dzMax, heepElectronID_HEEPV50_CSA14_25ns_cff::e5x5, ebReducedRecHitCollection_, ebReducedRecHitCollectionMiniAOD_, eeReducedRecHitCollection_, eeReducedRecHitCollectionMiniAOD_, esReducedRecHitCollection_, esReducedRecHitCollectionMiniAOD_, Exception, reco::PFCandidate::gamma, edm::Event::getByToken(), getTrackPointer(), reco::PFCandidate::h, reco::PFCandidate::h0, iEvent, isInFootprint(), edm::detail::isnan(), edm::HandleBase::isValid(), lazyToolnoZS, particleBasedIsolationToken_, pfCandidatesToken_, pfCandidatesTokenMiniAOD_, egammaObjectModificationsInMiniAOD_cff::phoChargedIsolation, phoChargedIsolation_, phoESEffSigmaRR_, phoFull5x5E1x3_, phoFull5x5E2x2_, phoFull5x5E2x5Max_, phoFull5x5E5x5_, phoFull5x5SigmaIEtaIEta_, phoFull5x5SigmaIEtaIPhi_, egammaObjectModificationsInMiniAOD_cff::phoNeutralHadronIsolation, phoNeutralHadronIsolation_, egammaObjectModificationsInMiniAOD_cff::phoPhotonIsolation, phoPhotonIsolation_, egammaObjectModificationsInMiniAOD_cff::phoWorstChargedIsolation, phoWorstChargedIsolation_, phoWorstChargedIsolationWithConeVeto_, reco::Vertex::position(), ALCARECOTkAlBeamHalo_cff::ptMin, MetAnalyzer::pv(), mathSSE::sqrt(), TrackRefitter_38T_cff::src, src_, srcMiniAOD_, PFTauMVAInputDiscriminatorTranslator_cfi::test, usesES_, ecalDrivenElectronSeedsParameters_cff::vertices, vtxToken_, vtxTokenMiniAOD_, writeValueMap(), reco::Vertex::x(), reco::Vertex::y(), and reco::Vertex::z().
|
private |
Definition at line 446 of file PhotonIDValueMapProducer.cc.
References objects.autophobj::filler, cmsBatch::handle, eostools::move(), and edm::Event::put().
Referenced by produce().
|
private |
Definition at line 86 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 87 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 96 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 88 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 97 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 83 of file PhotonIDValueMapProducer.cc.
Referenced by produce().
|
private |
Definition at line 90 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
private |
Definition at line 99 of file PhotonIDValueMapProducer.cc.
|
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().
|
staticprivate |
Definition at line 115 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 109 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 112 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 107 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and produce().
|
staticprivate |
Definition at line 108 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 117 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 119 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().
|
private |
Definition at line 104 of file PhotonIDValueMapProducer.cc.
Referenced by PhotonIDValueMapProducer(), and 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().