ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::GridMaterialAccessor Struct Reference

This is an accessor for cases where the material is directly stored in the grid, it simply forwards the grid entry in const and non-const way. More...

#include <Acts/Material/GridSurfaceMaterial.hpp>

Inheritance diagram for Acts::GridMaterialAccessor:
[legend]
Collaboration diagram for Acts::GridMaterialAccessor:
[legend]

Public Types

using grid_value_type = MaterialSlab
 Broadcast the type of the material slab.

Public Member Functions

template<typename grid_type>
void scale (grid_type &grid, double scale)
 Scale the material (by scaling the thickness).
template<typename grid_type>
const MaterialSlabslab (grid_type &grid, const typename grid_type::point_t &point) const
 Direct const access to the material slap sorted in the grid.
Public Member Functions inherited from Acts::IGridMaterialAccessor
virtual ~IGridMaterialAccessor ()=default

Detailed Description

This is an accessor for cases where the material is directly stored in the grid, it simply forwards the grid entry in const and non-const way.

Member Typedef Documentation

◆ grid_value_type

Broadcast the type of the material slab.

Member Function Documentation

◆ scale()

template<typename grid_type>
void Acts::GridMaterialAccessor::scale ( grid_type & grid,
double scale )

Scale the material (by scaling the thickness).

Parameters
gridthe grid (ignored)
scalethe amount of the scaling
Note
this is not particularly fast

◆ slab()

template<typename grid_type>
const MaterialSlab & Acts::GridMaterialAccessor::slab ( grid_type & grid,
const typename grid_type::point_t & point ) const

Direct const access to the material slap sorted in the grid.

Template Parameters
grid_typethe type of the grid, also defines the point type
Parameters
gridthe grid
pointthe lookup point (already casted from global, or filled from local)
Returns
the material slab from the grid bin associated to the lookup point