Public Member Functions | |
PFLinker (const edm::ParameterSet &) | |
void | produce (edm::Event &, const edm::EventSetup &) override |
~PFLinker () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
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 |
const EDProducer & | operator= (const EDProducer &)=delete |
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... | |
bool | forceElectronsInHGCAL_ |
Put Electrons within HGCAL coming from SimPFProducer. 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<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
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 25 of file PFLinker.cc.
|
explicit |
Definition at line 80 of file PFLinker.cc.
References cms::cuda::assert(), fillMuonRefs_, forceElectronsInHGCAL_, edm::ParameterSet::getParameter(), mps_fire::i, ProducerED_cfi::InputTag, inputTagGsfElectrons_, inputTagMuonMap_, inputTagMuons_, inputTagPFCandidates_, inputTagPhotons_, edm::InputTag::label(), muonTag_, nameOutputElectronsPF_, nameOutputMergedPF_, nameOutputPF_, nameOutputPhotonsPF_, producePFCandidates_, AlCaHLTBitMon_QueryRunRegistry::string, and triggerMatcherToHLTDebug_cfi::tags.
|
override |
Definition at line 126 of file PFLinker.cc.
|
private |
Definition at line 259 of file PFLinker.cc.
References trigObjTnPSource_cfi::filler, label, eostools::move(), producePFCandidates_, and contentValuesCheck::values.
|
override |
Definition at line 128 of file PFLinker.cc.
References reco::PFCandidate::e, submitPVResolutionJobs::err, fillMuonRefs_, forceElectronsInHGCAL_, reco::PFCandidate::gamma, electronIsolatorFromEffectiveArea_cfi::gsfElectrons, mps_fire::i, iEvent, inputTagGsfElectrons_, inputTagMuonMap_, inputTagMuons_, inputTagPFCandidates_, inputTagPhotons_, edm::InputTag::label(), LogDebug, eostools::move(), PDWG_BPHSkim_cff::muons, muonTag_, nameOutputElectronsPF_, nameOutputMergedPF_, nameOutputPF_, nameOutputPhotonsPF_, reco::GsfElectron::P4_COMBINATION, zmumugammaAnalyzer_cfi::pfCandidates, displacedMuons_cfi::photon, BPHMonitor_cfi::photons, producePFCandidates_, and reco::Photon::regression2.
|
private |
Set muon refs and produce the value map?
Definition at line 72 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
Put Electrons within HGCAL coming from SimPFProducer.
Definition at line 75 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
Input GsfElectrons.
Definition at line 47 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
Definition at line 55 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
Definition at line 54 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
Input PFCandidates.
Definition at line 44 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
|
private |
|
private |
name of output ValueMap electrons
Definition at line 60 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
name of output merged ValueMap
Definition at line 66 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
name of output collection of PFCandidate
Definition at line 57 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
name of output ValueMap photons
Definition at line 63 of file PFLinker.cc.
Referenced by PFLinker(), and produce().
|
private |
Flags - if true: References will be towards new collection ; if false to the original one.
Definition at line 69 of file PFLinker.cc.
Referenced by fillValueMap(), PFLinker(), and produce().