From eacbbcfcb149e1f9bc15eeb82f374c4799d6f3de Mon Sep 17 00:00:00 2001 From: Paul Gessinger <paul.gessinger@cern.ch> Date: Thu, 2 May 2019 12:52:31 +0200 Subject: [PATCH] fix prop result handling --- .../Acts/ActsGeometry/ActsGeometry/ActsExtrapolationTool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tracking/Acts/ActsGeometry/ActsGeometry/ActsExtrapolationTool.h b/Tracking/Acts/ActsGeometry/ActsGeometry/ActsExtrapolationTool.h index db795b317134..0d4d3f674bf4 100644 --- a/Tracking/Acts/ActsGeometry/ActsGeometry/ActsExtrapolationTool.h +++ b/Tracking/Acts/ActsGeometry/ActsGeometry/ActsExtrapolationTool.h @@ -82,7 +82,7 @@ public: std::vector<Acts::detail::Step> steps; DebugOutput::result_type debugOutput; auto res = boost::apply_visitor(visitor, *m_varProp); - if (res.ok()) { + if (!res.ok()) { ATH_MSG_ERROR("Got error during propagation:" << res.error() << ". Returning empty step vector."); return {}; @@ -139,7 +139,7 @@ private: if (!result.ok()) { return result.error(); } - auto propRes = std::move(*result); + auto& propRes = *result; auto steppingResults = propRes.template get<SteppingLogger::result_type>(); auto debugOutput = propRes.template get<DebugOutput::result_type>(); -- GitLab