20 namespace ActsExamples {
26 inline std::vector<const Acts::BoundTrackParameters*>
29 std::vector<const Acts::BoundTrackParameters*> trackParametersPointers;
30 trackParametersPointers.reserve(trackParameters.size());
32 for (
const auto& trackParam : trackParameters) {
33 trackParametersPointers.push_back(&trackParam);
35 return trackParametersPointers;
41 inputTrackParametersHandle,
43 std::vector<Acts::BoundTrackParameters> inputTrackParameters;
44 std::vector<const Acts::BoundTrackParameters*> inputTrackPointers;
46 if (inputTrackParametersHandle.isInitialized()) {
47 const auto&
tmp = inputTrackParametersHandle(ctx);
48 inputTrackParameters =
tmp;
54 for (
auto tip : trajectories.tips()) {
55 if (!trajectories.hasTrackParameters(tip)) {
58 const auto& trackParam = trajectories.trackParameters(tip);
59 inputTrackParameters.push_back(trackParam);
60 inputTrackPointers.push_back(&trackParam);
81 protoVertices.reserve(
vertices.size());
88 protoVertex.reserve(
vertex.tracks().size());
90 for (
const auto& track :
vertex.tracks()) {
91 protoVertex.push_back(
std::distance(first, track.originalParams));
93 protoVertices.push_back(
std::move(protoVertex));