Public Member Functions | |
LeptonUpdater (const edm::ParameterSet &iConfig) | |
const std::vector< double > & | miniIsoParams (const T &lep) const |
template<> | |
const std::vector< double > & | miniIsoParams (const pat::Electron &lep) const |
void | produce (edm::StreamID, edm::Event &, edm::EventSetup const &) const override |
void | readMiniIsoParams (const edm::ParameterSet &iConfig) |
template<> | |
void | readMiniIsoParams (const edm::ParameterSet &iConfig) |
void | recomputeMuonBasicSelectors (T &, const reco::Vertex &, const bool) const |
template<> | |
void | recomputeMuonBasicSelectors (pat::Muon &lep, const reco::Vertex &pv, const bool do_hip_mitigation_2016) const |
void | setDZ (T &lep, const reco::Vertex &pv) const |
template<> | |
void | setDZ (pat::Electron &anElectron, const reco::Vertex &pv) const |
template<> | |
void | setDZ (pat::Muon &aMuon, const reco::Vertex &pv) const |
~LeptonUpdater () override | |
Public Member Functions inherited from edm::global::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
bool | wantsGlobalLuminosityBlocks () const final |
bool | wantsGlobalRuns () const final |
bool | wantsStreamLuminosityBlocks () const final |
bool | wantsStreamRuns () const final |
Public Member Functions inherited from edm::global::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
~EDProducerBase () override | |
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 () | |
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
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, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
~ProducerBase () noexcept(false) override | |
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 |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) 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::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Attributes | |
bool | computeMiniIso_ |
std::vector< double > | miniIsoParams_ [2] |
edm::EDGetTokenT< pat::PackedCandidateCollection > | pcToken_ |
bool | recomputeMuonBasicSelectors_ |
edm::EDGetTokenT< std::vector< T > > | src_ |
edm::EDGetTokenT< std::vector< reco::Vertex > > | vertices_ |
Additional Inherited Members | |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | 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 19 of file LeptonUpdater.cc.
|
inlineexplicit |
Definition at line 23 of file LeptonUpdater.cc.
References pat::LeptonUpdater< T >::computeMiniIso_, edm::ParameterSet::getParameter(), pat::LeptonUpdater< T >::pcToken_, pat::LeptonUpdater< T >::readMiniIsoParams(), and pat::LeptonUpdater< T >::recomputeMuonBasicSelectors_.
|
inlineoverride |
Definition at line 38 of file LeptonUpdater.cc.
References pat::LeptonUpdater< T >::produce().
|
inlinestatic |
Definition at line 42 of file LeptonUpdater.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and edm::ParameterSetDescription::addOptional().
|
inline |
Definition at line 65 of file LeptonUpdater.cc.
References pat::LeptonUpdater< T >::miniIsoParams_, and pat::LeptonUpdater< T >::recomputeMuonBasicSelectors().
Referenced by pat::LeptonUpdater< T >::produce().
const std::vector< double > & pat::LeptonUpdater< pat::Electron >::miniIsoParams | ( | const pat::Electron & | lep | ) | const |
Definition at line 101 of file LeptonUpdater.cc.
References reco::GsfElectron::isEE(), and pat::LeptonUpdater< T >::miniIsoParams_.
|
overridevirtual |
Implements edm::global::EDProducerBase.
Definition at line 116 of file LeptonUpdater.cc.
References pat::LeptonUpdater< T >::computeMiniIso_, edm::Event::getByToken(), pat::getMiniPFIsolation(), mps_fire::i, pat::LeptonUpdater< T >::miniIsoParams(), eostools::move(), gen::n, MillePedeFileConverter_cfg::out, pat::LeptonUpdater< T >::pcToken_, edm::Handle< T >::product(), edm::Event::put(), MetAnalyzer::pv(), pat::LeptonUpdater< T >::recomputeMuonBasicSelectors(), pat::LeptonUpdater< T >::recomputeMuonBasicSelectors_, edm::Event::run(), pat::LeptonUpdater< T >::setDZ(), TrackRefitter_38T_cff::src, pat::LeptonUpdater< T >::src_, electrons_cff::vertices, and pat::LeptonUpdater< T >::vertices_.
Referenced by pat::LeptonUpdater< T >::~LeptonUpdater().
|
inline |
Definition at line 61 of file LeptonUpdater.cc.
References edm::ParameterSet::getParameter(), pat::LeptonUpdater< T >::miniIsoParams_, and findQualityFiles::size.
Referenced by pat::LeptonUpdater< T >::LeptonUpdater().
void pat::LeptonUpdater< pat::Electron >::readMiniIsoParams | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 94 of file LeptonUpdater.cc.
References edm::ParameterSet::getParameter(), pat::LeptonUpdater< T >::miniIsoParams_, and findQualityFiles::size.
void pat::LeptonUpdater< T >::recomputeMuonBasicSelectors | ( | T & | lep, |
const reco::Vertex & | pv, | ||
const bool | do_hip_mitigation_2016 | ||
) | const |
Definition at line 106 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::miniIsoParams(), and pat::LeptonUpdater< T >::produce().
void pat::LeptonUpdater< pat::Muon >::recomputeMuonBasicSelectors | ( | pat::Muon & | lep, |
const reco::Vertex & | pv, | ||
const bool | do_hip_mitigation_2016 | ||
) | const |
Definition at line 109 of file LeptonUpdater.cc.
References muon::setCutBasedSelectorFlags().
|
inline |
Definition at line 59 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::produce().
void pat::LeptonUpdater< pat::Electron >::setDZ | ( | pat::Electron & | anElectron, |
const reco::Vertex & | pv | ||
) | const |
Definition at line 82 of file LeptonUpdater.cc.
References pat::Electron::gsfTrack(), reco::Vertex::position(), pat::Electron::PVDZ, pat::Electron::setDB(), HiIsolationCommonParameters_cff::track, and reco::Vertex::zError().
void pat::LeptonUpdater< pat::Muon >::setDZ | ( | pat::Muon & | aMuon, |
const reco::Vertex & | pv | ||
) | const |
Definition at line 88 of file LeptonUpdater.cc.
References pat::Muon::muonBestTrack(), reco::Vertex::position(), pat::Muon::PVDZ, pat::Muon::setDB(), HiIsolationCommonParameters_cff::track, and reco::Vertex::zError().
|
private |
Definition at line 73 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::LeptonUpdater(), and pat::LeptonUpdater< T >::produce().
|
private |
Definition at line 75 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::miniIsoParams(), and pat::LeptonUpdater< T >::readMiniIsoParams().
|
private |
Definition at line 76 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::LeptonUpdater(), and pat::LeptonUpdater< T >::produce().
|
private |
Definition at line 74 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::LeptonUpdater(), and pat::LeptonUpdater< T >::produce().
|
private |
Definition at line 71 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::produce().
|
private |
Definition at line 72 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::produce().