|
| FFTJetPFPileupCleaner (const edm::ParameterSet &) |
|
| ~FFTJetPFPileupCleaner () override |
|
| EDProducer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
void | beginJob () override |
|
void | endJob () override |
|
void | produce (edm::Event &, const edm::EventSetup &) override |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
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...
|
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Description: cleans up a collection of partice flow objects
Implementation: [Notes on implementation]
Definition at line 45 of file FFTJetPFPileupCleaner.cc.
Definition at line 263 of file FFTJetPFPileupCleaner.cc.
267 typedef reco::VertexCollection::const_iterator IV;
270 *fromFakeSet =
false;
274 unsigned nFoundVertex = 0;
279 double bestweight = 0.0;
280 for (IV iv =
vertices->begin(); iv != vertend; ++iv, ++
index)
285 IT trackend(
vtx.tracks_end());
286 for (
IT iTrack =
vtx.tracks_begin(); iTrack != trackend; ++iTrack) {
291 if (baseRef == trackBaseRef) {
293 const double w =
vtx.trackWeight(baseRef);
294 if (
w > bestweight) {
304 if (nFoundVertex > 0) {
305 if (nFoundVertex != 1)
306 edm::LogWarning(
"TrackOnTwoVertex") <<
"a track is shared by at least two vertices. "
307 <<
"Used to be an assert";
312 const double ztrack =
pfcand.vertex().z();
315 const IV fakeEnd(fakeVertices->end());
317 for (IV iv = fakeVertices->begin(); iv != fakeEnd; ++iv, ++
index)
333 const double ztrack =
pfcand.vertex().z();
334 bool foundVertex =
false;
340 for (IV iv =
vertices->begin(); iv != vertend; ++iv, ++
index)
342 zAssoc.push_back(std::pair<double, unsigned>(iv->z(),
index));
343 const unsigned numRealVertices =
index;
348 const IV fakeEnd(fakeVertices->end());
349 for (IV iv = fakeVertices->begin(); iv != fakeEnd; ++iv, ++
index)
351 zAssoc.push_back(std::pair<double, unsigned>(iv->z(),
index));
357 std::pair<double, unsigned> tPair(ztrack, UINT_MAX);
364 unsigned ich[2] = {0
U, 0
U};
367 ich[0] = iAbove - 1
U;
369 if (iAbove <
zAssoc.size())
373 double dzmin = 1.0e100;
374 unsigned bestVertexNum = UINT_MAX;
375 for (
unsigned icheck = 0; icheck < nch; ++icheck) {
376 const unsigned zAssocIndex = ich[icheck];
377 const unsigned vertexNum =
zAssoc[zAssocIndex].second;
380 bestVertexNum = vertexNum;
387 bestVertexNum = vertexNum;
391 foundVertex = bestVertexNum < UINT_MAX;
393 iVertex = bestVertexNum;
394 if (iVertex >= numRealVertices) {
396 iVertex -= numRealVertices;
403 double dzmin = 1.0e100;
405 for (IV iv =
vertices->begin(); iv != vertend; ++iv, ++
index)
416 const IV fakeEnd(fakeVertices->end());
418 for (IV iv = fakeVertices->begin(); iv != fakeEnd; ++iv, ++
index)
References funct::abs(), checkClosestZVertex, PVValHelper::dz, dqmdumpme::first, isAcceptableVtx(), keepIfPVneighbor, pfDeepBoostedJetPreprocessParams_cfi::pfcand, mitigatedMETSequence_cff::U, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, useFakePrimaryVertex, pwdgSkimBPark_cfi::vertices, extraflags_cff::vtx, w, z, and zAssoc.
Referenced by produce().
Implements edm::EDProducer.
Definition at line 181 of file FFTJetPFPileupCleaner.cc.
183 auto pOutput = std::make_unique<reco::PFCandidateCollection>();
196 throw cms::Exception(
"FFTJetBadConfig") <<
"ERROR in FFTJetPFPileupCleaner:"
197 " could not find fake vertices"
202 for (
unsigned i = 0;
i < ncand; ++
i) {
207 bool fromFakeSet =
false;
209 if (vertexref.isNull()) {
227 const double eta = candptr->p4().Eta();
236 pOutput->push_back(
cand);
237 pOutput->back().setSourceCandidatePtr(candptr);
References PVValHelper::eta, etaMax, FakePrimaryVerticesToken, findSomeVertexWFakes(), mps_fire::i, iEvent, edm::Ref< C, T, F >::isNull(), isRemovable(), edm::HandleBase::isValid(), edm::Ref< C, T, F >::key(), eostools::move(), zmumugammaAnalyzer_cfi::pfCandidates, PFCandidatesToken, MatrixUtil::remove(), removeMainVertex, removeUnassociated, reverseRemovalDecision, useFakePrimaryVertex, pwdgSkimBPark_cfi::vertices, and VerticesToken.