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

[PileUpJetID] Backport of #41854 (Move average calculations outside of jet constituents loop) to 13_1_X #41869

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions RecoJets/JetProducers/src/PileupJetIdAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ PileupJetIdentifier PileupJetIdAlgo::computeIdVariables(const reco::Jet* jet,
float dphi = reco::deltaPhi(*icand, *jet);
sum_deta += deta * weight2;
sum_dphi += dphi * weight2;
if (sumW2 > 0) {
ave_deta = sum_deta / sumW2;
ave_dphi = sum_dphi / sumW2;
}
}
if (sumW2 > 0) {
ave_deta = sum_deta / sumW2;
ave_dphi = sum_dphi / sumW2;
}

// // Finalize all variables
Expand Down