Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PortalHelper.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PortalHelper.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2022-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 
14 #include "Acts/Detector/Portal.hpp"
17 
18 #include <memory>
19 #include <tuple>
20 #include <vector>
21 
22 namespace Acts {
23 class Direction;
24 
25 namespace Experimental {
26 
27 class DetectorVolume;
28 class Portal;
29 
34 using PortalReplacement =
35  std::tuple<std::shared_ptr<Experimental::Portal>, unsigned int, Direction,
36  std::vector<ActsScalar>, BinningValue>;
37 
38 namespace detail {
39 namespace PortalHelper {
40 
48  const std::shared_ptr<DetectorVolume>& volume,
49  const Direction& direction);
50 
63  const GeometryContext& gctx, Portal& portal,
64  const std::vector<std::shared_ptr<DetectorVolume>>& volumes,
65  const Direction& direction, const std::vector<ActsScalar>& boundaries,
66  const BinningValue& binning);
67 
77  const GeometryContext& gctx,
78  const std::vector<std::shared_ptr<DetectorVolume>>& volumes,
79  std::vector<PortalReplacement>& pReplacements);
80 
89 std::vector<std::shared_ptr<DetectorVolume>> attachedDetectorVolumes(
90  Portal& portal) noexcept(false);
91 
92 } // namespace PortalHelper
93 } // namespace detail
94 } // namespace Experimental
95 } // namespace Acts