diff --git a/Reconstruction/Jet/JetUncertainties/Root/ELogMassEtaUncertaintyComponent.cxx b/Reconstruction/Jet/JetUncertainties/Root/ELogMassEtaUncertaintyComponent.cxx index c2464acb0637cfd0cf6dd1002f10ec7c4a77f1e0..35b63b73d789b5ef6f5085488483bde65149e84f 100644 --- a/Reconstruction/Jet/JetUncertainties/Root/ELogMassEtaUncertaintyComponent.cxx +++ b/Reconstruction/Jet/JetUncertainties/Root/ELogMassEtaUncertaintyComponent.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #include "JetUncertainties/ELogMassEtaUncertaintyComponent.h" @@ -57,7 +57,7 @@ bool ELogMassEtaUncertaintyComponent::getValidityImpl(const xAOD::Jet& jet, cons double ELogMassEtaUncertaintyComponent::getUncertaintyImpl(const xAOD::Jet& jet, const xAOD::EventInfo&) const { - return m_uncHist->getValue(jet.pt()*m_energyScale,log(getMassOverE(jet,m_massDef)),m_absEta ? fabs(jet.eta()) : jet.eta()); + return m_uncHist->getValue(jet.e()*m_energyScale,log(getMassOverE(jet,m_massDef)),m_absEta ? fabs(jet.eta()) : jet.eta()); } } // end jet namespace diff --git a/Reconstruction/Jet/JetUncertainties/Root/ELogMassUncertaintyComponent.cxx b/Reconstruction/Jet/JetUncertainties/Root/ELogMassUncertaintyComponent.cxx index 8908f04b824d83a502d060cc4b54f26ba80d569b..162aa23eeaefe745c178d24999876ce9cdcbf17c 100644 --- a/Reconstruction/Jet/JetUncertainties/Root/ELogMassUncertaintyComponent.cxx +++ b/Reconstruction/Jet/JetUncertainties/Root/ELogMassUncertaintyComponent.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #include "JetUncertainties/ELogMassUncertaintyComponent.h" @@ -49,12 +49,12 @@ ELogMassUncertaintyComponent* ELogMassUncertaintyComponent::clone() const bool ELogMassUncertaintyComponent::getValidityImpl(const xAOD::Jet& jet, const xAOD::EventInfo&) const { - return !m_validHist ? true : getValidBool(m_validHist->getValue(jet.pt()*m_energyScale,log(getMassOverE(jet,m_massDef)))); + return !m_validHist ? true : getValidBool(m_validHist->getValue(jet.e()*m_energyScale,log(getMassOverE(jet,m_massDef)))); } double ELogMassUncertaintyComponent::getUncertaintyImpl(const xAOD::Jet& jet, const xAOD::EventInfo&) const { - return m_uncHist->getValue(jet.pt()*m_energyScale,log(getMassOverE(jet,m_massDef))); + return m_uncHist->getValue(jet.e()*m_energyScale,log(getMassOverE(jet,m_massDef))); } } // end jet namespace