Analysis Software
Documentation for sPHENIX simulation software
|
A constant magnetic field that is scaled depending on the event context. More...
Classes | |
struct | Cache |
Public Member Functions | |
ScalableBField (Acts::Vector3 B) | |
construct constant magnetic field from field vector | |
ScalableBField (Acts::ActsScalar Bx=0, Acts::ActsScalar By=0, Acts::ActsScalar Bz=0) | |
construct constant magnetic field from components | |
Acts::Result< Acts::Vector3 > | getField (const Acts::Vector3 &, MagneticFieldProvider::Cache &gCache) const override |
retrieve magnetic field value | |
Acts::Result< Acts::Vector3 > | getFieldGradient (const Acts::Vector3 &, Acts::ActsMatrix< 3, 3 > &, MagneticFieldProvider::Cache &gCache) const override |
retrieve magnetic field value & its gradient | |
Acts::MagneticFieldProvider::Cache | makeCache (const Acts::MagneticFieldContext &mctx) const override |
bool | isInside (const Acts::Vector3 &) 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 Acts::Vector3 &B) |
update magnetic field vector | |
Private Attributes | |
Acts::Vector3 | m_BField |
magnetic field vector | |
A constant magnetic field that is scaled depending on the event context.
Definition at line 23 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 23 of file ScalableBField.hpp
|
inlineexplicit |
construct constant magnetic field from field vector
[in] | B | magnetic field vector in global coordinate system |
Definition at line 37 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 37 of file ScalableBField.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 44 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 44 of file ScalableBField.hpp
|
inlineoverride |
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 56 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 56 of file ScalableBField.hpp
References m_BField, and ActsExamples::ScalableBField::Cache::scalor.
|
inlineoverride |
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 75 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 75 of file ScalableBField.hpp
References m_BField, and ActsExamples::ScalableBField::Cache::scalor.
|
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 93 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 93 of file ScalableBField.hpp
|
inlineoverride |
Definition at line 82 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 82 of file ScalableBField.hpp
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 100 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 100 of file ScalableBField.hpp
References Acts::IntegrationTest::Bz, and m_BField.
|
inline |
update magnetic field vector
[in] | B | magnetic field vector in global coordinate system |
Definition at line 105 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 105 of file ScalableBField.hpp
References m_BField.
|
private |
magnetic field vector
Definition at line 109 of file ScalableBField.hpp.
View newest version in sPHENIX GitHub at line 109 of file ScalableBField.hpp
Referenced by getField(), getFieldGradient(), and setField().