#include <PuppiProducer.h>
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 | endJob () |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
Private Attributes | |
bool | fClonePackedCands |
float | fDZCut |
std::unique_ptr < PackedOutputCollection > | fPackedPuppiCandidates |
std::string | fPFName |
std::unique_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 322 of file PuppiProducer.cc.
|
privatevirtual |
Definition at line 325 of file PuppiProducer.cc.
Referenced by o2o.O2ORunMgr::executeJob().
|
static |
Definition at line 328 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 funct::abs(), 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, eostools::move(), 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(), SpecificationBuilder_cfi::val(), makeHLTPrescaleTable::values, and pat::PackedCandidate::vertexRef().
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
private |
Definition at line 51 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 48 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 57 of file PuppiProducer.h.
Referenced by produce().
|
private |
Definition at line 43 of file PuppiProducer.h.
|
private |
Definition at line 56 of file PuppiProducer.h.
Referenced by produce().
|
private |
Definition at line 54 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().
|
private |
Definition at line 42 of file PuppiProducer.h.
|
private |
Definition at line 44 of file PuppiProducer.h.
|
private |
Definition at line 55 of file PuppiProducer.h.
Referenced by produce().
|
private |
Definition at line 47 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 49 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 50 of file PuppiProducer.h.
Referenced by PuppiProducer().
|
private |
Definition at line 52 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 40 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().
|
private |
Definition at line 41 of file PuppiProducer.h.
Referenced by produce(), and PuppiProducer().