File indexing completed on 2025-01-18 09:10:53
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Geometry/GeometryContext.hpp"
0012 #include "Acts/Geometry/ProtoLayer.hpp"
0013 #include "Acts/Utilities/AxisDefinitions.hpp"
0014 #include "Acts/Utilities/Logger.hpp"
0015
0016 #include <memory>
0017 #include <utility>
0018 #include <vector>
0019
0020 namespace Acts {
0021
0022 class Surface;
0023 struct ProtoLayer;
0024
0025
0026
0027
0028
0029
0030
0031 class ProtoLayerHelper {
0032 public:
0033 using SortingConfig = std::pair<AxisDirection, double>;
0034
0035 struct Config {};
0036
0037
0038
0039
0040 ProtoLayerHelper(const Config& ,
0041 std::unique_ptr<const Logger> logger =
0042 getDefaultLogger("ProtoLayerHelper", Logging::INFO))
0043 : m_logger(std::move(logger)) {}
0044 ~ProtoLayerHelper() = default;
0045
0046
0047
0048
0049
0050
0051
0052
0053 std::vector<ProtoLayer> protoLayers(
0054 const GeometryContext& gctx, const std::vector<const Surface*>& surfaces,
0055 const SortingConfig& sorting) const;
0056
0057
0058
0059
0060
0061
0062
0063
0064 std::vector<ProtoLayer> protoLayers(
0065 const GeometryContext& gctx, const std::vector<const Surface*>& surfaces,
0066 const std::vector<SortingConfig>& sortings) const;
0067
0068 private:
0069
0070 std::unique_ptr<const Logger> m_logger;
0071
0072
0073 const Logger& logger() const { return *m_logger; }
0074 };
0075
0076 }