File indexing completed on 2025-12-11 09:40:21
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Geometry/GeometryContext.hpp"
0012 #include "ActsPlugins/ActSVG/LayerSvgConverter.hpp"
0013 #include "ActsPlugins/ActSVG/SvgUtils.hpp"
0014 #include <actsvg/core.hpp>
0015 #include <actsvg/meta.hpp>
0016
0017 namespace Acts {
0018
0019 class TrackingGeometry;
0020 class TrackingVolume;
0021
0022 }
0023
0024 namespace ActsPlugins::Svg {
0025
0026 namespace TrackingGeometryConverter {
0027
0028
0029 struct Options {
0030
0031 std::string prefix = "";
0032
0033 Acts::GeometryHierarchyMap<LayerConverter::Options> layerOptions;
0034 };
0035
0036
0037 struct State {
0038 std::vector<actsvg::svg::object> xyCrossSection;
0039 std::vector<actsvg::svg::object> zrCrossSection;
0040
0041 std::vector<actsvg::svg::object> finalViews;
0042 };
0043
0044
0045
0046
0047
0048
0049
0050
0051 std::vector<actsvg::svg::object> convert(
0052 const Acts::GeometryContext& gctx, const Acts::TrackingGeometry& tGeometry,
0053 const Options& cOptions);
0054
0055
0056
0057
0058
0059
0060
0061
0062 void convert(const Acts::GeometryContext& gctx,
0063 const Acts::TrackingVolume& tVolume, const Options& cOptions,
0064 State& cState);
0065
0066 }
0067
0068 namespace TrackingGeometryProjections {
0069
0070 struct Options {
0071 std::string prefix = "";
0072
0073 TrackingGeometryConverter::Options trackingGeometryOptions;
0074
0075 std::array<std::array<double, 2>, 2> rzAxes;
0076 std::vector<double> rzEtaLines;
0077 };
0078
0079
0080
0081
0082
0083
0084
0085
0086
0087
0088 std::array<actsvg::svg::object, 2> convert(
0089 const Acts::GeometryContext& gctx, const Acts::TrackingGeometry& tGeometry,
0090 const Options& cOptions);
0091 }
0092
0093 [[nodiscard("Not drawing svg outputs")]]
0094 std::vector<actsvg::svg::object> drawTrackingGeometry(
0095 const Acts::GeometryContext& gctx, const Acts::TrackingGeometry& tGeometry,
0096 std::variant<actsvg::views::x_y, actsvg::views::z_r> view,
0097 bool drawSurfaces = true, bool highlightMaterial = false);
0098
0099 [[nodiscard("Not drawing svg outputs")]]
0100 std::vector<actsvg::svg::object> drawSurfaceArrays(
0101 const Acts::GeometryContext& gctx, const Acts::TrackingGeometry& tGeometry);
0102
0103 }