Skip to content

Commit

Permalink
Bug fix to the HiPuRhoProducer.cc
Browse files Browse the repository at this point in the history
This is to prepare the backport to CMSSW 11_2_X of this PR cms-sw#36489
  • Loading branch information
FHead committed May 11, 2022
1 parent 4c19744 commit 1a5d376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoHI/HiJetAlgos/plugins/HiPuRhoProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ void HiPuRhoProducer::calculateOrphanInput(std::vector<fastjet::PseudoJet>& orph
for (auto const& im : towermap_) {
double dr2 = reco::deltaR2(im.eta, im.phi, jet_etaphi.first, jet_etaphi.second);
if (dr2 < radiusPU_ * radiusPU_ && !excludedTowers[std::pair(im.ieta, im.iphi)] &&
(im.ieta - ntowersWithJets_[im.ieta]) > minimumTowersFraction_ * im.ieta) {
(geomtowers_[im.ieta] - ntowersWithJets_[im.ieta]) > minimumTowersFraction_ * geomtowers_[im.ieta]) {
ntowersWithJets_[im.ieta]++;
excludedTowers[std::pair(im.ieta, im.iphi)] = 1;
}
Expand Down

0 comments on commit 1a5d376

Please sign in to comment.