#include <GsfElectronLinker.h>
Public Member Functions | |
virtual void | beginRun (edm::Run &run, const edm::EventSetup &es) |
GsfElectronLinker (const edm::ParameterSet &) | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
~GsfElectronLinker () | |
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 | |
bool | fetchCandidateCollection (edm::Handle< reco::PFCandidateCollection > &c, const edm::InputTag &tag, const edm::Event &iEvent) const |
bool | fetchGsfElectronCollection (edm::Handle< reco::GsfElectronCollection > &c, const edm::InputTag &tag, const edm::Event &iEvent) const |
void | fillValueMap (edm::Handle< reco::GsfElectronCollection > &c, const edm::OrphanHandle< reco::PFCandidateCollection > &pfHandle, edm::ValueMap< reco::PFCandidateRef >::Filler &filler) const |
Private Attributes | |
std::map< reco::GsfElectronRef, unsigned > | electronCandidateMap_ |
map GsfElectron PFCandidate (index) More... | |
edm::InputTag | inputTagGsfElectrons_ |
Input GsfElectrons. More... | |
edm::InputTag | inputTagPFCandidates_ |
Input PFCandidates. More... | |
std::string | nameOutputPF_ |
name of output collection of PFCandidate 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) |
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) |
Fills the GsfElectron Ref into the PFCandidate Produces the ValueMap <GsfElectronRef,PFCandidateRef> F. Beaudette 8 March 2011
Definition at line 23 of file GsfElectronLinker.h.
|
explicit |
Definition at line 9 of file GsfElectronLinker.cc.
References edm::ParameterSet::getParameter(), inputTagGsfElectrons_, inputTagPFCandidates_, and nameOutputPF_.
GsfElectronLinker::~GsfElectronLinker | ( | ) |
Definition at line 21 of file GsfElectronLinker.cc.
|
virtual |
|
private |
Definition at line 81 of file GsfElectronLinker.cc.
References newFWLiteAna::found, and edm::Event::getByLabel().
Referenced by produce().
|
private |
Definition at line 97 of file GsfElectronLinker.cc.
References newFWLiteAna::found, and edm::Event::getByLabel().
Referenced by produce().
|
private |
Definition at line 113 of file GsfElectronLinker.cc.
References electronCandidateMap_, edm::helper::Filler< Map >::insert(), and makeHLTPrescaleTable::values.
Referenced by produce().
|
virtual |
Implements edm::EDProducer.
Definition at line 25 of file GsfElectronLinker.cc.
References reco::PFCandidate::e, electronCandidateMap_, fetchCandidateCollection(), fetchGsfElectronCollection(), fillValueMap(), gsfElectrons_cfi::gsfElectrons, reco::PFCandidate::gsfTrackRef(), i, inputTagGsfElectrons_, inputTagPFCandidates_, nameOutputPF_, reco::PFCandidate::particleId(), reco::tau::pfCandidates(), edm::Event::put(), reco::PFCandidate::setGsfElectronRef(), reco::PFCandidate::setSourceCandidatePtr(), and ntuplemaker::status.
|
private |
map GsfElectron PFCandidate (index)
Definition at line 59 of file GsfElectronLinker.h.
Referenced by fillValueMap(), and produce().
|
private |
Input GsfElectrons.
Definition at line 53 of file GsfElectronLinker.h.
Referenced by GsfElectronLinker(), and produce().
|
private |
Input PFCandidates.
Definition at line 50 of file GsfElectronLinker.h.
Referenced by GsfElectronLinker(), and produce().
|
private |
name of output collection of PFCandidate
Definition at line 56 of file GsfElectronLinker.h.
Referenced by GsfElectronLinker(), and produce().