Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PlanarSurfaceMask.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PlanarSurfaceMask.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020 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
#include "
Acts/Definitions/Algebra.hpp
"
10
#include "
Acts/Geometry/GeometryContext.hpp
"
11
#include "
Acts/Surfaces/detail/IntersectionHelper2D.hpp
"
12
#include "
Acts/Utilities/Result.hpp
"
13
14
#include <array>
15
#include <vector>
16
17
namespace
Acts {
18
class
Surface
;
19
class
AnnulusBounds;
20
class
RadialBounds;
21
}
// namespace Acts
22
23
namespace
ActsFatras {
24
26
struct
PlanarSurfaceMask
{
28
using
Segment2D
= std::array<Acts::Vector2, 2>;
29
47
Acts::Result<Segment2D>
apply
(
const
Acts::Surface
&
surface
,
48
const
Segment2D
&
segment
)
const
;
49
57
Acts::Result<Segment2D>
polygonMask
(
58
const
std::vector<Acts::Vector2>&
vertices
,
const
Segment2D
&
segment
,
59
bool
firstInside)
const
;
60
69
Acts::Result<Segment2D>
radialMask
(
const
Acts::RadialBounds
&
rBounds
,
70
const
Segment2D
&
segment
,
71
const
Segment2D
& polarSegment,
72
bool
firstInside)
const
;
73
81
Acts::Result<Segment2D>
annulusMask
(
const
Acts::AnnulusBounds
& aBounds,
82
const
Segment2D
&
segment
,
83
bool
firstInside)
const
;
84
85
Acts::detail::IntersectionHelper2D
intersector
{};
86
};
87
88
}
// namespace ActsFatras
acts
blob
sPHENIX
Fatras
include
ActsFatras
Digitization
PlanarSurfaceMask.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:41
using
1.8.2 with
sPHENIX GitHub integration