Skip to content

Commit

Permalink
Update HiPuRhoProducer.cc
Browse files Browse the repository at this point in the history
One-line bug fix in the jetty tower exclusion part of the code.  The bug uses ieta instead of N(ieta) to calculate the number of towers.
  • Loading branch information
FHead committed Dec 13, 2021
1 parent 0b3d20d commit 502bf13
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 @@ -464,7 +464,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 502bf13

Please sign in to comment.