#include <PFLinker.h>
Public Member Functions | |
PFLinker (const edm::ParameterSet &) | |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
~PFLinker () | |
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) |
Private Member Functions | |
template<typename TYPE > | |
edm::ValueMap< reco::PFCandidatePtr > | fillValueMap (edm::Event &event, std::string label, edm::Handle< TYPE > &inputObjCollection, const std::map< edm::Ref< TYPE >, reco::PFCandidatePtr > &mapToTheCandidate, const edm::OrphanHandle< reco::PFCandidateCollection > &newPFCandColl) const |
Private Attributes | |
bool | fillMuonRefs_ |
Set muon refs and produce the value map? More... | |
edm::EDGetTokenT< reco::GsfElectronCollection > | inputTagGsfElectrons_ |
Input GsfElectrons. More... | |
edm::EDGetTokenT< reco::MuonToMuonMap > | inputTagMuonMap_ |
edm::EDGetTokenT< reco::MuonCollection > | inputTagMuons_ |
std::vector< edm::EDGetTokenT< reco::PFCandidateCollection > > | inputTagPFCandidates_ |
Input PFCandidates. More... | |
edm::EDGetTokenT< reco::PhotonCollection > | inputTagPhotons_ |
Input Photons. More... | |
edm::InputTag | muonTag_ |
Input Muons. More... | |
std::string | nameOutputElectronsPF_ |
name of output ValueMap electrons More... | |
std::string | nameOutputMergedPF_ |
name of output merged ValueMap More... | |
std::string | nameOutputPF_ |
name of output collection of PFCandidate More... | |
std::string | nameOutputPhotonsPF_ |
name of output ValueMap photons More... | |
bool | producePFCandidates_ |
Flags - if true: References will be towards new collection ; if false to the original one. More... | |
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 |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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) |
Producer meant for the Post PF reconstruction.
Fills the GsfElectron, Photon and Muon Ref into the PFCandidate Produces the ValueMap between GsfElectronRef/Photon/Mupns with PFCandidateRef
Definition at line 34 of file PFLinker.h.
|
explicit |
Definition at line 9 of file PFLinker.cc.
References fillMuonRefs_, edm::ParameterSet::getParameter(), mps_fire::i, inputTagGsfElectrons_, inputTagMuonMap_, inputTagMuons_, inputTagPFCandidates_, inputTagPhotons_, edm::InputTag::label(), muonTag_, nameOutputElectronsPF_, nameOutputMergedPF_, nameOutputPF_, nameOutputPhotonsPF_, producePFCandidates_, and AlCaHLTBitMon_QueryRunRegistry::string.
PFLinker::~PFLinker | ( | ) |
Definition at line 60 of file PFLinker.cc.
|
private |
Definition at line 201 of file PFLinker.cc.
References objects.autophobj::filler, eostools::move(), producePFCandidates_, and MuonErrorMatrixValues_cff::values.
|
overridevirtual |
Definition at line 62 of file PFLinker.cc.
References reco::PFCandidate::e, fillMuonRefs_, reco::PFCandidate::gamma, edm::Event::getByToken(), gsfElectrons_cfi::gsfElectrons, reco::PFCandidate::gsfTrackRef(), mps_fire::i, iEvent, inputTagGsfElectrons_, inputTagMuonMap_, inputTagMuons_, inputTagPFCandidates_, inputTagPhotons_, edm::Ref< C, T, F >::isNonnull(), edm::InputTag::label(), eostools::move(), reco::PFCandidate::muonRef(), electronCleaner_cfi::muons, muonTag_, reco::PFCandidate::mva_nothing_gamma(), nameOutputElectronsPF_, nameOutputMergedPF_, nameOutputPF_, nameOutputPhotonsPF_, reco::GsfElectron::P4_COMBINATION, reco::PFCandidate::particleId(), slimmedMuons_cfi::pfCandidates, jetCleaner_cfi::photons, producePFCandidates_, edm::Event::put(), reco::Photon::regression2, reco::PFCandidate::setDeltaP(), reco::PFCandidate::setEcalEnergy(), reco::PFCandidate::setGsfElectronRef(), reco::PFCandidate::setMuonRef(), reco::LeafCandidate::setP4(), reco::PFCandidate::setPhotonRef(), reco::PFCandidate::setSuperClusterRef(), and reco::PFCandidate::superClusterRef().
|
private |
Set muon refs and produce the value map?
Definition at line 82 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
Input GsfElectrons.
Definition at line 57 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
Definition at line 65 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
Definition at line 64 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
Input PFCandidates.
Definition at line 54 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
|
private |
|
private |
name of output ValueMap electrons
Definition at line 70 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
name of output merged ValueMap
Definition at line 76 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
name of output collection of PFCandidate
Definition at line 67 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
name of output ValueMap photons
Definition at line 73 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
Flags - if true: References will be towards new collection ; if false to the original one.
Definition at line 79 of file PFLinker.h.
Referenced by fillValueMap(), PFLinker(), and produce().