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
NavigationState.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file NavigationState.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2021 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/GeometryContext.hpp
"
13
#include "
Acts/Surfaces/BoundaryCheck.hpp
"
14
#include "
Acts/Utilities/Delegate.hpp
"
15
#include "
Acts/Utilities/Intersection.hpp
"
16
17
#include <any>
18
#include <vector>
19
20
namespace
Acts {
21
22
class
Surface
;
23
24
namespace
Experimental {
25
26
class
Portal;
27
class
Detector;
28
class
DetectorVolume;
29
34
struct
NavigationState
{
38
struct
SurfaceCandidate
{
40
ObjectIntersection<Surface>
objectIntersection
;
42
const
Surface
*
surface
=
nullptr
;
44
const
Portal
*
portal
=
nullptr
;
47
BoundaryCheck
boundaryCheck
=
true
;
48
};
49
52
using
SurfaceCandidates
= std::vector<SurfaceCandidate>;
53
55
Vector3
position
=
Vector3
(0., 0., 0.);
56
58
Vector3
direction
=
Vector3
(0., 0., 0.);
59
61
ActsScalar
absMomentum
= 0.;
62
64
ActsScalar
absCharge
= 0.;
65
67
Vector3
magneticField
=
Vector3
(0., 0., 0.);
68
70
const
Detector
*
currentDetector
=
nullptr
;
71
73
const
DetectorVolume
*
currentVolume
=
nullptr
;
74
76
const
Surface
*
currentSurface
=
nullptr
;
77
79
const
Portal
*
currentPortal
=
nullptr
;
80
82
SurfaceCandidates
surfaceCandidates
= {};
83
SurfaceCandidates::const_iterator
surfaceCandidate
=
surfaceCandidates
.cend();
84
86
BoundaryCheck
surfaceBoundaryCheck
=
true
;
87
89
ActsScalar
overstepTolerance
= -0.1;
90
92
std::any
auxiliary
;
93
};
94
95
}
// namespace Experimental
96
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Navigation
NavigationState.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:33
using
1.8.2 with
sPHENIX GitHub integration