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
NavigationLayer.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file NavigationLayer.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
// NavigationLayer.h, Acts project
12
13
#pragma once
14
15
#include "
Acts/Geometry/GeometryContext.hpp
"
16
#include "
Acts/Geometry/GeometryStatics.hpp
"
17
#include "
Acts/Geometry/Layer.hpp
"
18
#include "
Acts/Utilities/BinnedArray.hpp
"
19
#include "
Acts/Utilities/Definitions.hpp
"
20
21
namespace
Acts {
22
23
class
Surface
;
24
class
BinUtility;
25
31
32
class
NavigationLayer
:
public
Layer
{
33
public
:
39
static
LayerPtr
create
(std::shared_ptr<const Surface> sRepresentation,
40
double
thickness
= 0.) {
41
return
LayerPtr
(
new
NavigationLayer
(std::move(sRepresentation),
thickness
));
42
}
43
45
~NavigationLayer
()
override
;
46
54
const
Vector3D
binningPosition
(
const
GeometryContext
&
gctx
,
55
BinningValue
bValue)
const
final
;
56
58
NavigationLayer
() =
delete
;
59
61
NavigationLayer
(
const
NavigationLayer
&) =
delete
;
62
64
NavigationLayer
&
operator=
(
const
NavigationLayer
&) =
delete
;
65
68
const
Surface
&
surfaceRepresentation
() const final;
69
70
// Non-const version
71
Surface
&
surfaceRepresentation
() final;
72
81
bool
isOnLayer
(const
GeometryContext
&
gctx
, const
Vector3D
& gp,
82
const
BoundaryCheck
& bcheck =
true
) const final;
83
93
bool
resolve
(
bool
resolveSensitive,
bool
resolveMaterial,
94
bool
resolvePassive) const final;
95
96
protected:
103
NavigationLayer
(std::
shared_ptr
<const
Surface
>
surfaceRepresentation
,
104
double
thickness
);
105
111
std::
shared_ptr
<const
Surface
>
m_surfaceRepresentation
;
112
};
113
114
inline
const
Surface
&
NavigationLayer
::surfaceRepresentation()
const
{
115
return
(*m_surfaceRepresentation);
116
}
117
118
inline
Surface
&
NavigationLayer::surfaceRepresentation
() {
119
return
*(
const_cast<
Surface
*
>
(
m_surfaceRepresentation
.get()));
120
}
121
122
inline
const
Vector3D
NavigationLayer::binningPosition
(
123
const
GeometryContext
&
gctx
,
BinningValue
bValue)
const
{
124
return
m_surfaceRepresentation
->binningPosition(gctx, bValue);
125
}
126
127
inline
bool
NavigationLayer::isOnLayer
(
const
GeometryContext
&
gctx
,
128
const
Vector3D
& gp,
129
const
BoundaryCheck
& bcheck)
const
{
130
return
m_surfaceRepresentation
->isOnSurface(gctx, gp,
s_origin
, bcheck);
131
}
132
133
inline
bool
NavigationLayer::resolve
(
bool
/*resolveSensitive*/
,
134
bool
/*resolveMaterial*/
,
135
bool
/*reolvePassive*/
)
const
{
136
return
false
;
137
}
138
139
}
// namespace Acts
acts
blob
master
Core
include
Acts
Geometry
NavigationLayer.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration