Analysis Software
Documentation for sPHENIX simulation software
|
struct representing smallest grid unit in magnetic field grid More...
#include <acts/blob/sPHENIX/Core/include/Acts/MagneticField/InterpolatedBFieldMap.hpp>
Public Member Functions | |
FieldCell (std::array< double, DIM_POS > lowerLeft, std::array< double, DIM_POS > upperRight, std::array< Vector3, N > fieldValues) | |
default constructor | |
Vector3 | getField (const ActsVector< DIM_POS > &position) const |
retrieve field at given position | |
bool | isInside (const ActsVector< DIM_POS > &position) const |
check whether given 3D position is inside this field cell | |
Static Public Attributes | |
static constexpr unsigned int | N = 1 << DIM_POS |
number of corner points defining the confining hyper-box | |
Private Attributes | |
std::array< double, DIM_POS > | m_lowerLeft |
generalized lower-left corner of the confining hyper-box | |
std::array< double, DIM_POS > | m_upperRight |
generalized upper-right corner of the confining hyper-box | |
std::array< Vector3, N > | m_fieldValues |
magnetic field vectors at the hyper-box corners | |
struct representing smallest grid unit in magnetic field grid
This type encapsulate all required information to perform linear interpolation of magnetic field values within a confined 3D volume.
Definition at line 86 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 86 of file InterpolatedBFieldMap.hpp
|
inline |
default constructor
[in] | lowerLeft | generalized lower-left corner of hyper box (containing the minima of the hyper box along each Dimension) |
[in] | upperRight | generalized upper-right corner of hyper box (containing the maxima of the hyper box along each Dimension) |
[in] | fieldValues | field values at the hyper box corners sorted in the canonical order defined in Acts::interpolate |
Definition at line 101 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 101 of file InterpolatedBFieldMap.hpp
|
inline |
retrieve field at given position
[in] | position | global 3D position |
position
must lie within the current field cell. Definition at line 114 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 114 of file InterpolatedBFieldMap.hpp
References Acts::interpolate(), Acts::InterpolatedBFieldMap< grid_t >::FieldCell::m_fieldValues, Acts::InterpolatedBFieldMap< grid_t >::FieldCell::m_lowerLeft, and Acts::InterpolatedBFieldMap< grid_t >::FieldCell::m_upperRight.
|
inline |
check whether given 3D position is inside this field cell
[in] | position | global 3D position |
true
if position is inside the current field cell, otherwise false
Definition at line 124 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 124 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< grid_t >::DIM_POS, i, Acts::InterpolatedBFieldMap< grid_t >::FieldCell::m_lowerLeft, and Acts::InterpolatedBFieldMap< grid_t >::FieldCell::m_upperRight.
|
private |
magnetic field vectors at the hyper-box corners
Definition at line 144 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 144 of file InterpolatedBFieldMap.hpp
Referenced by Acts::InterpolatedBFieldMap< grid_t >::FieldCell::getField().
|
private |
generalized lower-left corner of the confining hyper-box
Definition at line 135 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 135 of file InterpolatedBFieldMap.hpp
Referenced by Acts::InterpolatedBFieldMap< grid_t >::FieldCell::getField(), and Acts::InterpolatedBFieldMap< grid_t >::FieldCell::isInside().
|
private |
generalized upper-right corner of the confining hyper-box
Definition at line 138 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 138 of file InterpolatedBFieldMap.hpp
Referenced by Acts::InterpolatedBFieldMap< grid_t >::FieldCell::getField(), and Acts::InterpolatedBFieldMap< grid_t >::FieldCell::isInside().
|
static |
number of corner points defining the confining hyper-box
Definition at line 88 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 88 of file InterpolatedBFieldMap.hpp