#include <RecoJets/FFTJetProducers/plugins/FFTJetPFPileupCleaner.cc>
Public Member Functions | |
FFTJetPFPileupCleaner (const edm::ParameterSet &) | |
~FFTJetPFPileupCleaner () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
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 | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Protected Member Functions | |
void | beginJob () |
void | endJob () |
void | produce (edm::Event &, const edm::EventSetup &) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 |
bool | keepIfPVneighbor |
edm::InputTag | PFCandidates |
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 | vertexZmaxCut |
edm::InputTag | Vertices |
std::vector< std::pair< double, unsigned > > | zAssoc |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
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 46 of file FFTJetPFPileupCleaner.cc.
|
explicit |
Definition at line 134 of file FFTJetPFPileupCleaner.cc.
References buildRemovalMask().
FFTJetPFPileupCleaner::~FFTJetPFPileupCleaner | ( | ) |
Definition at line 163 of file FFTJetPFPileupCleaner.cc.
|
private |
|
private |
|
protectedvirtual |
Reimplemented from edm::EDProducer.
Definition at line 501 of file FFTJetPFPileupCleaner.cc.
|
private |
Definition at line 487 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().
|
protectedvirtual |
Reimplemented from edm::EDProducer.
Definition at line 507 of file FFTJetPFPileupCleaner.cc.
|
private |
Definition at line 282 of file FFTJetPFPileupCleaner.cc.
References abs, checkClosestZVertex, first, getHLTprescales::index, isAcceptableVtx(), keepIfPVneighbor, python.multivaluedict::sort(), reco::PFCandidate::trackRef(), reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), reco::Vertex::trackWeight(), useFakePrimaryVertex, reco::PFCandidate::vertex(), w(), detailsBasic3DVector::z, and zAssoc.
Referenced by produce().
|
private |
Definition at line 168 of file FFTJetPFPileupCleaner.cc.
References abs, vertexNdofCut, and vertexZmaxCut.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 257 of file FFTJetPFPileupCleaner.cc.
References removalMask, and edm::shift.
Referenced by produce().
|
private |
|
protectedvirtual |
Implements edm::EDProducer.
Definition at line 178 of file FFTJetPFPileupCleaner.cc.
References eta(), etaMax, FakePrimaryVertices, findSomeVertexWFakes(), edm::Event::getByLabel(), i, edm::Ref< C, T, F >::isNull(), isRemovable(), edm::HandleBase::isValid(), edm::Ref< C, T, F >::key(), reco::tau::pfCandidates(), PFCandidates, edm::Event::put(), removeMainVertex, removeUnassociated, reverseRemovalDecision, reco::PFCandidate::setSourceCandidatePtr(), useFakePrimaryVertex, and Vertices.
|
private |
Definition at line 266 of file FFTJetPFPileupCleaner.cc.
References removalMask, and edm::shift.
Referenced by buildRemovalMask().
|
private |
Definition at line 83 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 119 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 118 of file FFTJetPFPileupCleaner.cc.
|
private |
Definition at line 75 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 90 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().
|
private |
Definition at line 73 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 115 of file FFTJetPFPileupCleaner.cc.
Referenced by isRemovable(), and setRemovalBit().
|
private |
Definition at line 107 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 110 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 105 of file FFTJetPFPileupCleaner.cc.
Referenced by buildRemovalMask().
|
private |
Definition at line 94 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 98 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 101 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
private |
Definition at line 79 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes(), and produce().
|
private |
Definition at line 122 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
private |
Definition at line 125 of file FFTJetPFPileupCleaner.cc.
Referenced by isAcceptableVtx().
|
private |
Definition at line 74 of file FFTJetPFPileupCleaner.cc.
Referenced by produce().
|
mutableprivate |
Definition at line 128 of file FFTJetPFPileupCleaner.cc.
Referenced by findSomeVertexWFakes().