#include <PuppiProducer.h>
Public Member Functions | |
PuppiProducer (const edm::ParameterSet &) | |
~PuppiProducer () | |
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 | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
virtual void | beginJob () |
virtual void | beginLuminosityBlock (edm::LuminosityBlock &, edm::EventSetup const &) |
virtual void | beginRun (edm::Run &, edm::EventSetup const &) |
virtual void | endJob () |
virtual void | endLuminosityBlock (edm::LuminosityBlock &, edm::EventSetup const &) |
virtual void | endRun (edm::Run &, edm::EventSetup const &) |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
Private Attributes | |
float | fDZCut |
std::string | fPFName |
std::auto_ptr< PFOutputCollection > | fPuppiCandidates |
std::unique_ptr< PuppiContainer > | fPuppiContainer |
std::string | fPuppiName |
std::string | fPVName |
std::vector< RecoObj > | fRecoObjCollection |
bool | fUseDZ |
edm::EDGetTokenT< CandidateView > | tokenPFCandidates_ |
edm::EDGetTokenT < VertexCollection > | tokenVertices_ |
Additional Inherited Members | |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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) |
Definition at line 19 of file PuppiProducer.h.
Definition at line 29 of file PuppiProducer.h.
Definition at line 26 of file PuppiProducer.h.
typedef std::vector<LorentzVector> PuppiProducer::LorentzVectorCollection |
Definition at line 27 of file PuppiProducer.h.
typedef std::vector< reco::PFCandidate > PuppiProducer::PFInputCollection |
Definition at line 30 of file PuppiProducer.h.
typedef std::vector< reco::PFCandidate > PuppiProducer::PFOutputCollection |
Definition at line 31 of file PuppiProducer.h.
Definition at line 32 of file PuppiProducer.h.
Definition at line 28 of file PuppiProducer.h.
|
explicit |
Definition at line 31 of file PuppiProducer.cc.
References fDZCut, fPuppiContainer, fUseDZ, edm::ParameterSet::getParameter(), tokenPFCandidates_, and tokenVertices_.
PuppiProducer::~PuppiProducer | ( | ) |
Definition at line 51 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 198 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 210 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 204 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 201 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 213 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 207 of file PuppiProducer.cc.
|
static |
Definition at line 216 of file PuppiProducer.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
privatevirtual |
Implements edm::stream::EDProducerBase.
Definition at line 54 of file PuppiProducer.cc.
References edm::View< T >::begin(), RecoObj::charge, RecoObj::d0, pat::PackedCandidate::dxy(), RecoObj::dZ, pat::PackedCandidate::dz(), edm::View< T >::end(), RecoObj::eta, fDZCut, edm::helper::Filler< Map >::fill(), fPuppiCandidates, fPuppiContainer, fRecoObjCollection, pat::PackedCandidate::fromPV(), fUseDZ, edm::Event::getByToken(), reco::PFCandidate::gsfTrackRef(), i, RecoObj::id, edm::helper::Filler< Map >::insert(), edm::Ref< C, T, F >::isNonnull(), RecoObj::m, RecoObj::phi, edm::Handle< T >::product(), RecoObj::pt, edm::Event::put(), pat::PackedCandidate::PVLoose, pat::PackedCandidate::PVTight, pat::PackedCandidate::PVUsedInFit, reco::LeafCandidate::setP4(), tokenPFCandidates_, tokenVertices_, reco::PFCandidate::trackRef(), reco::PFCandidate::translatePdgIdToType(), makeHLTPrescaleTable::values, pat::PackedCandidate::vertexRef(), and RecoObj::vtxId.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
private |
Definition at line 50 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 47 of file PuppiProducer.h.
|
private |
Definition at line 53 of file PuppiProducer.h.
Referenced by produce().
|
private |
Definition at line 51 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 46 of file PuppiProducer.h.
|
private |
Definition at line 48 of file PuppiProducer.h.
|
private |
Definition at line 52 of file PuppiProducer.h.
Referenced by produce().
|
private |
Definition at line 49 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 44 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 45 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().