ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
returns a given constant field value at every point More...
#include <acts/blob/master/Core/include/Acts/MagneticField/ConstantBField.hpp>
Classes | |
struct | Cache |
Public Member Functions | |
ConstantBField (Vector3D B) | |
construct constant magnetic field from field vector | |
ConstantBField (double Bx=0., double By=0., double Bz=0.) | |
construct constant magnetic field from components | |
Vector3D | getField (const Vector3D &) const |
retrieve magnetic field value | |
Vector3D | getField (const Vector3D &, Cache &) const |
retrieve magnetic field value | |
Vector3D | getFieldGradient (const Vector3D &, ActsMatrixD< 3, 3 > &) const |
retrieve magnetic field value & its gradient | |
Vector3D | getFieldGradient (const Vector3D &, ActsMatrixD< 3, 3 > &, Cache &) const |
retrieve magnetic field value & its gradient | |
bool | isInside (const Vector3D &) const |
check whether given 3D position is inside look-up domain | |
void | setField (double Bx, double By, double Bz) |
update magnetic field vector from components | |
void | setField (const Vector3D &B) |
update magnetic field vector | |
Private Attributes | |
Vector3D | m_BField |
magnetic field vector | |
returns a given constant field value at every point
This class implements a simple constant magnetic field. The magnetic field value has to be set at creation time, but can be updated later on.
Definition at line 21 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 21 of file ConstantBField.hpp
|
inlineexplicit |
construct constant magnetic field from field vector
[in] | B | magnetic field vector in global coordinate system |
Definition at line 31 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 31 of file ConstantBField.hpp
|
inline |
construct constant magnetic field from components
[in] | Bx | magnetic field component in global x-direction |
[in] | By | magnetic field component in global y-direction |
[in] | Bz | magnetic field component in global z-direction |
Definition at line 38 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 38 of file ConstantBField.hpp
retrieve magnetic field value
[in] | position | global position |
position
is ignored and only kept as argument to provide a consistent interface with other magnetic field services. Definition at line 48 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 48 of file ConstantBField.hpp
References m_BField.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and Acts::Test::BOOST_DATA_TEST_CASE().
retrieve magnetic field value
[in] | position | global position |
[in] | cache | Cache object (is ignored) |
position
is ignored and only kept as argument to provide a consistent interface with other magnetic field services. Definition at line 58 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 58 of file ConstantBField.hpp
References m_BField.
|
inline |
retrieve magnetic field value & its gradient
[in] | position | global position |
[out] | derivative | gradient of magnetic field vector as (3x3) matrix |
position
is ignored and only kept as argument to provide a consistent interface with other magnetic field services. Definition at line 72 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 72 of file ConstantBField.hpp
References m_BField.
|
inline |
retrieve magnetic field value & its gradient
[in] | position | global position |
[out] | derivative | gradient of magnetic field vector as (3x3) matrix |
[in] | cache | Cache object (is ignored) |
position
is ignored and only kept as argument to provide a consistent interface with other magnetic field services. Definition at line 88 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 88 of file ConstantBField.hpp
References m_BField.
|
inline |
check whether given 3D position is inside look-up domain
[in] | position | global 3D position |
true
if position is inside the defined look-up grid, otherwise false
Definition at line 100 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 100 of file ConstantBField.hpp
|
inline |
update magnetic field vector from components
[in] | Bx | magnetic field component in global x-direction |
[in] | By | magnetic field component in global y-direction |
[in] | Bz | magnetic field component in global z-direction |
Definition at line 107 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 107 of file ConstantBField.hpp
References Acts::IntegrationTest::Bz, and m_BField.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and Acts::Test::BOOST_DATA_TEST_CASE().
update magnetic field vector
[in] | B | magnetic field vector in global coordinate system |
Definition at line 112 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 112 of file ConstantBField.hpp
|
private |
magnetic field vector
Definition at line 116 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 116 of file ConstantBField.hpp
Referenced by getField(), getFieldGradient(), and setField().