Skip to content

Commit

Permalink
Merge pull request #36559 from errai-/PatJetEnergyScaleFix1230p2
Browse files Browse the repository at this point in the history
Correcting a JEC indexing bug for the pat::Jet class in association to scaleEnergy function calls
  • Loading branch information
cmsbuild authored Jan 8, 2022
2 parents 5ade6b3 + 07867f1 commit 7235ebc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DataFormats/PatCandidates/src/Jet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ void Jet::scaleEnergy(double fScale, const std::string& level) {
if (jecSetsAvailable()) {
std::vector<float> factors = {float(jec_[0].correction(0, JetCorrFactors::NONE) / fScale)};
jec_[0].insertFactor(0, std::make_pair(level, factors));
++currentJECLevel_;
}
setP4(p4() * fScale);
}
Expand Down

0 comments on commit 7235ebc

Please sign in to comment.