#include <RecoJets/FFTJetProducers/plugins/FFTJetPFPileupCleaner.cc>
Protected Member Functions | |
void | beginJob () override |
void | endJob () override |
void | produce (edm::Event &, const edm::EventSetup &) override |
Protected Member Functions inherited from edm::ProducerBase | |
ProducesCollector | producesCollector () |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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 ()=delete | |
FFTJetPFPileupCleaner (const FFTJetPFPileupCleaner &)=delete | |
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 &)=delete |
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 | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
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) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
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 139 of file FFTJetPFPileupCleaner.cc.
References buildRemovalMask(), FakePrimaryVertices, FakePrimaryVerticesToken, PFCandidates, PFCandidatesToken, useFakePrimaryVertex, Vertices, and VerticesToken.
|
override |
Definition at line 173 of file FFTJetPFPileupCleaner.cc.
|
privatedelete |
|
privatedelete |
|
overrideprotectedvirtual |
|
private |
Definition at line 438 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 453 of file FFTJetPFPileupCleaner.cc.
References DEFINE_FWK_MODULE.
|
private |
Definition at line 263 of file FFTJetPFPileupCleaner.cc.
References funct::abs(), checkClosestZVertex, PVValHelper::dz, dqmdumpme::first, isAcceptableVtx(), keepIfPVneighbor, reco::PFCandidate::trackRef(), reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), reco::Vertex::trackWeight(), mitigatedMETSequence_cff::U, useFakePrimaryVertex, reco::PFCandidate::vertex(), badGlobalMuonTaggersAOD_cff::vtx, w, z, and zAssoc.
Referenced by produce().
|
private |
Definition at line 175 of file FFTJetPFPileupCleaner.cc.
References funct::abs(), vertexNdofCut, vertexRhoCut, and vertexZmaxCut.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 244 of file FFTJetPFPileupCleaner.cc.
References OfflineHarvestingSequence_cosmic::ptype, removalMask, edm::shift, and mitigatedMETSequence_cff::U.
Referenced by produce().
|
privatedelete |
|
overrideprotected |
Definition at line 181 of file FFTJetPFPileupCleaner.cc.
References PVValHelper::eta, etaMax, FakePrimaryVerticesToken, findSomeVertexWFakes(), edm::Event::getByToken(), mps_fire::i, edm::Ref< C, T, F >::isNull(), isRemovable(), edm::HandleBase::isValid(), edm::Ref< C, T, F >::key(), eostools::move(), zmumugammaAnalyzer_cfi::pfCandidates, PFCandidatesToken, edm::Event::put(), removeMainVertex, removeUnassociated, reverseRemovalDecision, useFakePrimaryVertex, pwdgSkimBPark_cfi::vertices, and VerticesToken.
|
private |
Definition at line 250 of file FFTJetPFPileupCleaner.cc.
References OfflineHarvestingSequence_cosmic::ptype, removalMask, edm::shift, and mitigatedMETSequence_cff::U.
Referenced by buildRemovalMask().
|
private |
Definition at line 85 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 121 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 120 of file FFTJetPFPileupCleaner.cc.
|
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().
|
private |
Definition at line 92 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 71 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner().
|
private |
Definition at line 75 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner(), and produce().
|
private |
Definition at line 117 of file FFTJetPFPileupCleaner.cc.
Referenced by isRemovable(), and setRemovalBit().
|
private |
Definition at line 109 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 112 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 113 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 110 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 107 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 96 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 100 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 103 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 81 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner(), findSomeVertexWFakes(), and produce().
|
private |
Definition at line 124 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
private |
Definition at line 130 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
private |
Definition at line 127 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
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().
|
mutableprivate |
Definition at line 133 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().