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
GenericApproachDescriptor.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GenericApproachDescriptor.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2018 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
11
#include "
Acts/Definitions/Algebra.hpp
"
12
#include "
Acts/Geometry/ApproachDescriptor.hpp
"
13
#include "
Acts/Geometry/GeometryContext.hpp
"
14
#include "
Acts/Surfaces/BoundaryCheck.hpp
"
15
#include "
Acts/Surfaces/Surface.hpp
"
16
#include "
Acts/Utilities/Helpers.hpp
"
17
#include "
Acts/Utilities/Intersection.hpp
"
18
19
#include <memory>
20
#include <utility>
21
#include <vector>
22
23
namespace
Acts {
24
25
class
Layer;
26
class
Surface
;
27
32
class
GenericApproachDescriptor
:
public
ApproachDescriptor
{
33
public
:
38
GenericApproachDescriptor
(
39
std::vector<std::shared_ptr<const Surface>> aSurfaces)
40
:
ApproachDescriptor
(),
41
m_surfaces
(std::
move
(aSurfaces)),
42
m_surfaceCache
() {
43
m_surfaceCache
=
unpack_shared_vector
(
m_surfaces
);
44
}
45
47
~GenericApproachDescriptor
()
override
=
default
;
48
52
void
registerLayer
(
const
Layer
& lay)
override
;
53
65
SurfaceIntersection
approachSurface
(
const
GeometryContext
&
gctx
,
66
const
Vector3
&
position
,
67
const
Vector3
& direction,
68
const
BoundaryCheck
& bcheck,
69
double
pLimit,
double
oLimit,
70
double
tolerance
)
const override
;
71
73
const
std::vector<const Surface*>&
containedSurfaces
()
const override
;
74
76
std::vector<const Surface*>&
containedSurfaces
()
override
;
77
78
private
:
80
std::vector<std::shared_ptr<const Surface>>
m_surfaces
;
81
87
std::vector<const Surface*>
m_surfaceCache
;
88
};
89
90
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Geometry
GenericApproachDescriptor.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:33
using
1.8.2 with
sPHENIX GitHub integration