Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SupportHelper.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SupportHelper.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2023 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 
12 #include "Acts/Geometry/Extent.hpp"
14 
15 #include <array>
16 #include <cstddef>
17 #include <memory>
18 #include <optional>
19 #include <vector>
20 
21 namespace Acts {
22 namespace Experimental {
23 namespace detail {
29 namespace SupportHelper {
30 
38 std::vector<std::shared_ptr<Surface>> cylindricalSupport(
39  const Transform3& transform, const std::array<ActsScalar, 6u>& bounds,
40  unsigned int splits = 1u);
41 
49 std::vector<std::shared_ptr<Surface>> discSupport(
50  const Transform3& transform, const std::array<ActsScalar, 4u>& bounds,
51  unsigned int splits = 1u);
52 
64 void addSupport(std::vector<std::shared_ptr<Surface>>& layerSurfaces,
65  std::vector<size_t>& assignToAll, const Extent& layerExtent,
66  Surface::SurfaceType layerRepresentation,
67  const std::array<ActsScalar, 5u>& layerSupportValues,
68  std::optional<Transform3> layerTransform = std::nullopt,
69  unsigned int supportSplits = 1u);
70 
71 } // namespace SupportHelper
72 } // namespace detail
73 } // namespace Experimental
74 } // namespace Acts