#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 | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &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 | |
bool | fClonePackedCands |
float | fDZCut |
std::auto_ptr < PackedOutputCollection > | fPackedPuppiCandidates |
std::string | fPFName |
std::auto_ptr< PFOutputCollection > | fPuppiCandidates |
std::unique_ptr< PuppiContainer > | fPuppiContainer |
bool | fPuppiDiagnostics |
bool | fPuppiForLeptons |
std::string | fPuppiName |
std::string | fPVName |
std::vector< RecoObj > | fRecoObjCollection |
bool | fUseDZ |
bool | fUseExistingWeights |
bool | fUseWeightsNoLep |
int | fVtxNdofCut |
double | fVtxZCut |
edm::EDGetTokenT< CandidateView > | tokenPFCandidates_ |
edm::EDGetTokenT < VertexCollection > | tokenVertices_ |
Additional Inherited Members | |
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< pat::PackedCandidate > PuppiProducer::PackedOutputCollection |
Definition at line 32 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 33 of file PuppiProducer.h.
Definition at line 28 of file PuppiProducer.h.
|
explicit |
Definition at line 31 of file PuppiProducer.cc.
References fClonePackedCands, fDZCut, fPuppiContainer, fPuppiDiagnostics, fPuppiForLeptons, fUseDZ, fUseExistingWeights, fUseWeightsNoLep, fVtxNdofCut, fVtxZCut, edm::ParameterSet::getParameter(), tokenPFCandidates_, and tokenVertices_.
PuppiProducer::~PuppiProducer | ( | ) |
Definition at line 67 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 323 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 335 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 329 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 326 of file PuppiProducer.cc.
Referenced by o2o.O2ORunMgr::executeJob().
|
privatevirtual |
Definition at line 338 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 332 of file PuppiProducer.cc.
|
static |
Definition at line 341 of file PuppiProducer.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setUnknown().
|
privatevirtual |
Implements edm::stream::EDProducerBase.
Definition at line 70 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(), pat::PackedCandidate::energy(), RecoObj::eta, Exception, fClonePackedCands, fDZCut, edm::helper::Filler< Map >::fill(), fPackedPuppiCandidates, fPuppiCandidates, fPuppiContainer, fPuppiDiagnostics, fPuppiForLeptons, fRecoObjCollection, pat::PackedCandidate::fromPV(), fUseDZ, fUseExistingWeights, fVtxNdofCut, fVtxZCut, edm::Event::getByToken(), reco::PFCandidate::gsfTrackRef(), i, RecoObj::id, edm::helper::Filler< Map >::insert(), edm::Ref< C, T, F >::isNonnull(), edm::errors::LogicError, RecoObj::m, reco::LeafCandidate::p4(), RecoObj::phi, edm::Handle< T >::product(), RecoObj::pt, pat::PackedCandidate::puppiWeight(), edm::Event::put(), pat::PackedCandidate::PVLoose, pat::PackedCandidate::PVTight, pat::PackedCandidate::PVUsedInFit, pat::PackedCandidate::px(), pat::PackedCandidate::py(), pat::PackedCandidate::pz(), RecoObj::rapidity, tokenPFCandidates_, tokenVertices_, reco::PFCandidate::trackRef(), reco::PFCandidate::translatePdgIdToType(), makeHLTPrescaleTable::values, and pat::PackedCandidate::vertexRef().
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
private |
Definition at line 56 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 53 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 62 of file PuppiProducer.h.
Referenced by produce().
|
private |
Definition at line 48 of file PuppiProducer.h.
|
private |
Definition at line 61 of file PuppiProducer.h.
Referenced by produce().
|
private |
Definition at line 59 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 50 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 51 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 47 of file PuppiProducer.h.
|
private |
Definition at line 49 of file PuppiProducer.h.
|
private |
Definition at line 60 of file PuppiProducer.h.
Referenced by produce().
|
private |
Definition at line 52 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 54 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 55 of file PuppiProducer.h.
Referenced by PuppiProducer().
|
private |
Definition at line 57 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 58 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 45 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 46 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().