Analysis Software
Documentation for sPHENIX simulation software
 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 
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 
42  const Surface* surface = nullptr;
44  const Portal* portal = nullptr;
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 
62 
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 
83  SurfaceCandidates::const_iterator surfaceCandidate = surfaceCandidates.cend();
84 
87 
90 
92  std::any auxiliary;
93 };
94 
95 } // namespace Experimental
96 } // namespace Acts