#include <RecoJets/FFTJetProducers/plugins/FFTJetPFPileupCleaner.cc>
Public Member Functions | |
FFTJetPFPileupCleaner (const edm::ParameterSet &) | |
~FFTJetPFPileupCleaner () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
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 () |
Protected Member Functions | |
void | beginJob () override |
void | endJob () override |
void | produce (edm::Event &, const edm::EventSetup &) override |
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) |
Private Member Functions | |
void | buildRemovalMask () |
FFTJetPFPileupCleaner () | |
FFTJetPFPileupCleaner (const FFTJetPFPileupCleaner &) | |
reco::VertexRef | findSomeVertexWFakes (const edm::Handle< reco::VertexCollection > &vertices, const edm::Handle< reco::VertexCollection > &fakeVertices, const reco::PFCandidate &pfcand, bool *fromFakeSet) const |
bool | isAcceptableVtx (reco::VertexCollection::const_iterator iv) const |
bool | isRemovable (reco::PFCandidate::ParticleType ptype) const |
FFTJetPFPileupCleaner & | operator= (const FFTJetPFPileupCleaner &) |
void | setRemovalBit (reco::PFCandidate::ParticleType ptype, bool onOff) |
Private Attributes | |
bool | checkClosestZVertex |
double | etaMax |
double | etaMin |
edm::InputTag | FakePrimaryVertices |
edm::EDGetTokenT < reco::VertexCollection > | FakePrimaryVerticesToken |
bool | keepIfPVneighbor |
edm::InputTag | PFCandidates |
edm::EDGetTokenT < reco::PFCandidateCollection > | PFCandidatesToken |
unsigned | removalMask |
bool | remove_e |
bool | remove_egamma_HF |
bool | remove_gamma |
bool | remove_h |
bool | remove_h0 |
bool | remove_h_HF |
bool | remove_mu |
bool | remove_X |
bool | removeMainVertex |
bool | removeUnassociated |
bool | reverseRemovalDecision |
bool | useFakePrimaryVertex |
double | vertexNdofCut |
double | vertexRhoCut |
double | vertexZmaxCut |
edm::InputTag | Vertices |
edm::EDGetTokenT < reco::VertexCollection > | VerticesToken |
std::vector< std::pair< double, unsigned > > | zAssoc |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Description: cleans up a collection of partice flow objects
Implementation: [Notes on implementation]
Definition at line 45 of file FFTJetPFPileupCleaner.cc.
|
explicit |
Definition at line 140 of file FFTJetPFPileupCleaner.cc.
References buildRemovalMask(), FakePrimaryVertices, FakePrimaryVerticesToken, PFCandidates, PFCandidatesToken, useFakePrimaryVertex, Vertices, and VerticesToken.
FFTJetPFPileupCleaner::~FFTJetPFPileupCleaner | ( | ) |
Definition at line 176 of file FFTJetPFPileupCleaner.cc.
|
private |
|
private |
|
overrideprotectedvirtual |
Reimplemented from edm::EDProducer.
Definition at line 515 of file FFTJetPFPileupCleaner.cc.
|
private |
Definition at line 501 of file FFTJetPFPileupCleaner.cc.
References reco::PFCandidate::e, reco::PFCandidate::egamma_HF, reco::PFCandidate::gamma, reco::PFCandidate::h, reco::PFCandidate::h0, reco::PFCandidate::h_HF, reco::PFCandidate::mu, remove_e, remove_egamma_HF, remove_gamma, remove_h, remove_h0, remove_h_HF, remove_mu, remove_X, setRemovalBit(), and reco::PFCandidate::X.
Referenced by FFTJetPFPileupCleaner().
|
overrideprotectedvirtual |
Reimplemented from edm::EDProducer.
Definition at line 521 of file FFTJetPFPileupCleaner.cc.
|
private |
Definition at line 296 of file FFTJetPFPileupCleaner.cc.
References funct::abs(), checkClosestZVertex, plotBeamSpotDB::first, cmsHarvester::index, isAcceptableVtx(), keepIfPVneighbor, reco::PFCandidate::trackRef(), reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), reco::Vertex::trackWeight(), useFakePrimaryVertex, reco::PFCandidate::vertex(), w, z, and zAssoc.
Referenced by produce().
|
private |
Definition at line 181 of file FFTJetPFPileupCleaner.cc.
References funct::abs(), vertexNdofCut, vertexRhoCut, and vertexZmaxCut.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 271 of file FFTJetPFPileupCleaner.cc.
References assert(), removalMask, and edm::shift.
Referenced by produce().
|
private |
|
overrideprotectedvirtual |
Implements edm::EDProducer.
Definition at line 192 of file FFTJetPFPileupCleaner.cc.
References eta, etaMax, FakePrimaryVerticesToken, findSomeVertexWFakes(), edm::Event::getByToken(), i, edm::Ref< C, T, F >::isNull(), isRemovable(), edm::HandleBase::isValid(), edm::Ref< C, T, F >::key(), reco::tau::pfCandidates(), PFCandidatesToken, edm::Event::put(), removeMainVertex, removeUnassociated, reverseRemovalDecision, reco::PFCandidate::setSourceCandidatePtr(), useFakePrimaryVertex, HLT_25ns10e33_v2_cff::vertices, and VerticesToken.
|
private |
Definition at line 280 of file FFTJetPFPileupCleaner.cc.
References assert(), removalMask, and edm::shift.
Referenced by buildRemovalMask().
|
private |
Definition at line 86 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 122 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 121 of file FFTJetPFPileupCleaner.cc.
|
private |
Definition at line 74 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner().
|
private |
Definition at line 78 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner(), and produce().
|
private |
Definition at line 93 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 72 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner().
|
private |
Definition at line 76 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner(), and produce().
|
private |
Definition at line 118 of file FFTJetPFPileupCleaner.cc.
Referenced by isRemovable(), and setRemovalBit().
|
private |
Definition at line 110 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 115 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 112 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 109 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 113 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 114 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 111 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 108 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 97 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 101 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 104 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 82 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner(), findSomeVertexWFakes(), and produce().
|
private |
Definition at line 125 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
private |
Definition at line 131 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
private |
Definition at line 128 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
private |
Definition at line 73 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner().
|
private |
Definition at line 77 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner(), and produce().
|
mutableprivate |
Definition at line 134 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().