Skip to content
Snippets Groups Projects
Commit f48d3286 authored by Julien Maurer's avatar Julien Maurer
Browse files

Merge branch 'ATLASRECTS-7782' into '23.0'

fix for ATLASRECTS-7782

See merge request !66602
parents b0071c3c 64546e0a
No related branches found
No related tags found
2 merge requests!666682023-10-24: merge of 23.0 into main,!66602fix for ATLASRECTS-7782
...@@ -859,14 +859,20 @@ Trk::GaussianSumFitter::smootherFit( ...@@ -859,14 +859,20 @@ Trk::GaussianSumFitter::smootherFit(
// state on surface in this reverse direction // state on surface in this reverse direction
GSFTrajectory::const_reverse_iterator trackStateOnSurface = GSFTrajectory::const_reverse_iterator trackStateOnSurface =
forwardTrajectory.rbegin(); forwardTrajectory.rbegin();
bool foundMeasurement = false;
for (; trackStateOnSurface != forwardTrajectory.rend(); for (; trackStateOnSurface != forwardTrajectory.rend();
++trackStateOnSurface) { ++trackStateOnSurface) {
if (!(*trackStateOnSurface)->type(TrackStateOnSurface::Measurement)) { if (!(*trackStateOnSurface)->type(TrackStateOnSurface::Measurement)) {
smoothedTrajectory.push_back((*trackStateOnSurface)->clone()); smoothedTrajectory.push_back((*trackStateOnSurface)->clone());
} else { } else {
foundMeasurement = true;
break; break;
} }
} }
if(!foundMeasurement){
return GSFTrajectory();
}
// This is the 1st track state on surface for a measurement // This is the 1st track state on surface for a measurement
// in the reverse direction. Our starting point for the smoother // in the reverse direction. Our starting point for the smoother
const MultiComponentStateOnSurface* smootherPredictionMultiStateOnSurface = const MultiComponentStateOnSurface* smootherPredictionMultiStateOnSurface =
......
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