Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackingGeometrySvgConverter.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackingGeometrySvgConverter.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2022 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
14 #include <actsvg/core.hpp>
15 #include <actsvg/meta.hpp>
16 
17 namespace Acts {
18 
19 class TrackingGeometry;
20 class TrackingVolume;
21 
22 namespace Svg {
23 
24 namespace TrackingGeometryConverter {
25 
27 struct Options {
32 };
33 
35 struct State {
36  std::vector<actsvg::svg::object> xyCrossSection;
37  std::vector<actsvg::svg::object> zrCrossSection;
38 
39  std::vector<actsvg::svg::object> finalViews;
40 };
41 
49 std::vector<actsvg::svg::object> convert(const GeometryContext& gctx,
51  const Options& cOptions);
52 
60 void convert(const GeometryContext& gctx, const TrackingVolume& tVolume,
61  const Options& cOptions, State& cState);
62 
63 } // namespace TrackingGeometryConverter
64 
65 namespace TrackingGeometryProjections {
66 
67 struct Options {
69 
71 
72  std::array<std::array<Acts::ActsScalar, 2>, 2> rzAxes;
73  std::vector<ActsScalar> rzEtaLines;
74 };
75 
85 std::array<actsvg::svg::object, 2> convert(
87  const Options& cOptions);
88 } // namespace TrackingGeometryProjections
89 
90 } // namespace Svg
91 
92 } // namespace Acts