#include <PFLinker.h>
Public Member Functions | |
virtual void | beginRun (edm::Run &run, const edm::EventSetup &es) |
PFLinker (const edm::ParameterSet &) | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
~PFLinker () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Member Functions | |
template<typename T > | |
bool | fetchCollection (edm::Handle< T > &c, const edm::InputTag &tag, const edm::Event &iEvent) const |
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::InputTag | inputTagGsfElectrons_ |
Input GsfElectrons. More... | |
edm::InputTag | inputTagMuons_ |
Input Muons. More... | |
std::vector< edm::InputTag > | inputTagPFCandidates_ |
Input PFCandidates. More... | |
edm::InputTag | inputTagPhotons_ |
Input Photons. 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::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
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 31 of file PFLinker.h.
|
explicit |
Definition at line 14 of file PFLinker.cc.
References fillMuonRefs_, edm::ParameterSet::getParameter(), inputTagGsfElectrons_, inputTagMuons_, inputTagPFCandidates_, inputTagPhotons_, edm::InputTag::label(), nameOutputElectronsPF_, nameOutputMergedPF_, nameOutputPF_, nameOutputPhotonsPF_, and producePFCandidates_.
PFLinker::~PFLinker | ( | ) |
Definition at line 58 of file PFLinker.cc.
|
virtual |
|
private |
Definition at line 221 of file PFLinker.cc.
References newFWLiteAna::found, and edm::Event::getByLabel().
|
private |
Definition at line 239 of file PFLinker.cc.
References edm::helper::Filler< Map >::fill(), edm::helper::Filler< Map >::insert(), producePFCandidates_, and makeHLTPrescaleTable::values.
|
virtual |
Implements edm::EDProducer.
Definition at line 62 of file PFLinker.cc.
References reco::PFCandidate::e, fillMuonRefs_, reco::PFCandidate::gamma, gsfElectrons_cfi::gsfElectrons, reco::PFCandidate::gsfTrackRef(), i, iEvent, inputTagGsfElectrons_, inputTagMuons_, inputTagPFCandidates_, inputTagPhotons_, edm::Ref< C, T, F >::isNonnull(), reco::PFCandidate::muonRef(), patZpeak::muons, reco::PFCandidate::mva_nothing_gamma(), nameOutputElectronsPF_, nameOutputMergedPF_, nameOutputPF_, nameOutputPhotonsPF_, reco::PFCandidate::particleId(), reco::tau::pfCandidates(), interactiveExample::photons, producePFCandidates_, edm::Event::put(), reco::PFCandidate::setGsfElectronRef(), reco::PFCandidate::setMuonRef(), reco::PFCandidate::setPhotonRef(), reco::PFCandidate::setSuperClusterRef(), ntuplemaker::status, and reco::PFCandidate::superClusterRef().
|
private |
Set muon refs and produce the value map?
Definition at line 86 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
Input GsfElectrons.
Definition at line 62 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
|
private |
Input PFCandidates.
Definition at line 59 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
|
private |
name of output ValueMap electrons
Definition at line 74 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
name of output merged ValueMap
Definition at line 80 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
name of output collection of PFCandidate
Definition at line 71 of file PFLinker.h.
Referenced by PFLinker(), and produce().
|
private |
name of output ValueMap photons
Definition at line 77 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 83 of file PFLinker.h.
Referenced by fillValueMap(), PFLinker(), and produce().