Skip to content

Commit

Permalink
Merge pull request #41870 from nurfikri89/portFrom132XTo130X_puIdFix_…
Browse files Browse the repository at this point in the history
…avgOutOfLoop

[PileUpJetID] Backport of #41854 (Move average calculations outside of jet constituents loop) to 13_0_X
  • Loading branch information
cmsbuild authored Jun 6, 2023
2 parents ef6b8cb + a7e207d commit 2c89b1c
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 2c89b1c

Please sign in to comment.