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

Configuration for the homogeneous material generator. More...

#include <detray/builders/homogeneous_material_generator.hpp>

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

Public Member Functions

constexpr hom_material_config & passive_material (const material< scalar_t > &m)
 SettersSet the material assigned to passive surfaces.
constexpr hom_material_config & sensitive_material (const material< scalar_t > &m)
 Set the material assigned to sensitive surfaces.
constexpr hom_material_config & portal_material (const material< scalar_t > &m)
 Set the material assigned to portal surfaces.
constexpr hom_material_config & thickness (const scalar_t t)
 Set the thickness used when creating portal material.
constexpr const material< scalar_t > & passive_material () const
 Getters.
constexpr const material< scalar_t > & sensitive_material () const
constexpr const material< scalar_t > & portal_material () const
constexpr scalar_t thickness () const

Public Attributes

material< scalar_t > m_passive_material {silicon<scalar_t>{}}
 Type of material to put on the passive surfaces.
material< scalar_t > m_portal_material {vacuum<scalar_t>{}}
 Type of material to put on the portal surfaces.
material< scalar_t > m_sensitive_material {silicon<scalar_t>{}}
 Type of material to put on the sensitive surfaces.
scalar_t m_thickness {1.5f * unit<scalar_t>::mm}
 Minimal envelope for the portals (used in autofitting).

Detailed Description

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

Configuration for the homogeneous material generator.

Member Function Documentation

◆ passive_material() [1/2]

template<concepts::scalar scalar_t>
const material< scalar_t > & detray::hom_material_config< scalar_t >::passive_material ( ) const
constexpr

Getters.

Returns
Material assigned to passive surfaces.

◆ passive_material() [2/2]

template<concepts::scalar scalar_t>
hom_material_config & detray::hom_material_config< scalar_t >::passive_material ( const material< scalar_t > & m)
constexpr

SettersSet the material assigned to passive surfaces.

Parameters
mMaterial parameters for passive surfaces.
Returns
Reference to this configuration.

◆ portal_material() [1/2]

template<concepts::scalar scalar_t>
const material< scalar_t > & detray::hom_material_config< scalar_t >::portal_material ( ) const
constexpr
Returns
Material assigned to portal surfaces.

◆ portal_material() [2/2]

template<concepts::scalar scalar_t>
hom_material_config & detray::hom_material_config< scalar_t >::portal_material ( const material< scalar_t > & m)
constexpr

Set the material assigned to portal surfaces.

Parameters
mMaterial parameters for portal surfaces.
Returns
Reference to this configuration.

◆ sensitive_material() [1/2]

template<concepts::scalar scalar_t>
const material< scalar_t > & detray::hom_material_config< scalar_t >::sensitive_material ( ) const
constexpr
Returns
Material assigned to sensitive surfaces.

◆ sensitive_material() [2/2]

template<concepts::scalar scalar_t>
hom_material_config & detray::hom_material_config< scalar_t >::sensitive_material ( const material< scalar_t > & m)
constexpr

Set the material assigned to sensitive surfaces.

Parameters
mMaterial parameters for sensitive surfaces.
Returns
Reference to this configuration.

◆ thickness() [1/2]

template<concepts::scalar scalar_t>
scalar_t detray::hom_material_config< scalar_t >::thickness ( ) const
constexpr
Returns
Thickness configured for portal material.

◆ thickness() [2/2]

template<concepts::scalar scalar_t>
hom_material_config & detray::hom_material_config< scalar_t >::thickness ( const scalar_t t)
constexpr

Set the thickness used when creating portal material.

Parameters
tPortal material thickness.
Returns
Reference to this configuration.