Skip to content
Snippets Groups Projects
Commit b1ef19c0 authored by Ke Li's avatar Ke Li
Browse files

use the correct way to construct trackstateonsurface

parent af5805db
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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