ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
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
10
// GenericApproachDescriptor.h, Acts project
12
13
#pragma once
14
15
#include <algorithm>
16
#include "
Acts/Geometry/ApproachDescriptor.hpp
"
17
#include "
Acts/Geometry/BoundarySurfaceT.hpp
"
18
#include "
Acts/Geometry/GeometryContext.hpp
"
19
#include "
Acts/Utilities/Helpers.hpp
"
20
#include "
Acts/Utilities/Intersection.hpp
"
21
22
namespace
Acts {
23
31
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
62
ObjectIntersection<Surface>
approachSurface
(
63
const
GeometryContext
&
gctx
,
const
Vector3D
&
position
,
64
const
Vector3D
& direction,
const
BoundaryCheck
& bcheck)
const override
;
65
67
const
std::vector<const Surface*>&
containedSurfaces
()
const override
;
68
70
std::vector<const Surface*>&
containedSurfaces
()
override
;
71
72
private
:
74
std::vector<std::shared_ptr<const Surface>>
m_surfaces
;
75
81
std::vector<const Surface*>
m_surfaceCache
;
82
};
83
84
}
// namespace Acts
acts
blob
master
Core
include
Acts
Geometry
GenericApproachDescriptor.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration