File indexing completed on 2026-12-06 09:47:08
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Definitions/Units.hpp"
0012 #include "Acts/Seeding/GbtsLayerConnection.hpp"
0013 #include "Acts/Seeding/GbtsLayerDescription.hpp"
0014 #include "Acts/Seeding/detail/GbtsLayer.hpp"
0015 #include "Acts/Utilities/Logger.hpp"
0016
0017 #include <cstdint>
0018 #include <map>
0019 #include <span>
0020 #include <vector>
0021
0022 namespace Acts::Experimental {
0023
0024 class GbtsNodeStorage;
0025 class GbtsTrackingFilter;
0026 class GraphBasedTrackSeeder;
0027
0028
0029
0030 struct GbtsZ0Range final {
0031
0032 float min = -168.0f * UnitConstants::mm;
0033
0034 float max = 168.0f * UnitConstants::mm;
0035 };
0036
0037
0038 class GbtsGeometry final {
0039 public:
0040
0041
0042
0043
0044
0045
0046 GbtsGeometry(std::span<const GbtsLayerDescription> layerDescriptions,
0047 std::span<const GbtsLayerConnection> layerConnections,
0048 float etaBinWidth, const GbtsZ0Range& z0Range = {},
0049 const Logger& logger = getDummyLogger());
0050
0051 private:
0052
0053 friend class GbtsNodeStorage;
0054 friend class GbtsTrackingFilter;
0055 friend class GraphBasedTrackSeeder;
0056
0057
0058
0059 std::uint32_t numBins() const { return m_nEtaBins; }
0060
0061
0062
0063 const std::vector<std::pair<std::uint32_t, std::vector<std::uint32_t>>>&
0064 binGroups() const {
0065 return m_binGroups;
0066 }
0067
0068
0069
0070
0071 const detail::GbtsLayer* layerById(std::uint32_t id) const;
0072
0073
0074
0075
0076 const detail::GbtsLayer& layerByIndex(std::int32_t idx) const;
0077
0078
0079
0080
0081 const GbtsLayerDescription& layerDescriptionByIndex(std::int32_t idx) const {
0082 return layerByIndex(idx).layerDescription();
0083 }
0084
0085
0086
0087
0088 const detail::GbtsLayer& createLayer(
0089 const GbtsLayerDescription& layerDescription, std::uint32_t bin0);
0090
0091
0092 float m_etaBinWidth{};
0093
0094
0095 std::vector<detail::GbtsLayer> m_layers;
0096
0097 std::map<std::uint32_t, std::uint32_t> m_layerFromUserIdMap;
0098
0099 std::uint32_t m_nEtaBins{};
0100
0101
0102 std::vector<std::pair<std::uint32_t, std::vector<std::uint32_t>>> m_binGroups;
0103 };
0104
0105 }