Class NullBField

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class Acts::NullBField : public Acts::MagneticFieldProvider

Null bfield which returns 0 always.

Public Functions

NullBField() = default

Default constructor.

Result<Vector3> getField(const Vector3&, MagneticFieldProvider::Cache&) const override

Note

The position is ignored and only kept as argument to provide a consistent interface with other magnetic field services.

Result<Vector3> getFieldGradient(const Vector3&, ActsMatrix<3, 3>&, MagneticFieldProvider::Cache&) const override

Note

The position is ignored and only kept as argument to provide a consistent interface with other magnetic field services.

Note

currently the derivative is not calculated

bool isInside(const Vector3&) const

check whether given 3D position is inside look-up domain

Return

true if position is inside the defined look-up grid, otherwise false

Note

The method will always return true for the null B-Field

Parameters
  • [in] position: global 3D position

Acts::MagneticFieldProvider::Cache makeCache(const Acts::MagneticFieldContext &mctx) const override
struct Cache

Public Functions

Cache(const MagneticFieldContext&)

constructor with context