#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) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Private Member Functions | |
void | buildRemovalMask () |
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 |
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 | wantsInputProcessBlocks () |
static bool | wantsProcessBlocks () |
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 138 of file FFTJetPFPileupCleaner.cc.
References buildRemovalMask(), FakePrimaryVertices, FakePrimaryVerticesToken, PFCandidates, PFCandidatesToken, useFakePrimaryVertex, Vertices, and VerticesToken.
|
delete |
|
delete |
|
override |
Definition at line 172 of file FFTJetPFPileupCleaner.cc.
|
overrideprotectedvirtual |
|
private |
Definition at line 437 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 |
|
private |
Definition at line 262 of file FFTJetPFPileupCleaner.cc.
References funct::abs(), checkClosestZVertex, PVValHelper::dz, first, isAcceptableVtx(), gpuVertexFinder::iv, keepIfPVneighbor, reco::PFCandidate::trackRef(), reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), reco::Vertex::trackWeight(), cuda_std::upper_bound(), useFakePrimaryVertex, reco::PFCandidate::vertex(), w, z, and zAssoc.
Referenced by produce().
|
private |
Definition at line 174 of file FFTJetPFPileupCleaner.cc.
References funct::abs(), vertexNdofCut, vertexRhoCut, and vertexZmaxCut.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 243 of file FFTJetPFPileupCleaner.cc.
References cms::cuda::assert(), removalMask, and edm::shift.
Referenced by produce().
|
delete |
|
overrideprotectedvirtual |
Implements edm::EDProducer.
Definition at line 180 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(), slimmedMuons_cfi::pfCandidates, PFCandidatesToken, edm::Event::put(), removeMainVertex, removeUnassociated, reverseRemovalDecision, reco::PFCandidate::setSourceCandidatePtr(), useFakePrimaryVertex, beam_dqm_sourceclient-live_cfg::vertices, and VerticesToken.
|
private |
Definition at line 249 of file FFTJetPFPileupCleaner.cc.
References cms::cuda::assert(), removalMask, and edm::shift.
Referenced by buildRemovalMask().
|
private |
Definition at line 84 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 120 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 119 of file FFTJetPFPileupCleaner.cc.
|
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 91 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 70 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner().
|
private |
Definition at line 74 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner(), and produce().
|
private |
Definition at line 116 of file FFTJetPFPileupCleaner.cc.
Referenced by isRemovable(), and setRemovalBit().
|
private |
Definition at line 108 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 111 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 106 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 95 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 99 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 102 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 80 of file FFTJetPFPileupCleaner.cc.
Referenced by FFTJetPFPileupCleaner(), findSomeVertexWFakes(), and produce().
|
private |
Definition at line 123 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
private |
Definition at line 129 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
private |
Definition at line 126 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
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().
|
mutableprivate |
Definition at line 132 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().