Skip to content
Snippets Groups Projects

use the correct way to construct trackstateonsurface

Merged Ke Li requested to merge keli/calypso:fixrefit into master
1 file
+ 9
2
Compare changes
  • Side-by-side
  • Inline
@@ -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;
Loading