forked from acts-project/acts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Implement
DirectNavigator
direction handling (acts-project#3702)
Our current implementation of the `DirectNavigator` does not handle the propagation direction which is essential if we for example reverse direction to smooth track in the Kalman filter. Apart from that I added a search mechanism in the initialization for the starting surface. --- This pull request to `Core/include/Acts/Propagator/DirectNavigator.hpp` includes changes to improve the navigation logic in the `DirectNavigator` class. The most important changes include adding new utility methods for surface navigation, updating the surface index handling, and enhancing logging for better debugging. Enhancements to navigation logic: * Added utility methods `navSurface`, `nextSurface`, `endOfSurfaces`, and `remainingSurfaces` to the `DirectNavigator` class to streamline surface navigation. (`Core/include/Acts/Propagator/DirectNavigator.hpp`) [[1]](diffhunk://#diff-56afaecc4b563cfe416f8615f35dd5ac21f706869dd2c164dd326087b3edd655R77-R100) [[2]](diffhunk://#diff-56afaecc4b563cfe416f8615f35dd5ac21f706869dd2c164dd326087b3edd655L138-R192) [[3]](diffhunk://#diff-56afaecc4b563cfe416f8615f35dd5ac21f706869dd2c164dd326087b3edd655L166-R215) [[4]](diffhunk://#diff-56afaecc4b563cfe416f8615f35dd5ac21f706869dd2c164dd326087b3edd655L186-R229) [[5]](diffhunk://#diff-56afaecc4b563cfe416f8615f35dd5ac21f706869dd2c164dd326087b3edd655L227-R279) [[6]](diffhunk://#diff-56afaecc4b563cfe416f8615f35dd5ac21f706869dd2c164dd326087b3edd655L255-R299) Updates to surface index handling: * Changed the type of `surfaceIndex` from `std::size_t` to `int` to support bidirectional navigation. (`Core/include/Acts/Propagator/DirectNavigator.hpp`) Logging improvements: * Enhanced logging in the `initialize` method to provide more detailed information about the start surface and surface sequence. (`Core/include/Acts/Propagator/DirectNavigator.hpp`)
- Loading branch information
Showing
5 changed files
with
82 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters