From c993de3f57e18981cb84bbb0272f0d1046e73f16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Ma=C5=A1=C3=ADk?=
 <Jiri.Masik@manchester.ac.uk>
Date: Mon, 19 Oct 2020 17:41:18 +0200
Subject: [PATCH] add per-execute status of the algo decision

---
 .../TrkAmbiguitySolver/src/TrkAmbiguitySolver.cxx            | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Tracking/TrkAlgorithms/TrkAmbiguitySolver/src/TrkAmbiguitySolver.cxx b/Tracking/TrkAlgorithms/TrkAmbiguitySolver/src/TrkAmbiguitySolver.cxx
index fd3a6a9c083..022ef6e6690 100644
--- a/Tracking/TrkAlgorithms/TrkAmbiguitySolver/src/TrkAmbiguitySolver.cxx
+++ b/Tracking/TrkAlgorithms/TrkAmbiguitySolver/src/TrkAmbiguitySolver.cxx
@@ -43,7 +43,8 @@ Trk::TrkAmbiguitySolver::execute(const EventContext& ctx) const
   ATH_MSG_VERBOSE ("TrkAmbiguitySolver::execute()");
   SG::ReadHandle<TracksScores> scoredTracksHandle(m_scoredTracksKey, ctx);
   if ( !scoredTracksHandle.isValid() )  ATH_MSG_ERROR("Could not read scoredTracks.");
-  m_trackInCount += scoredTracksHandle->size();
+  const int nInput = scoredTracksHandle->size();
+  m_trackInCount += nInput;
 
   std::unique_ptr<TrackCollection> resolvedTracks;
   resolvedTracks.reset(m_ambiTool->process(scoredTracksHandle.cptr())); //note: take ownership and delete
@@ -51,7 +52,7 @@ Trk::TrkAmbiguitySolver::execute(const EventContext& ctx) const
 
   SG::WriteHandle<TrackCollection> resolvedTracksHandle(m_resolvedTracksKey, ctx);
   ATH_CHECK(resolvedTracksHandle.record(std::move(resolvedTracks)));
-  ATH_MSG_VERBOSE ("Saved "<<resolvedTracksHandle->size()<<" tracks");
+  ATH_MSG_DEBUG ("Saved "<<resolvedTracksHandle->size()<<" tracks of " << nInput);
   return StatusCode::SUCCESS;
 }
 
-- 
GitLab