From bbda03e7e39c6d5235a743b81ca0547d7a5ba61b Mon Sep 17 00:00:00 2001 From: Eric Cano Date: Thu, 8 Apr 2021 16:38:29 +0200 Subject: [PATCH] Minor simplification (#614) https://github.com/cms-sw/cmssw/pull/31722#discussion_r603646172 --- RecoPixelVertexing/PixelTrackFitting/interface/RiemannFit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecoPixelVertexing/PixelTrackFitting/interface/RiemannFit.h b/RecoPixelVertexing/PixelTrackFitting/interface/RiemannFit.h index 52cf4b637fb37..3405840be2d94 100644 --- a/RecoPixelVertexing/PixelTrackFitting/interface/RiemannFit.h +++ b/RecoPixelVertexing/PixelTrackFitting/interface/RiemannFit.h @@ -93,7 +93,7 @@ namespace riemannFit { for (uint k = 0; k < n; ++k) { for (uint l = k; l < n; ++l) { for (uint i = 0; i < std::min(k, l); ++i) { - tmp(k + n, l + n) += std::abs(s_values(k) - s_values(i)) * std::abs(s_values(l) - s_values(i)) * sig2_S(i); + tmp(k + n, l + n) += std::abs((s_values(k) - s_values(i)) * (s_values(l) - s_values(i))) * sig2_S(i); } tmp(l + n, k + n) = tmp(k + n, l + n); }