Skip to content
Snippets Groups Projects
Commit e09edfcd authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'GSF_QuickClose_avoid_a_clone_when_not_needed' into 'master'

GSF QuickCloseMergeComponents , avoid a clone when not needed

See merge request atlas/athena!27841
parents bd4007a9 6d96f696
No related branches found
No related tags found
No related merge requests found
......@@ -123,14 +123,12 @@ Trk::QuickCloseComponentsMultiStateMerger::merge(const Trk::MultiComponentState&
}
}
const Trk::TrackParameters* combinedState = unmergedState.begin()->first->clone();
const Trk::ComponentParameters reducedState(combinedState, 1.);
if (componentWithoutMeasurement) {
ATH_MSG_DEBUG("A track parameters object is without measurement... reducing state to single component");
const Trk::ComponentParameters reducedState(unmergedState.begin()->first->clone(), 1.);
return std::make_unique<Trk::MultiComponentState>(reducedState);
}
delete combinedState;
return mergeFullDistArray(cache, unmergedState);
}
......
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