ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::material_map_config< scalar_t > Struct Template Reference

Configuration for the material map generator. More...

#include <detray/builders/material_map_generator.hpp>

Collaboration diagram for detray::material_map_config< scalar_t >:
[legend]

Classes

struct  map_config
 How to configure the generation for a specific type of material map. More...

Public Member Functions

template<typename mask_id_t>
constexpr material_map_config & set_map_config (mask_id_t map_type, surface_id sf_type, const map_config &cfg)
 SettersStore the configuration for one mask and surface category.
template<typename mask_id_t>
bool has_config (mask_id_t map_type, surface_id sf_type) const
 GettersCheck whether a configuration exists for a mask and surface category.
template<typename mask_id_t>
const auto & get_map_config (mask_id_t map_type, surface_id sf_type) const
 Get the configuration for a mask and surface category.
template<typename mask_id_t>
auto & get_map_config (mask_id_t map_type, surface_id sf_type)
 Get the mutable configuration for a mask and surface category.

Public Attributes

std::map< std::pair< unsigned int, surface_id >, map_config > m_map_configs
 Configuration for different types of material maps: The key consists of the mask type id and the surface type id.

Detailed Description

template<concepts::scalar scalar_t>
struct detray::material_map_config< scalar_t >

Configuration for the material map generator.

Member Function Documentation

◆ get_map_config() [1/2]

template<concepts::scalar scalar_t>
template<typename mask_id_t>
auto & detray::material_map_config< scalar_t >::get_map_config ( mask_id_t map_type,
surface_id sf_type )

Get the mutable configuration for a mask and surface category.

Parameters
map_typeMask identifier selecting the shape configuration.
sf_typeSurface category using the map.
Returns
Reference to the matching configuration.

◆ get_map_config() [2/2]

template<concepts::scalar scalar_t>
template<typename mask_id_t>
const auto & detray::material_map_config< scalar_t >::get_map_config ( mask_id_t map_type,
surface_id sf_type ) const

Get the configuration for a mask and surface category.

Parameters
map_typeMask identifier selecting the shape configuration.
sf_typeSurface category using the map.
Returns
Const reference to the matching configuration.

◆ has_config()

template<concepts::scalar scalar_t>
template<typename mask_id_t>
bool detray::material_map_config< scalar_t >::has_config ( mask_id_t map_type,
surface_id sf_type ) const

GettersCheck whether a configuration exists for a mask and surface category.

Parameters
map_typeMask identifier selecting the shape configuration.
sf_typeSurface category using the map.
Returns
True when a matching configuration is stored.

◆ set_map_config()

template<concepts::scalar scalar_t>
template<typename mask_id_t>
material_map_config & detray::material_map_config< scalar_t >::set_map_config ( mask_id_t map_type,
surface_id sf_type,
const map_config & cfg )
constexpr

SettersStore the configuration for one mask and surface category.

Parameters
map_typeMask identifier selecting the shape configuration.
sf_typeSurface category using the map.
cfgBinning and material variation settings.
Returns
Reference to this configuration object.