ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::InterpolatedBFieldMap< grid_t >::Cache Struct Reference

Cache for field cell to improve performance of field lookups. More...

#include <Acts/MagneticField/InterpolatedBFieldMap.hpp>

Public Member Functions

 Cache (const MagneticFieldContext &)
 Constructor with magnetic field context.

Public Attributes

std::optional< FieldCellfieldCell
 Stored field cell containing interpolation data.
bool initialized = false
 Flag indicating if the cache has been initialized.

Detailed Description

template<typename grid_t>
struct Acts::InterpolatedBFieldMap< grid_t >::Cache

Cache for field cell to improve performance of field lookups.

This cache stores the current field cell which contains the interpolation data for a confined region of space. By caching the cell, subsequent lookups at nearby positions (e.g., during track propagation) can avoid expensive grid queries. The cache automatically updates when a position outside the current cell is queried.

Constructor & Destructor Documentation

◆ Cache()

template<typename grid_t>
Acts::InterpolatedBFieldMap< grid_t >::Cache::Cache ( const MagneticFieldContext & )
explicit

Constructor with magnetic field context.

Member Data Documentation

◆ fieldCell

template<typename grid_t>
std::optional<FieldCell> Acts::InterpolatedBFieldMap< grid_t >::Cache::fieldCell

Stored field cell containing interpolation data.

◆ initialized

template<typename grid_t>
bool Acts::InterpolatedBFieldMap< grid_t >::Cache::initialized = false

Flag indicating if the cache has been initialized.