|
| FFTJetPFPileupCleaner ()=delete |
|
| FFTJetPFPileupCleaner (const edm::ParameterSet &) |
|
| FFTJetPFPileupCleaner (const FFTJetPFPileupCleaner &)=delete |
|
FFTJetPFPileupCleaner & | operator= (const FFTJetPFPileupCleaner &)=delete |
|
| ~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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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 |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
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 262 of file FFTJetPFPileupCleaner.cc.
266 typedef reco::VertexCollection::const_iterator IV;
269 *fromFakeSet =
false;
273 unsigned nFoundVertex = 0;
278 double bestweight = 0.0;
284 IT trackend(
vtx.tracks_end());
285 for (
IT iTrack =
vtx.tracks_begin(); iTrack != trackend; ++iTrack) {
290 if (baseRef == trackBaseRef) {
292 const double w =
vtx.trackWeight(baseRef);
293 if (
w > bestweight) {
303 if (nFoundVertex > 0) {
304 if (nFoundVertex != 1)
305 edm::LogWarning(
"TrackOnTwoVertex") <<
"a track is shared by at least two vertices. "
306 <<
"Used to be an assert";
311 const double ztrack =
pfcand.vertex().z();
314 const IV fakeEnd(fakeVertices->end());
316 for (IV
iv = fakeVertices->begin();
iv != fakeEnd; ++
iv, ++
index)
332 const double ztrack =
pfcand.vertex().z();
333 bool foundVertex =
false;
341 zAssoc.push_back(std::pair<double, unsigned>(
iv->z(),
index));
342 const unsigned numRealVertices =
index;
347 const IV fakeEnd(fakeVertices->end());
348 for (IV
iv = fakeVertices->begin();
iv != fakeEnd; ++
iv, ++
index)
350 zAssoc.push_back(std::pair<double, unsigned>(
iv->z(),
index));
356 std::pair<double, unsigned> tPair(ztrack, UINT_MAX);
363 unsigned ich[2] = {0
U, 0
U};
366 ich[0] = iAbove - 1
U;
368 if (iAbove <
zAssoc.size())
372 double dzmin = 1.0e100;
373 unsigned bestVertexNum = UINT_MAX;
374 for (
unsigned icheck = 0; icheck < nch; ++icheck) {
375 const unsigned zAssocIndex = ich[icheck];
376 const unsigned vertexNum =
zAssoc[zAssocIndex].second;
379 bestVertexNum = vertexNum;
386 bestVertexNum = vertexNum;
390 foundVertex = bestVertexNum < UINT_MAX;
392 iVertex = bestVertexNum;
393 if (iVertex >= numRealVertices) {
395 iVertex -= numRealVertices;
402 double dzmin = 1.0e100;
415 const IV fakeEnd(fakeVertices->end());
417 for (IV
iv = fakeVertices->begin();
iv != fakeEnd; ++
iv, ++
index)
References funct::abs(), checkClosestZVertex, PVValHelper::dz, first, isAcceptableVtx(), gpuVertexFinder::iv, keepIfPVneighbor, pfDeepBoostedJetPreprocessParams_cfi::pfcand, jetUpdater_cfi::sort, mitigatedMETSequence_cff::U, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, useFakePrimaryVertex, AlignmentTracksFromVertexSelector_cfi::vertices, extraflags_cff::vtx, w, z, and zAssoc.
Referenced by produce().
Implements edm::EDProducer.
Definition at line 180 of file FFTJetPFPileupCleaner.cc.
182 auto pOutput = std::make_unique<reco::PFCandidateCollection>();
195 throw cms::Exception(
"FFTJetBadConfig") <<
"ERROR in FFTJetPFPileupCleaner:"
196 " could not find fake vertices"
201 for (
unsigned i = 0;
i < ncand; ++
i) {
206 bool fromFakeSet =
false;
208 if (vertexref.isNull()) {
226 const double eta = candptr->p4().Eta();
235 pOutput->push_back(
cand);
236 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, AlignmentTracksFromVertexSelector_cfi::vertices, and VerticesToken.