ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
interpolate magnetic field value from field values on a given grid More...
#include <acts/blob/master/Core/include/Acts/MagneticField/InterpolatedBFieldMap.hpp>
Classes | |
struct | Cache |
struct | Config |
configuration object for magnetic field interpolation More... | |
Public Member Functions | |
InterpolatedBFieldMap (Config config) | |
create interpolated magnetic field map | |
Config | getConfiguration () const |
get configuration object | |
Vector3D | getField (const Vector3D &position) const |
retrieve magnetic field value | |
Vector3D | getField (const Vector3D &position, Cache &cache) const |
retrieve magnetic field value | |
Vector3D | getFieldGradient (const Vector3D &position, ActsMatrixD< 3, 3 > &) const |
retrieve magnetic field value & its gradient | |
Vector3D | getFieldGradient (const Vector3D &position, ActsMatrixD< 3, 3 > &, Cache &) const |
retrieve magnetic field value & its gradient | |
double | getScale () const |
get global scaling factor for magnetic field | |
Mapper_t | getMapper () const |
convenience method to access underlying field mapper | |
bool | isInside (const Vector3D &position) const |
check whether given 3D position is inside look-up domain | |
void | setConfiguration (const Config &config) |
update configuration | |
Private Member Functions | |
Mapper_t::FieldCell | getFieldCell (const Vector3D &position) const |
retrieve field cell for given position | |
Private Attributes | |
Config | m_config |
configuration object | |
interpolate magnetic field value from field values on a given grid
This class implements a magnetic field service which is initialized by a field map defined by:
The magnetic field value for a given global position is then determined by:
Definition at line 233 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 233 of file InterpolatedBFieldMap.hpp
|
inline |
create interpolated magnetic field map
[in] | config | configuration object |
Definition at line 266 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 266 of file InterpolatedBFieldMap.hpp
|
inline |
get configuration object
Definition at line 271 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 271 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::m_config.
|
inline |
retrieve magnetic field value
[in] | position | global 3D position |
Definition at line 278 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 278 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::m_config, and Acts::InterpolatedBFieldMap< Mapper_t >::Config::mapper.
|
inline |
retrieve magnetic field value
[in] | position | global 3D position |
[in,out] | cache | Cache object. Contains field cell used for interpolation |
Definition at line 289 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 289 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::Cache::fieldCell, and Acts::InterpolatedBFieldMap< Mapper_t >::getFieldCell().
|
inlineprivate |
retrieve field cell for given position
[in] | position | global 3D position |
position
must lie within the range of the underlying magnetic field map. Definition at line 357 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 357 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::m_config, and Acts::InterpolatedBFieldMap< Mapper_t >::Config::mapper.
Referenced by Acts::InterpolatedBFieldMap< Mapper_t >::getField().
|
inline |
retrieve magnetic field value & its gradient
[in] | position | global 3D position |
[out] | derivative | gradient of magnetic field vector as (3x3) matrix |
Definition at line 304 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 304 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::m_config, and Acts::InterpolatedBFieldMap< Mapper_t >::Config::mapper.
|
inline |
retrieve magnetic field value & its gradient
[in] | position | global 3D position |
[out] | derivative | gradient of magnetic field vector as (3x3) matrix |
[in,out] | cache | Cache object. Contains field cell used for |
Definition at line 319 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 319 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::m_config, and Acts::InterpolatedBFieldMap< Mapper_t >::Config::mapper.
|
inline |
convenience method to access underlying field mapper
Definition at line 333 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 333 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::m_config, and Acts::InterpolatedBFieldMap< Mapper_t >::Config::mapper.
|
inline |
get global scaling factor for magnetic field
Definition at line 328 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 328 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::m_config, and Acts::InterpolatedBFieldMap< Mapper_t >::Config::scale.
|
inline |
check whether given 3D position is inside look-up domain
[in] | position | global 3D position |
true
if position is inside the defined BField map, otherwise false
Definition at line 340 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 340 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::m_config, and Acts::InterpolatedBFieldMap< Mapper_t >::Config::mapper.
|
inline |
update configuration
[in] | config | new configuration object |
Definition at line 347 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 347 of file InterpolatedBFieldMap.hpp
References Acts::InterpolatedBFieldMap< Mapper_t >::m_config.
|
private |
configuration object
Definition at line 362 of file InterpolatedBFieldMap.hpp.
View newest version in sPHENIX GitHub at line 362 of file InterpolatedBFieldMap.hpp
Referenced by Acts::InterpolatedBFieldMap< Mapper_t >::getConfiguration(), Acts::InterpolatedBFieldMap< Mapper_t >::getField(), Acts::InterpolatedBFieldMap< Mapper_t >::getFieldCell(), Acts::InterpolatedBFieldMap< Mapper_t >::getFieldGradient(), Acts::InterpolatedBFieldMap< Mapper_t >::getMapper(), Acts::InterpolatedBFieldMap< Mapper_t >::getScale(), Acts::InterpolatedBFieldMap< Mapper_t >::isInside(), and Acts::InterpolatedBFieldMap< Mapper_t >::setConfiguration().