File indexing completed on 2025-07-12 07:51:25
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/EventData/SeedContainer2.hpp"
0012
0013 #include "Acts/EventData/SeedProxy2.hpp"
0014
0015 #include <limits>
0016
0017 namespace Acts::Experimental {
0018
0019 inline MutableSeedProxy2 SeedContainer2::createSeed(
0020 std::span<const SpacePointIndex2> spacePoints) noexcept {
0021 m_sizes.push_back(static_cast<std::uint8_t>(spacePoints.size()));
0022 m_spacePointOffsets.push_back(m_spacePoints.size());
0023 m_qualities.push_back(-std::numeric_limits<float>::infinity());
0024 m_vertexZs.push_back(0.f);
0025 m_spacePoints.insert(m_spacePoints.end(), spacePoints.begin(),
0026 spacePoints.end());
0027 return MutableProxyType(*this, size() - 1);
0028 }
0029
0030 inline MutableSeedProxy2 SeedContainer2::at(IndexType index) {
0031 if (index >= size()) {
0032 throw std::out_of_range("Index out of range in SeedContainer2");
0033 }
0034 return MutableProxyType(*this, index);
0035 }
0036
0037 inline ConstSeedProxy2 SeedContainer2::at(IndexType index) const {
0038 if (index >= size()) {
0039 throw std::out_of_range("Index out of range in SeedContainer2");
0040 }
0041 return ConstProxyType(*this, index);
0042 }
0043
0044 }