Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protection for pt=0 ghost candidates in jet flavor clustering (62X_SLHC) #9192

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions PhysicsTools/JetMCAlgos/plugins/JetFlavourClustering.cc
Expand Up @@ -467,6 +467,11 @@ JetFlavourClustering::insertGhosts(const edm::Handle<reco::GenParticleRefVector>
// insert "ghost" particles in the vector of jet constituents
for(reco::GenParticleRefVector::const_iterator it = particles->begin(); it != particles->end(); ++it)
{
if((*it)->pt() == 0)
{
edm::LogInfo("NullTransverseMomentum") << "dropping input ghost candidate with pt=0";
continue;
}
fastjet::PseudoJet p((*it)->px(),(*it)->py(),(*it)->pz(),(*it)->energy());
p*=ghostRescaling; // rescale particle momentum
p.set_user_info(new GhostInfo(isHadron, isbHadron, isParton, isLepton, *it));
Expand Down