|
ACTS
Experiment-independent tracking
|
Captures the common functionality of the try-all navigators. More...
#include <Acts/Propagator/TryAllNavigator.hpp>
Classes | |
| struct | Config |
| Configuration for this Navigator. More... | |
| struct | Options |
| Options for this Navigator. More... | |
| struct | State |
| Nested State struct. More... | |
Public Member Functions | |
| TryAllNavigatorBase (Config cfg, std::unique_ptr< const Logger > logger) | |
| Constructor with configuration object. | |
| const Surface * | currentSurface (const State &state) const |
| Get the current surface from the navigation state. | |
| const TrackingVolume * | currentVolume (const State &state) const |
| Get the current tracking volume from the navigation state. | |
| const IVolumeMaterial * | currentVolumeMaterial (const State &state) const |
| Get the material of the current tracking volume. | |
| bool | endOfWorldReached (State &state) const |
| Check if the end of the world has been reached. | |
| Result< void > | initialize (State &state, const Vector3 &position, const Vector3 &direction, Direction propagationDirection) const |
| Initialize the navigator. | |
| bool | navigationBreak (const State &state) const |
| Check if navigation has been interrupted. | |
| const Surface * | startSurface (const State &state) const |
| Get the start surface from the navigation state. | |
| const Surface * | targetSurface (const State &state) const |
| Get the target surface from the navigation state. | |
Protected Member Functions | |
| void | initializeVolumeCandidates (State &state) const |
| Helper method to initialize navigation candidates for the current volume. | |
| const Logger & | logger () const |
| Get the logger instance. | |
| std::string | volInfo (const State &state) const |
| Get volume information string for logging. | |
Protected Attributes | |
| Config | m_cfg |
| Configuration object for this navigator. | |
| std::unique_ptr< const Logger > | m_logger |
| Logger instance for this navigator. | |
Captures the common functionality of the try-all navigators.
This class is not meant to be used directly, but to be inherited by the actual navigator implementations.
| Acts::TryAllNavigatorBase::TryAllNavigatorBase | ( | Config | cfg, |
| std::unique_ptr< const Logger > | logger ) |
Constructor with configuration object.
| cfg | The navigator configuration |
| logger | a logger instance |
Get the current surface from the navigation state.
| state | The navigation state |
| const TrackingVolume * Acts::TryAllNavigatorBase::currentVolume | ( | const State & | state | ) | const |
Get the current tracking volume from the navigation state.
| state | The navigation state |
| const IVolumeMaterial * Acts::TryAllNavigatorBase::currentVolumeMaterial | ( | const State & | state | ) | const |
Get the material of the current tracking volume.
| state | The navigation state |
| bool Acts::TryAllNavigatorBase::endOfWorldReached | ( | State & | state | ) | const |
Check if the end of the world has been reached.
| state | The navigation state |
|
nodiscard |
Initialize the navigator.
This method initializes the navigator for a new propagation. It sets the current volume and surface to the start volume and surface, respectively.
| state | The navigation state |
| position | The starting position |
| direction | The starting direction |
| propagationDirection | The propagation direction |
|
protected |
Helper method to initialize navigation candidates for the current volume.
| state | Navigation state to initialize candidates for |
|
protected |
Get the logger instance.
| bool Acts::TryAllNavigatorBase::navigationBreak | ( | const State & | state | ) | const |
Check if navigation has been interrupted.
| state | The navigation state |
Get the start surface from the navigation state.
| state | The navigation state |
Get the target surface from the navigation state.
| state | The navigation state |
|
protected |
Get volume information string for logging.
| state | The navigation state |
|
protected |
Configuration object for this navigator.
|
protected |
Logger instance for this navigator.