85 std::ostream&
operator<<(std::ostream&
os,
const TestSourceLink& sourceLink);
92 template <
typename trajectory_t>
96 typename trajectory_t::TrackStateProxy trackState) {
99 trackState.setUncalibratedSourceLink(sourceLink);
106 trackState.allocateCalibrated(2);
107 trackState.setCalibrated(meas);
111 trackState.getUncalibratedSourceLink(), sl.
parameters.head<1>(),
113 trackState.allocateCalibrated(1);
114 trackState.setCalibrated(meas);
117 throw std::runtime_error(
118 "Tried to extract measurement from invalid TestSourceLink");
125 template <
typename trajectory_t>
129 typename trajectory_t::TrackStateProxy trackState) {
130 testSourceLinkCalibratorReturn<trajectory_t>(
gctx, cctx, sourceLink,