From 72cd8a3e888da387dbec0e635e20d24ec44fc025 Mon Sep 17 00:00:00 2001 From: Roberval Walsh Date: Wed, 17 Jun 2020 09:41:23 +0200 Subject: [PATCH] fix JER correction --- src/Jet.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Jet.cc b/src/Jet.cc index 2f6703f7..65d0af79 100644 --- a/src/Jet.cc +++ b/src/Jet.cc @@ -213,11 +213,7 @@ void Jet::jerInfo(const JetResolutionInfo & jerinfo, const float & drmin) void Jet::applyJER(const JetResolutionInfo & jerinfo, const float & drmin) { this -> jerInfo(jerinfo,drmin); - float pt = p4_.Pt()*this->jerCorrection(); - float eta = p4_.Eta(); - float phi = p4_.Phi(); - float e = p4_.E(); - p4_.SetPtEtaPhiE(pt,eta,phi,e); + p4_ = p4_ *this->jerCorrection(); }