diff --git a/Tracking/Acts/FaserActsKalmanFilter/src/CreateTrkTrackTool.cxx b/Tracking/Acts/FaserActsKalmanFilter/src/CreateTrkTrackTool.cxx index 4928fc917e2b0bfe73e38848939690680fc3c19a..a7150f62b5daa6d951b5b27c112c8d71797c90b9 100644 --- a/Tracking/Acts/FaserActsKalmanFilter/src/CreateTrkTrackTool.cxx +++ b/Tracking/Acts/FaserActsKalmanFilter/src/CreateTrkTrackTool.cxx @@ -61,9 +61,16 @@ CreateTrkTrackTool::createTrack(const Acts::GeometryContext &gctx, const FaserAc }; } } - const Trk::TrackStateOnSurface *perState = new Trk::TrackStateOnSurface(clusterOnTrack, parm); + double nDoF = state.calibratedSize(); + const Trk::FitQualityOnSurface* quality = new Trk::FitQualityOnSurface(state.chi2(), nDoF); + const Trk::TrackStateOnSurface *perState = new Trk::TrackStateOnSurface( + clusterOnTrack, + parm, + quality, + nullptr, + typePattern); if (perState) { - finalTrajectory->insert(finalTrajectory->begin(), perState); + finalTrajectory->insert(finalTrajectory->begin(), perState); } } return;