|
ACTS
Experiment-independent tracking
|
The simplest magnetic field implementation is a constant field, which returns the same field values at every queried location. More...
#include <Acts/MagneticField/ConstantBField.hpp>
Classes | |
| struct | Cache |
| Cache object for constant magnetic field. More... | |
Public Member Functions | |
| ConstantBField (Vector3 B) | |
| Construct constant magnetic field from field vector. | |
| Vector3 | getField () const |
| Get the B field at a position. | |
| Result< Vector3 > | getField (const Vector3 &position, MagneticFieldProvider::Cache &cache) const override |
| Retrieve magnetic field value at a given location. | |
| bool | isInside (const Vector3 &) const |
| check whether given 3D position is inside look-up domain | |
| Acts::MagneticFieldProvider::Cache | makeCache (const Acts::MagneticFieldContext &mctx) const override |
| Make an opaque cache for the magnetic field. | |
| void | setField (const Vector3 &B) |
| update magnetic field vector | |
| Public Member Functions inherited from Acts::MagneticFieldProvider | |
| virtual | ~MagneticFieldProvider ()=default |
Additional Inherited Members | |
| Public Types inherited from Acts::MagneticFieldProvider | |
| using | Cache = Acts::AnyBase<sizeof(char) * 512> |
| Opaque cache type that can store arbitrary implementation specific cache data. | |
The simplest magnetic field implementation is a constant field, which returns the same field values at every queried location.
|
explicit |
Construct constant magnetic field from field vector.
| [in] | B | magnetic field vector in global coordinate system |
| Vector3 Acts::ConstantBField::getField | ( | ) | const |
Get the B field at a position.
|
overridevirtual |
Retrieve magnetic field value at a given location.
Requires an instance of Acts::MagneticFieldProvider::Cache created through makeCache.
| [in] | position | global 3D position for the lookup |
| [in,out] | cache | Field provider specific cache object |
position is ignored and only kept as argument to provide a consistent interface with other magnetic field services. Implements Acts::MagneticFieldProvider.
| bool Acts::ConstantBField::isInside | ( | const Vector3 & | ) | const |
check whether given 3D position is inside look-up domain
|
overridevirtual |
Make an opaque cache for the magnetic field.
Instructs the specific implementation to generate a Acts::MagneticFieldProvider::Cache instance for magnetic field lookup.
| mctx | The magnetic field context to generate cache for |
Implements Acts::MagneticFieldProvider.
| void Acts::ConstantBField::setField | ( | const Vector3 & | B | ) |
update magnetic field vector
| [in] | B | magnetic field vector in global coordinate system |