Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Core/include/Acts/MagneticField/ConstantBField.hpp>
Classes | |
struct | Cache |
Public Member Functions | |
ConstantBField (Vector3 B) | |
Vector3 | getField () const |
Get the B field at a position. | |
Result< Vector3 > | getField (const Vector3 &position, MagneticFieldProvider::Cache &cache) const override |
| |
Result< Vector3 > | getFieldGradient (const Vector3 &position, ActsMatrix< 3, 3 > &derivative, MagneticFieldProvider::Cache &cache) const override |
| |
Acts::MagneticFieldProvider::Cache | makeCache (const Acts::MagneticFieldContext &mctx) const override |
| |
bool | isInside (const Vector3 &position) const |
check whether given 3D position is inside look-up domain | |
void | setField (const Vector3 &B) |
update magnetic field vector | |
Private Attributes | |
Vector3 | 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 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 |
Get the B field at a position.
Definition at line 34 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 34 of file ConstantBField.hpp
References m_BField.
Referenced by Acts::Test::BOOST_DATA_TEST_CASE().
|
inlineoverride |
position
is ignored and only kept as argument to provide a consistent interface with other magnetic field services. Definition at line 40 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 40 of file ConstantBField.hpp
References m_BField.
|
inlineoverride |
position
is ignored and only kept as argument to provide a consistent interface with other magnetic field services. Definition at line 53 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 53 of file ConstantBField.hpp
References m_BField.
|
inline |
check whether given 3D position is inside look-up domain
[in] | position | global 3D position |
Definition at line 72 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 72 of file ConstantBField.hpp
|
inlineoverride |
Definition at line 63 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 63 of file ConstantBField.hpp
Referenced by Acts::Test::BOOST_DATA_TEST_CASE().
|
inline |
update magnetic field vector
[in] | B | magnetic field vector in global coordinate system |
Definition at line 80 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 80 of file ConstantBField.hpp
References m_BField.
Referenced by Acts::Test::BOOST_DATA_TEST_CASE().
|
private |
magnetic field vector
Definition at line 84 of file ConstantBField.hpp.
View newest version in sPHENIX GitHub at line 84 of file ConstantBField.hpp
Referenced by getField(), getFieldGradient(), and setField().