From 6b8c8e4e8f07596ab4485b78ee390718db59db3a Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Fri, 19 Mar 2021 14:28:57 +0100 Subject: [PATCH] tauRecTools: Fix clang warning. Loss of precision in int->float conversion. --- Reconstruction/tauRecTools/src/TauVertexFinder.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Reconstruction/tauRecTools/src/TauVertexFinder.cxx b/Reconstruction/tauRecTools/src/TauVertexFinder.cxx index dde05d7c0c33..b7aafdfd17ec 100644 --- a/Reconstruction/tauRecTools/src/TauVertexFinder.cxx +++ b/Reconstruction/tauRecTools/src/TauVertexFinder.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ #ifndef XAOD_ANALYSIS @@ -265,7 +265,7 @@ TauVertexFinder::getPV_TJVA(const xAOD::TauJet& pTau, ATH_MSG_DEBUG("TJVA vtx found at z: " << vertices.at(maxIndex)->z() ); ATH_MSG_DEBUG("highest pt vtx found at z: " << vertices.at(0)->z()); - float min_sumDz = 99999999; + float min_sumDz = 99999999.; iVertex = 0; for (const xAOD::Vertex* vert : vertices) { ATH_MSG_DEBUG("i=" << iVertex << ", z=" << vert->z() << ", JVF=" << v_jvf[iVertex] << ", sumDz=" << sumDz[iVertex]); -- GitLab