Analysis Software
Documentation for sPHENIX simulation software
|
This is an index grid based navigation state updator, it uses an extractor type and a filler type to handle the navigation state. More...
#include <acts/blob/sPHENIX/Core/include/Acts/Navigation/NavigationStateUpdators.hpp>
Public Types | |
using | grid_type = grid_t |
Broadcast the grid type. | |
Public Member Functions | |
IndexedUpdatorImpl (grid_type &&igrid, const std::array< BinningValue, grid_type::DIM > &icasts, const Transform3 &itr=Transform3::Identity()) | |
Constructor for a grid based surface attacher. | |
IndexedUpdatorImpl ()=delete | |
void | update (const GeometryContext &gctx, NavigationState &nState) const |
updates the navigation state with objects from the grid according to the filling type AFTER applying p3loc = transform * p3 | |
std::array< ActsScalar, grid_type::DIM > | castPosition (const Vector3 &position) const |
Public Member Functions inherited from Acts::Experimental::INavigationDelegate | |
virtual | ~INavigationDelegate ()=default |
Public Attributes | |
extractor_type | extractor |
An extractor helper to get the object(s) from the volume. | |
grid_type | grid |
The grid where the indices are stored. | |
std::array< BinningValue, grid_type::DIM > | casts {} |
These are the cast parameters - copied from constructor. | |
Transform3 | transform = Transform3::Identity() |
A transform to be applied to the position. | |
Private Member Functions | |
template<typename Array , std::size_t... idx> | |
void | fillCasts (const Vector3 &position, Array &a, std::index_sequence< idx...>) const |
This is an index grid based navigation state updator, it uses an extractor type and a filler type to handle the navigation state.
p3l = transform * p3
in order to allow shifted, transformed gridsIt can be used for volumes, surfaces at convenience
grid_t | is the type of the grid |
extractor_type | is the helper to extract the object |
filler_type | is the helper to fill the object into the nState |
Definition at line 115 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 115 of file NavigationStateUpdators.hpp
using Acts::Experimental::IndexedUpdatorImpl< grid_t, extractor_type, filler_type >::grid_type = grid_t |
Broadcast the grid type.
Definition at line 118 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 118 of file NavigationStateUpdators.hpp
|
inline |
Constructor for a grid based surface attacher.
igrid | the grid that is moved into this attacher |
icasts | is the cast values array |
itr | a transform applied to the global position |
Definition at line 136 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 136 of file NavigationStateUpdators.hpp
|
delete |
|
inline |
Cast into a lookup position
position | is the position of the update call |
Definition at line 162 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 162 of file NavigationStateUpdators.hpp
Referenced by Acts::Experimental::IndexedUpdatorImpl< VariableBoundIndexGrid1, DetectorVolumesCollection, DetectorVolumeFiller >::update().
|
inlineprivate |
Unroll the cast loop
position | is the position of the update call |
a | is the array to be filled |
Definition at line 178 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 178 of file NavigationStateUpdators.hpp
Referenced by Acts::Experimental::IndexedUpdatorImpl< VariableBoundIndexGrid1, DetectorVolumesCollection, DetectorVolumeFiller >::castPosition().
|
inline |
updates the navigation state with objects from the grid according to the filling type AFTER applying p3loc = transform * p3
gctx | is the Geometry context of this call |
nState | the navigation state to which the surfaces are attached |
Definition at line 150 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 150 of file NavigationStateUpdators.hpp
Referenced by Acts::Experimental::IndexedRootVolumeFinderBuilder::construct(), and Acts::Experimental::BoundVolumesGrid1Impl::update().
std::array<BinningValue, grid_type::DIM> Acts::Experimental::IndexedUpdatorImpl< grid_t, extractor_type, filler_type >::casts {} |
These are the cast parameters - copied from constructor.
Definition at line 127 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 127 of file NavigationStateUpdators.hpp
Referenced by Acts::Experimental::IndexedUpdatorImpl< VariableBoundIndexGrid1, DetectorVolumesCollection, DetectorVolumeFiller >::fillCasts().
extractor_type Acts::Experimental::IndexedUpdatorImpl< grid_t, extractor_type, filler_type >::extractor |
An extractor helper to get the object(s) from the volume.
Definition at line 121 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 121 of file NavigationStateUpdators.hpp
Referenced by Acts::Experimental::IndexedUpdatorImpl< VariableBoundIndexGrid1, DetectorVolumesCollection, DetectorVolumeFiller >::update().
grid_type Acts::Experimental::IndexedUpdatorImpl< grid_t, extractor_type, filler_type >::grid |
The grid where the indices are stored.
Definition at line 124 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 124 of file NavigationStateUpdators.hpp
Referenced by Acts::Experimental::BoundVolumesGrid1Impl::for(), Acts::PortalJsonConverter::toJsonDetray(), and Acts::Experimental::IndexedUpdatorImpl< VariableBoundIndexGrid1, DetectorVolumesCollection, DetectorVolumeFiller >::update().
Transform3 Acts::Experimental::IndexedUpdatorImpl< grid_t, extractor_type, filler_type >::transform = Transform3::Identity() |
A transform to be applied to the position.
Definition at line 130 of file NavigationStateUpdators.hpp.
View newest version in sPHENIX GitHub at line 130 of file NavigationStateUpdators.hpp
Referenced by Acts::Experimental::IndexedUpdatorImpl< VariableBoundIndexGrid1, DetectorVolumesCollection, DetectorVolumeFiller >::castPosition().