From a89d1a190407abfc66c26cec2fc56ad2e9d898c1 Mon Sep 17 00:00:00 2001 From: Salvatore Rappoccio Date: Thu, 6 Feb 2014 21:05:11 -0600 Subject: [PATCH] Adding accessors for setting either pt or e in correctors --- JetMETCorrections/Algorithms/src/L1FastjetCorrector.cc | 1 + JetMETCorrections/Algorithms/src/L1OffsetCorrector.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/JetMETCorrections/Algorithms/src/L1FastjetCorrector.cc b/JetMETCorrections/Algorithms/src/L1FastjetCorrector.cc index d95a262f04591..05747ff3de005 100644 --- a/JetMETCorrections/Algorithms/src/L1FastjetCorrector.cc +++ b/JetMETCorrections/Algorithms/src/L1FastjetCorrector.cc @@ -69,6 +69,7 @@ double L1FastjetCorrector::correction(const reco::Jet& fJet, double result(1.0); mCorrector->setJetEta(fJet.eta()); mCorrector->setJetPt(fJet.pt()); + mCorrector->setJetE(fJet.energy()); mCorrector->setJetA(fJet.jetArea()); mCorrector->setRho(*rho); result = mCorrector->getCorrection(); diff --git a/JetMETCorrections/Algorithms/src/L1OffsetCorrector.cc b/JetMETCorrections/Algorithms/src/L1OffsetCorrector.cc index 986ac504f7629..868a17d678e9d 100644 --- a/JetMETCorrections/Algorithms/src/L1OffsetCorrector.cc +++ b/JetMETCorrections/Algorithms/src/L1OffsetCorrector.cc @@ -73,6 +73,7 @@ double L1OffsetCorrector::correction(const reco::Jet& fJet, if (NPV > 0) { mCorrector->setJetEta(fJet.eta()); mCorrector->setJetPt(fJet.pt()); + mCorrector->setJetE(fJet.energy()); mCorrector->setNPV(NPV); result = mCorrector->getCorrection(); }