Commit e79374cd authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch '22.0-unique_ptr_TSoS-InDetExtensionProcessor' into 'master'

use all-unique_ptr constructor for TSoS

See merge request atlas/athena!46777
parents 0844a8f5 8e498619
......@@ -454,7 +454,7 @@ InDet::InDetExtensionProcessor::trackPlusExtension(
constexpr std::bitset<Trk::TrackStateOnSurface::NumberOfTrackStateOnSurfaceTypes> outlierPattern(outlierDigit);
//create new track state on surface
auto createNewTSOS = [outlierPattern](const Trk::MeasurementBase* pm) -> const Trk::TrackStateOnSurface*{
return new Trk::TrackStateOnSurface(pm->clone(), nullptr, nullptr, nullptr, outlierPattern);
return new Trk::TrackStateOnSurface(pm->uniqueClone(), nullptr, nullptr, nullptr, outlierPattern);
//Adding to cosmic tracks beginning or end depending on the direction of track
auto addNewTSOS_ForCosmics = [&pExtendedTrajectory, siTrack, createNewTSOS](const Trk::MeasurementBase* pm) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment