Skip to content
Snippets Groups Projects
Commit efb60ebd authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'ambi-stat' into 'master'

add per-execute status of the algo decision

See merge request atlas/athena!37414
parents 9a47604e c993de3f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment