EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Core/include/Acts/MagneticField/ConstantBField.hpp>
Classes | |
struct | Cache |
Public Member Functions | |
ConstantBField (Vector3D B) | |
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 | |
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 20 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 20 of file ConstantBField.hpp
|
inlineexplicit |
Construct constant magnetic field from field vector.
[in] | B | magnetic field vector in global coordinate system |
Definition at line 30 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 30 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 37 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 37 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 47 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 47 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 57 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 57 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 71 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 71 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 87 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 87 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 99 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 99 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 106 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 106 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().
|
inline |
update magnetic field vector
[in] | B | magnetic field vector in global coordinate system |
Definition at line 111 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 111 of file ConstantBField.hpp
References m_BField.
|
private |
magnetic field vector
Definition at line 115 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 115 of file ConstantBField.hpp
Referenced by getField(), getFieldGradient(), and setField().