Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
swagata87 committed Nov 3, 2023
1 parent 72c76c8 commit 58fbc98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ std::array<double, 4> FixedGridRhoProducerFastjetFromRecHit::getHitP4(const DetI

//HCAL noise cleaning cuts.
bool FixedGridRhoProducerFastjetFromRecHit::passedHcalNoiseCut(const HBHERecHit &hit, float thres) const {
const auto thisDetId = hit.id();
const auto thisDepth = thisDetId.depth();
if (!cutsFromDB) {
const auto thisDetId = hit.id();
const auto thisDepth = thisDetId.depth();
return (thisDetId.subdet() == HcalBarrel && hit.energy() > eThresHB_[thisDepth - 1]) ||
(thisDetId.subdet() == HcalEndcap && hit.energy() > eThresHE_[thisDepth - 1]);
} else {
Expand Down

0 comments on commit 58fbc98

Please sign in to comment.