24 namespace ActsExamples {
25 struct AlgorithmContext;
38 trajectories.reserve(
tracks.size());
44 std::optional<unsigned int> lastSeed;
47 std::vector<Acts::MultiTrajectoryTraits::IndexType> tips;
49 for (
const auto& track :
tracks) {
51 lastSeed = seedNumber(track);
54 if (seedNumber(track) != lastSeed.value()) {
56 trajectories.emplace_back(tracks.trackStateContainer(), tips,
62 lastSeed = seedNumber(track);
64 tips.push_back(track.tipIndex());
66 std::pair{track.tipIndex(),
68 track.parameters(), track.covariance(),
69 track.particleHypothesis()}});
77 trajectories.emplace_back(tracks.trackStateContainer(),
std::move(tips),
83 for (
const auto& track :
tracks) {
84 if (not track.hasReferenceSurface()) {
87 <<
" because no reference surface is set");
91 parameters.reserve(1);
92 std::vector<Acts::MultiTrajectoryTraits::IndexType> tips;
95 tips.push_back(track.tipIndex());
97 std::pair{track.tipIndex(),
99 track.parameters(), track.covariance(),
100 track.particleHypothesis()}});
102 trajectories.emplace_back(tracks.trackStateContainer(),
std::move(tips),