From 737878ac37184aa9ded77435c014dc69ae8f9ec3 Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Tue, 8 Dec 2020 12:41:21 -0500 Subject: [PATCH] TrigEgammaHypo: Fix gcc11 warning. Null pointer dereference. (Looks like missing parentheses.) --- .../TrigEgammaHypo/src/TrigL2CaloLayersHypo.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigL2CaloLayersHypo.cxx b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigL2CaloLayersHypo.cxx index b01143a0c35..8d918d83bb1 100755 --- a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigL2CaloLayersHypo.cxx +++ b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigL2CaloLayersHypo.cxx @@ -1,7 +1,7 @@ // -*- C++ -*- /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ /************************************************************************** @@ -155,7 +155,7 @@ HLT::ErrorCode TrigL2CaloLayersHypo::hltExecute(const HLT::TriggerElement* outpu const xAOD::TrigEMCluster* pClus = vectorOfClusters.front(); m_preSampFrac=m_preSamp=m_monEta=m_monPhi=m_Energy=-9999.0; - if ( !pClus && (pClus->energy()>0.1) && (fabsf(pClus->eta())<2.1) ) { + if ( ! ( pClus && (pClus->energy()>0.1) && (fabsf(pClus->eta())<2.1) ) ) { msg() << MSG::WARNING << "No EM cluster in RoI" << endmsg; return HLT::OK; } -- GitLab