#include <ATLASMagneticFieldWrapper.h>
Definition at line 15 of file ATLASMagneticFieldWrapper.h.
◆ ATLASMagneticFieldWrapper()
ATLASMagneticFieldWrapper::ATLASMagneticFieldWrapper |
( |
| ) |
|
|
default |
◆ getField()
Acts::Result<Acts::Vector3> ATLASMagneticFieldWrapper::getField |
( |
const Acts::Vector3 & |
position, |
|
|
Acts::MagneticFieldProvider::Cache & |
gcache |
|
) |
| const |
|
inlineoverride |
Definition at line 39 of file ATLASMagneticFieldWrapper.h.
40 Cache& cache = gcache.as<Cache>();
42 posXYZ[0] = position.x();
43 posXYZ[1] = position.y();
44 posXYZ[2] = position.z();
47 cache.fieldCache.getField(posXYZ, BField);
50 Acts::Vector3 bfield{BField[0],BField[1],BField[2]};
54 return Acts::Result<Acts::Vector3>::success(bfield);
◆ getFieldGradient()
Acts::Result<Acts::Vector3> ATLASMagneticFieldWrapper::getFieldGradient |
( |
const Acts::Vector3 & |
position, |
|
|
Acts::ActsMatrix< 3, 3 > & |
gradient, |
|
|
Acts::MagneticFieldProvider::Cache & |
gcache |
|
) |
| const |
|
inlineoverride |
Definition at line 58 of file ATLASMagneticFieldWrapper.h.
62 Cache& cache = gcache.as<Cache>();
64 posXYZ[0] = position.x();
65 posXYZ[1] = position.y();
66 posXYZ[2] = position.z();
70 cache.fieldCache.getField(posXYZ, BField, grad);
73 Acts::Vector3 bfield{BField[0], BField[1],BField[2]};
74 Acts::ActsMatrix<3, 3> tempGrad;
75 tempGrad << grad[0], grad[1], grad[2], grad[3], grad[4], grad[5], grad[6], grad[7], grad[8];
82 return Acts::Result<Acts::Vector3>::success(bfield);
◆ makeCache()
MagneticFieldProvider::Cache ATLASMagneticFieldWrapper::makeCache |
( |
const Acts::MagneticFieldContext & |
mctx | ) |
const |
|
inlineoverride |
◆ m_bFieldUnit
const double ATLASMagneticFieldWrapper::m_bFieldUnit = 1000.*Acts::UnitConstants::T |
|
private |
The documentation for this class was generated from the following file: