![]() |
![]() |
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 | |
![]() | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
EDProducer & | operator= (const EDProducer &)=delete |
bool | wantsGlobalLuminosityBlocks () const final |
bool | wantsGlobalRuns () const final |
bool | wantsInputProcessBlocks () const final |
bool | wantsProcessBlocks () const final |
bool | wantsStreamLuminosityBlocks () const final |
bool | wantsStreamRuns () const final |
![]() | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
~EDProducerBase () override | |
![]() | |
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 |
std::vector< bool > const & | recordProvenanceList () 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) |
TypeLabelList const & | typeLabelList () const |
used by the fwk to register the list of products of this module More... | |
~ProducerBase () noexcept(false) override | |
![]() | |
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 | |
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
std::vector< ESResolverIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 |
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
![]() | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Attributes | |
edm::EDGetTokenT< reco::BeamSpot > | beamLineToken_ |
bool | computeMiniIso_ |
bool | fixDxySign_ |
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 | |
![]() | |
typedef EDProducerBase | ModuleType |
![]() | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
![]() | |
typedef ProductLabels | Labels |
![]() | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
![]() | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Definition at line 21 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 40 of file LeptonUpdater.cc.
|
inlinestatic |
Definition at line 44 of file LeptonUpdater.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and ProducerED_cfi::InputTag.
|
inline |
Definition at line 75 of file LeptonUpdater.cc.
References pat::LeptonUpdater< T >::miniIsoParams_.
const std::vector< double > & pat::LeptonUpdater< pat::Electron >::miniIsoParams | ( | const pat::Electron & | lep | ) | const |
Definition at line 115 of file LeptonUpdater.cc.
References reco::GsfElectron::isEE().
|
overridevirtual |
Implements edm::global::EDProducerBase.
Definition at line 134 of file LeptonUpdater.cc.
References funct::abs(), pwdgSkimBPark_cfi::beamSpot, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), pat::getMiniPFIsolation(), mps_fire::i, iEvent, edm::HandleBase::isValid(), muons_cff::miniIsoParams, eostools::move(), dqmiodumpmetadata::n, MillePedeFileConverter_cfg::out, submitPVValidationJobs::params, edm::Handle< T >::product(), muons_cff::recomputeMuonBasicSelectors, TrackRefitter_38T_cff::src, and AlignmentTracksFromVertexSelector_cfi::vertices.
|
inline |
Definition at line 70 of file LeptonUpdater.cc.
References edm::ParameterSet::getParameter(), and pat::LeptonUpdater< T >::miniIsoParams_.
Referenced by pat::LeptonUpdater< T >::LeptonUpdater().
void pat::LeptonUpdater< pat::Electron >::readMiniIsoParams | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 106 of file LeptonUpdater.cc.
References edm::ParameterSet::getParameter().
void pat::LeptonUpdater< T >::recomputeMuonBasicSelectors | ( | T & | lep, |
const reco::Vertex & | pv, | ||
const bool | do_hip_mitigation_2016 | ||
) | const |
Definition at line 120 of file LeptonUpdater.cc.
void pat::LeptonUpdater< pat::Muon >::recomputeMuonBasicSelectors | ( | pat::Muon & | lep, |
const reco::Vertex & | pv, | ||
const bool | do_hip_mitigation_2016 | ||
) | const |
Definition at line 125 of file LeptonUpdater.cc.
References muon::makeSelectorBitset(), and reco::Muon::setSelectors().
|
inline |
Definition at line 68 of file LeptonUpdater.cc.
void pat::LeptonUpdater< pat::Electron >::setDZ | ( | pat::Electron & | anElectron, |
const reco::Vertex & | pv | ||
) | const |
Definition at line 94 of file LeptonUpdater.cc.
References pat::Electron::gsfTrack(), Matriplex::hypot(), pat::Electron::PVDZ, pat::Electron::setDB(), and HLT_2024v14_cff::track.
void pat::LeptonUpdater< pat::Muon >::setDZ | ( | pat::Muon & | aMuon, |
const reco::Vertex & | pv | ||
) | const |
Definition at line 100 of file LeptonUpdater.cc.
References Matriplex::hypot(), pat::Muon::muonBestTrack(), pat::Muon::PVDZ, pat::Muon::setDB(), and HLT_2024v14_cff::track.
|
private |
Definition at line 83 of file LeptonUpdater.cc.
|
private |
Definition at line 84 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::LeptonUpdater().
|
private |
Definition at line 85 of file LeptonUpdater.cc.
|
private |
Definition at line 87 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::miniIsoParams(), and pat::LeptonUpdater< T >::readMiniIsoParams().
|
private |
Definition at line 88 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::LeptonUpdater().
|
private |
Definition at line 86 of file LeptonUpdater.cc.
Referenced by pat::LeptonUpdater< T >::LeptonUpdater().
|
private |
Definition at line 81 of file LeptonUpdater.cc.
|
private |
Definition at line 82 of file LeptonUpdater.cc.