#include <DD4hepBField.h>
|
Acts::MagneticFieldProvider::Cache | makeCache (const Acts::MagneticFieldContext &mctx) const override |
|
| DD4hepBField (dd4hep::Detector *det) |
|
Acts::Result< Acts::Vector3 > | getField (const Acts::Vector3 &position, Acts::MagneticFieldProvider::Cache &cache) const override |
|
Acts::Result< Acts::Vector3 > | getFieldGradient (const Acts::Vector3 &position, Acts::ActsMatrix< 3, 3 > &, Acts::MagneticFieldProvider::Cache &cache) const override |
| retrieve magnetic field value & its gradient More...
|
|
|
std::shared_ptr< dd4hep::Detector > | m_det |
|
Use the dd4hep magnetic field in acts.
◆ DD4hepBField()
Jug::BField::DD4hepBField::DD4hepBField |
( |
dd4hep::Detector * |
det | ) |
|
|
inlineexplicit |
construct constant magnetic field from field vector.
- Parameters
-
[in] | DD4hep | detector instance |
◆ getField()
Acts::Result< Acts::Vector3 > Jug::BField::DD4hepBField::getField |
( |
const Acts::Vector3 & |
position, |
|
|
Acts::MagneticFieldProvider::Cache & |
cache |
|
) |
| const |
|
override |
retrieve magnetic field value.
- Parameters
-
[in] | position | global position |
[in] | cache | Cache object (is ignored) |
- Returns
- magnetic field vector
- Note
- The
position
is ignored and only kept as argument to provide a consistent interface with other magnetic field services.
◆ getFieldGradient()
Acts::Result< Acts::Vector3 > Jug::BField::DD4hepBField::getFieldGradient |
( |
const Acts::Vector3 & |
position, |
|
|
Acts::ActsMatrix< 3, 3 > & |
, |
|
|
Acts::MagneticFieldProvider::Cache & |
cache |
|
) |
| const |
|
override |
retrieve magnetic field value & its gradient
- Parameters
-
[in] | position | global position |
[out] | derivative | gradient of magnetic field vector as (3x3) matrix |
[in] | cache | Cache object (is ignored) |
- Returns
- magnetic field vector
- Note
- The
position
is ignored and only kept as argument to provide a consistent interface with other magnetic field services.
-
currently the derivative is not calculated
- Todo:
- return derivative
◆ makeCache()
Acts::MagneticFieldProvider::Cache Jug::BField::DD4hepBField::makeCache |
( |
const Acts::MagneticFieldContext & |
mctx | ) |
const |
|
inlineoverride |
◆ m_det
std::shared_ptr<dd4hep::Detector> Jug::BField::DD4hepBField::m_det |
The documentation for this class was generated from the following files: