EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Core/include/Acts/Propagator/Navigator.hpp>
Classes | |
struct | State |
Public Types | |
enum | Stage : int |
The navigation stage. More... | |
using | Surfaces = std::vector< const Surface * > |
using | SurfaceIter = std::vector< const Surface * >::iterator |
using | NavigationSurfaces = std::vector< SurfaceIntersection > |
using | NavigationSurfaceIter = NavigationSurfaces::iterator |
using | NavigationLayers = std::vector< LayerIntersection > |
using | NavigationLayerIter = NavigationLayers::iterator |
using | NavigationBoundaries = std::vector< BoundaryIntersection > |
using | NavigationBoundaryIter = NavigationBoundaries::iterator |
using | ExternalSurfaces = std::multimap< const Layer *, const Surface * > |
Public Member Functions | |
Navigator (std::shared_ptr< const TrackingGeometry > tGeometry=nullptr) | |
template<typename propagator_state_t , typename stepper_t > | |
void | status (propagator_state_t &state, const stepper_t &stepper) const |
Navigator status call, will be called in two modes. | |
template<typename propagator_state_t , typename stepper_t > | |
void | target (propagator_state_t &state, const stepper_t &stepper) const |
Navigator target call. | |
Public Attributes | |
std::shared_ptr< const TrackingGeometry > | trackingGeometry |
Tracking Geometry for this Navigator. | |
double | tolerance = s_onSurfaceTolerance |
The tolerance used to defined "reached". | |
bool | resolveSensitive = true |
bool | resolveMaterial = true |
stop at every material surface (whether it is passive or not) | |
bool | resolvePassive = false |
stop at every surface regardless what it is | |
Private Member Functions | |
template<typename propagator_state_t , typename stepper_t > | |
void | initialize (propagator_state_t &state, const stepper_t &stepper) const |
template<typename propagator_state_t , typename stepper_t , typename navigation_surfaces_t , typename navigation_iter_t > | |
bool | status (propagator_state_t &state, const stepper_t &stepper, navigation_surfaces_t &navSurfaces, const navigation_iter_t &navIter) const |
template<typename propagator_state_t , typename stepper_t > | |
bool | targetSurfaces (propagator_state_t &state, const stepper_t &stepper) const |
template<typename propagator_state_t , typename stepper_t > | |
bool | targetLayers (propagator_state_t &state, const stepper_t &stepper) const |
Target layer candidates. | |
template<typename propagator_state_t , typename stepper_t > | |
bool | targetBoundaries (propagator_state_t &state, const stepper_t &stepper) const |
template<typename propagator_state_t , typename stepper_t > | |
void | initializeTarget (propagator_state_t &state, const stepper_t &stepper) const |
template<typename propagator_state_t , typename stepper_t > | |
bool | resolveSurfaces (propagator_state_t &state, const stepper_t &stepper, const Layer *cLayer=nullptr) const |
Resolve the surfaces of this layer. | |
template<typename propagator_state_t , typename stepper_t > | |
bool | resolveLayers (propagator_state_t &state, const stepper_t &stepper) const |
template<typename propagator_state_t , typename stepper_t > | |
bool | inactive (propagator_state_t &state, const stepper_t &stepper) const |
template<typename propagator_state_t > | |
std::string | volInfo (const propagator_state_t &state) const |
Navigator class
This is an Actor to be added to the ActorList in order to navigate through the static tracking geometry setup.
The current navigation stage is cached in the state struct and updated when necessary. If any surface in the extrapolation flow is hit, it is set to the propagation satate, such that other actors can deal wit it. This navigation actor thus always needs to run first! It does two things: it figures out the order of volumes, layers and surfaces. For each propagation step, the operator() runs, which checks if the current surface (or layer/volume boundary) is reached.
The current target surface is the surface pointed to by of the iterators for the surfaces, layers or volume boundaries. If a surface is found, the state.navigation.currentSurface pointer is set. This enables subsequent actors to react. Secondly, this actor uses the ordered iterators to figure out which surface, layer or volume boundary is supposed to be hit next. It then sets the maximum step size to the path length found out by straight line intersection. If the state is not on surface, it also re-computes the step size, to make sure we end up at the desired surface.
Definition at line 114 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 114 of file Navigator.hpp
using Acts::Navigator::ExternalSurfaces = std::multimap<const Layer*, const Surface*> |
Definition at line 128 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 128 of file Navigator.hpp
Definition at line 125 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 125 of file Navigator.hpp
using Acts::Navigator::NavigationBoundaryIter = NavigationBoundaries::iterator |
Definition at line 126 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 126 of file Navigator.hpp
using Acts::Navigator::NavigationLayerIter = NavigationLayers::iterator |
Definition at line 123 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 123 of file Navigator.hpp
Definition at line 122 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 122 of file Navigator.hpp
using Acts::Navigator::NavigationSurfaceIter = NavigationSurfaces::iterator |
Definition at line 120 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 120 of file Navigator.hpp
Definition at line 119 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 119 of file Navigator.hpp
using Acts::Navigator::SurfaceIter = std::vector<const Surface*>::iterator |
Definition at line 117 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 117 of file Navigator.hpp
using Acts::Navigator::Surfaces = std::vector<const Surface*> |
Definition at line 116 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 116 of file Navigator.hpp
enum Acts::Navigator::Stage : int |
The navigation stage.
Definition at line 131 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 131 of file Navigator.hpp
|
inline |
Constructor with shared tracking geometry
tGeometry | The tracking geometry for the navigator |
Definition at line 141 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 141 of file Navigator.hpp
|
inlineprivate |
This checks if a navigation break had been triggered or navigator is misconfigured
propagator_state_t | The state type of the propagagor |
stepper_t | The type of stepper used for the propagation |
[in,out] | state | is the propagation state object |
[in] | stepper | Stepper in use |
boolean return triggers exit to stepper
Definition at line 1151 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 1151 of file Navigator.hpp
References ACTS_VERBOSE, and Acts::trackingGeometry().
|
inlineprivate |
propagator_state_t | The state type of the propagagor |
stepper_t | The type of stepper used for the propagation |
[in,out] | state | is the propagation state object |
[in] | stepper | Stepper in use |
Definition at line 419 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 419 of file Navigator.hpp
References ACTS_VERBOSE, Acts::toString(), and Acts::trackingGeometry().
Referenced by pepsimainerhic().
|
inlineprivate |
This is only called a few times every propagation/extrapolation
As a straight line estimate can lead you to the wrong destination Volume, this will be called at:
propagator_state_t | The state type of the propagagor |
stepper_t | The type of stepper used for the propagation |
[in,out] | state | is the propagation state object |
[in] | stepper | Stepper in use |
boolean return triggers exit to stepper
get the target volume from the intersection
Definition at line 942 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 942 of file Navigator.hpp
References ACTS_VERBOSE, and Acts::trackingGeometry().
|
inlineprivate |
Resolve layers.
This initializes the layer candidates when starting or when entering a new volume
propagator_state_t | The state type of the propagagor |
stepper_t | The type of stepper used for the propagation |
[in,out] | state | is the propagation state object |
[in] | stepper | Stepper in use |
Definition at line 1076 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 1076 of file Navigator.hpp
References Acts::ConstrainedStep::aborter, ACTS_VERBOSE, Acts::NavigationOptions< object_t >::targetSurface, and Acts::Logging::VERBOSE.
|
inlineprivate |
Resolve the surfaces of this layer.
propagator_state_t | The state type of the propagagor |
stepper_t | The type of stepper used for the propagation |
[in,out] | state | is the propagation state object |
[in] | stepper | Stepper in use |
[in] | cLayer | is the already assigned current layer, e.g. start layer |
boolean return triggers exit to stepper
Definition at line 1011 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 1011 of file Navigator.hpp
References Acts::ConstrainedStep::aborter, ACTS_VERBOSE, Acts::NavigationOptions< object_t >::overstepLimit, Acts::NavigationOptions< object_t >::pathLimit, Acts::s_onSurfaceTolerance, and Acts::Logging::VERBOSE.
|
inline |
Navigator status call, will be called in two modes.
(a) It initializes the Navigation stream if start volume is not yet defined:
(b) It establishes the currentSurface status during the propagation flow, currentSurface can be
propagator_state_t | is the type of Propagatgor state |
stepper_t | is the used type of the Stepper by the Propagator |
[in,out] | state | is the mutable propagator state object |
[in] | stepper | Stepper in use |
Definition at line 235 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 235 of file Navigator.hpp
References ACTS_VERBOSE, and PHG4CellDefs::undefined.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
|
inlineprivate |
If there are surfaces to be handled, check if the current state is on the surface
propagator_state_t | The state type of the propagagor |
stepper_t | The type of stepper used for the propagation |
navigation_surfaces_t | Type of the propagagor |
navigation_iter_t | Type of the navigation iterator |
[in,out] | state | is the propagation state object |
[in] | stepper | Stepper in use |
[in] | navSurfaces | is the navigation status objects |
[in] | navIter | test surface fore the status test |
Definition at line 510 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 510 of file Navigator.hpp
References ACTS_VERBOSE, and surface().
|
inline |
Navigator target call.
Call options (a) there are still surfaces to be resolved: handle those (b) there no surfaces but still layers to be resolved, handle those (c) there are no surfaces nor layers to be resolved, handle boundary
propagator_state_t | is the type of Propagatgor state |
stepper_t | is the used type of the Stepper by the Propagator |
[in,out] | state | is the mutable propagator state object |
[in] | stepper | Stepper in use |
Definition at line 367 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 367 of file Navigator.hpp
References ACTS_VERBOSE.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
|
inlineprivate |
This is the boundary check routine. If the code above set up the boundary surface iterator, we advance through them here. If we are on the boundary surface, we set the current surface to the boundary surface, and get the volume pointed at by the boundary surface. Next we unpack the layers from that volume. If the volume contains layers we set the step size to the straight line path length to the first layer. If we don't find a next volume, the navigationBreak indicator is set. This ends the navigation. Finally, the boundary iterator is cleared, so that the subsequent call goes back to the layer iteration logic.
If we are not on the current boundary surface, we try the next one. The iterator is advanced and the step size is set. If no straight line intersect is found, the boundary surface is skipped. If we are out of boundary surfaces, the navigation is terminated.
propagator_state_t | The state type of the propagagor |
stepper_t | The type of stepper used for the propagation |
[in,out] | state | is the propagation state object |
[in] | stepper | Stepper in use |
boolean return triggers exit to stepper
Definition at line 809 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 809 of file Navigator.hpp
References Acts::ConstrainedStep::aborter, ACTS_VERBOSE, Acts::NavigationOptions< object_t >::overstepLimit, Acts::NavigationOptions< object_t >::pathLimit, Acts::NavigationOptions< object_t >::startObject, and Acts::Logging::VERBOSE.
|
inlineprivate |
Target layer candidates.
We are now trying to advance to the next layer (with surfaces) Check if we are on the representing surface of the layer pointed at by navLayerIter. If so, we unpack the compatible surfaces (determined by straight line intersect), and set up the iterator so that the next status() call will enter the surface check mode above. If no surfaces are found, we skip the layer. If we unpack a surface, the step size is set to the path length to the first surface, as determined by straight line intersect.
propagator_state_t | The state type of the propagagor |
stepper_t | The type of stepper used for the propagation |
[in,out] | state | is the propagation state object |
[in] | stepper | Stepper in use |
Definition at line 649 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 649 of file Navigator.hpp
References ACTS_VERBOSE, Acts::NavigationOptions< object_t >::overstepLimit, and Acts::Logging::VERBOSE.
|
inlineprivate |
Loop over surface candidates here:
propagator_state_t | The state type of the propagagor |
stepper_t | The type of stepper used for the propagation |
[in,out] | state | is the propagation state object |
[in] | stepper | Stepper in use |
boolean return triggers exit to stepper
Definition at line 554 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 554 of file Navigator.hpp
References ACTS_VERBOSE, and surface().
|
inlineprivate |
Definition at line 1192 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 1192 of file Navigator.hpp
bool Acts::Navigator::resolveMaterial = true |
stop at every material surface (whether it is passive or not)
Definition at line 154 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 154 of file Navigator.hpp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and Acts::EventDataView3DTest::testMultiTrajectory().
bool Acts::Navigator::resolvePassive = false |
stop at every surface regardless what it is
Definition at line 156 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 156 of file Navigator.hpp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and Acts::EventDataView3DTest::testMultiTrajectory().
bool Acts::Navigator::resolveSensitive = true |
Configuration for this Navigator stop at every sensitive surface (whether it has material or not)
Definition at line 152 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 152 of file Navigator.hpp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and Acts::EventDataView3DTest::testMultiTrajectory().
double Acts::Navigator::tolerance = s_onSurfaceTolerance |
The tolerance used to defined "reached".
Definition at line 148 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 148 of file Navigator.hpp
std::shared_ptr<const TrackingGeometry> Acts::Navigator::trackingGeometry |
Tracking Geometry for this Navigator.
Definition at line 145 of file Navigator.hpp.
View newest version in sPHENIX GitHub at line 145 of file Navigator.hpp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().