|
ACTS
Experiment-independent tracking
|
Configure the toy detector. More...
#include <detray/test/common/build_toy_detector.hpp>
Public Member Functions | |
| toy_det_config () | |
| Default toy detector configuration. | |
| constexpr toy_det_config & | n_brl_layers (const unsigned int n) |
| Setters. | |
| constexpr toy_det_config & | n_edc_layers (const unsigned int n) |
| Set the n edc layers. | |
| constexpr toy_det_config & | envelope (const scalar_t env) |
| Set the envelope. | |
| constexpr toy_det_config & | use_grids (const bool b) |
| Set the use grids. | |
| constexpr toy_det_config & | use_homogeneous_material (const bool b) |
| Set the use homogeneous material. | |
| constexpr toy_det_config & | use_material_maps (const bool b) |
| Set the use material maps. | |
| constexpr toy_det_config & | cyl_map_bins (const std::size_t n_phi, const std::size_t n_z) |
| Set the cyl map bins. | |
| constexpr toy_det_config & | disc_map_bins (const std::size_t n_r, const std::size_t n_phi) |
| Set the disc map bins. | |
| constexpr toy_det_config & | material_map_min_thickness (const scalar_t t) |
| Set the material map min thickness. | |
| constexpr toy_det_config & | beampipe_mat_thickness (const scalar_t t) |
| Set the beampipe mat thickness. | |
| constexpr toy_det_config & | module_mat_thickness (const scalar_t t) |
| Set the module mat thickness. | |
| constexpr toy_det_config & | mapped_material (const material< scalar_t > &mat) |
| Set the mapped material. | |
| volume_builder_options | builder_options () |
| Return the builder options. | |
| constexpr toy_det_config & | do_check (const bool check) |
| Set the do check. | |
| constexpr unsigned int | n_brl_layers () const |
| Getters. | |
| constexpr unsigned int | n_edc_layers () const |
| Return the n edc layers. | |
| constexpr const auto & | outer_radius () const |
| Return the outer radius. | |
| constexpr scalar_t | envelope () const |
| Return the envelope. | |
| constexpr scalar_t | beampipe_vol_radius () const |
| Return the beampipe vol radius. | |
| constexpr auto & | material_config () |
| Return the material config. | |
| constexpr const auto & | material_config () const |
| Return the material configuration. | |
| constexpr bool | use_grids () const |
| Return the use grids. | |
| constexpr bool | use_homogeneous_material () const |
| Return the use homogeneous material. | |
| constexpr bool | use_material_maps () const |
| Return the use material maps. | |
| constexpr auto & | beampipe_material_map () |
| Return the beampipe material map. | |
| constexpr const auto & | beampipe_material_map () const |
| Return the beampipe material map configuration. | |
| constexpr const auto & | cyl_material_map () const |
| Return the cyl material map. | |
| constexpr auto & | cyl_material_map () |
| Return the mutable cylinder material map configuration. | |
| constexpr const auto & | disc_material_map () const |
| Return the disc material map. | |
| constexpr auto & | disc_material_map () |
| Return the mutable disc material map configuration. | |
| constexpr const darray< std::size_t, 2 > & | cyl_map_bins () const |
| Return the cyl map bins. | |
| constexpr const darray< std::size_t, 2 > & | disc_map_bins () const |
| Return the disc map bins. | |
| constexpr scalar_t | material_map_min_thickness () const |
| Return the material map min thickness. | |
| constexpr scalar_t | beampipe_mat_thickness () const |
| Return the beampipe mat thickness. | |
| constexpr scalar_t | module_mat_thickness () const |
| Return the module mat thickness. | |
| auto | barrel_mat_generator () const |
| Return the barrel mat generator. | |
| auto | edc_mat_generator () const |
| Return the edc mat generator. | |
| constexpr material< scalar_t > | mapped_material () const |
| Return the mapped material. | |
| constexpr const auto & | barrel_layer_radii () const |
| Return the barrel layer radii. | |
| constexpr const auto & | endcap_layer_positions () const |
| Return the endcap layer positions. | |
| constexpr const auto & | barrel_layer_binning () const |
| Return the barrel layer binning. | |
| constexpr barrel_generator_config< scalar_t > & | barrel_config () |
| Return the barrel config. | |
| constexpr endcap_generator_config< scalar_t > & | endcap_config () |
| Return the endcap config. | |
| const volume_builder_options & | builder_options () const |
| Return the builder options. | |
| constexpr bool | do_check () const |
| Return the do check. | |
Public Attributes | |
| std::vector< std::pair< unsigned int, unsigned int > > | m_barrel_binning |
| Number of modules in phi and z for the barrel. | |
| barrel_generator_config< scalar_t > | m_barrel_factory_cfg {} |
| Config for the module generation (barrel). | |
| std::vector< scalar_t > | m_barrel_layer_radii |
| Radii at which to place the barrel module layers (including beampipe). | |
| material_map_config< scalar_t >::map_config | m_beampipe_map_cfg {} |
| Configuration for the material map generator (beampipe). | |
| scalar_t | m_beampipe_mat_thickness {0.8f * unit<scalar_t>::mm} |
| Thickness of the beampipe material. | |
| scalar_t | m_beampipe_volume_radius {25.f * unit<scalar_t>::mm} |
| Radius of the innermost volume that contains the beampipe. | |
| volume_builder_options | m_builder_opts |
| Volume builder configuration. | |
| material_map_config< scalar_t >::map_config | m_cyl_map_cfg {} |
| Configuration for the material map generator (cylinder). | |
| material_map_config< scalar_t >::map_config | m_disc_map_cfg {} |
| Configuration for the material map generator (disc). | |
| bool | m_do_check {true} |
| Run detector consistency check after reading. | |
| endcap_generator_config< scalar_t > | m_endcap_factory_cfg {} |
| Config for the module generation (endcaps). | |
| std::vector< scalar_t > | m_endcap_layer_positions |
| Positions at which to place the endcap module layers on either side. | |
| hom_material_config< scalar_t > | m_material_config {} |
| Configuration for the homogeneous material generator. | |
| scalar_t | m_module_mat_thickness {1.5f * unit<scalar_t>::mm} |
| Thickness of the material slabs in the homogeneous material description. | |
| unsigned int | m_n_brl_layers {4u} |
| No. of barrel layers the detector should be built with. | |
| unsigned int | m_n_edc_layers {3u} |
| No. of endcap layers (on either side) the detector should be built with. | |
| scalar_t | m_outer_radius {180.f * unit<scalar_t>::mm} |
| Total outer radius of the pixel subdetector. | |
| scalar_t | m_portal_envelope {2.f * unit<scalar_t>::mm} |
| Envelope around the modules used by the cylinder portal generator. | |
| bool | m_use_grids {true} |
| Build spatial grid acceleration structures (otherwise brute force search). | |
| bool | m_use_homogeneous_material {true} |
| Put homogeneneous material on the sensitive surfaces. | |
| bool | m_use_material_maps {false} |
| Put material maps on portals or use homogeneous material on modules. | |
Configure the toy detector.
|
constexpr |
Return the barrel config.
|
constexpr |
Return the barrel layer binning.
|
constexpr |
Return the barrel layer radii.
| auto detray::toy_det_config< scalar_t >::barrel_mat_generator | ( | ) | const |
Return the barrel mat generator.
|
constexpr |
Return the beampipe mat thickness.
|
constexpr |
Set the beampipe mat thickness.
| t | material thickness |
|
constexpr |
Return the beampipe material map.
|
constexpr |
Return the beampipe material map configuration.
|
constexpr |
Return the beampipe vol radius.
| volume_builder_options detray::toy_det_config< scalar_t >::builder_options | ( | ) |
Return the builder options.
| const volume_builder_options & detray::toy_det_config< scalar_t >::builder_options | ( | ) | const |
Return the builder options.
|
constexpr |
Return the cyl map bins.
|
constexpr |
Set the cyl map bins.
| n_phi | number of bins in phi |
| n_z | number of bins in z |
|
constexpr |
Return the mutable cylinder material map configuration.
|
constexpr |
Return the cyl material map.
|
constexpr |
Return the disc map bins.
|
constexpr |
Set the disc map bins.
| n_r | number of bins in radius |
| n_phi | number of bins in phi |
|
constexpr |
Return the mutable disc material map configuration.
|
constexpr |
Return the disc material map.
|
constexpr |
Return the do check.
|
constexpr |
Set the do check.
| check | whether to run the consistency check |
| auto detray::toy_det_config< scalar_t >::edc_mat_generator | ( | ) | const |
Return the edc mat generator.
|
constexpr |
Return the endcap config.
|
constexpr |
Return the endcap layer positions.
|
constexpr |
Return the envelope.
|
constexpr |
Set the envelope.
| env | portal envelope |
|
constexpr |
Return the mapped material.
|
constexpr |
Set the mapped material.
| mat | material value |
|
constexpr |
Return the material config.
|
constexpr |
Return the material configuration.
|
constexpr |
Return the material map min thickness.
|
constexpr |
Set the material map min thickness.
| t | material thickness |
|
constexpr |
Return the module mat thickness.
|
constexpr |
Set the module mat thickness.
| t | material thickness |
|
constexpr |
Getters.
Return the number of barrel layers.
|
constexpr |
Setters.
Set the number of barrel layers.
| n | number of layers |
|
constexpr |
Return the n edc layers.
|
constexpr |
Set the n edc layers.
| n | number of layers |
|
constexpr |
Return the outer radius.
|
constexpr |
Return the use grids.
|
constexpr |
Set the use grids.
| b | whether to enable the option |
|
constexpr |
Return the use homogeneous material.
|
constexpr |
Set the use homogeneous material.
| b | whether to enable the option |
|
constexpr |
Return the use material maps.
|
constexpr |
Set the use material maps.
| b | whether to enable the option |
| std::vector<std::pair<unsigned int, unsigned int> > detray::toy_det_config< scalar_t >::m_barrel_binning |
Number of modules in phi and z for the barrel.
| std::vector<scalar_t> detray::toy_det_config< scalar_t >::m_barrel_layer_radii |
Radii at which to place the barrel module layers (including beampipe).
| volume_builder_options detray::toy_det_config< scalar_t >::m_builder_opts |
Volume builder configuration.
| std::vector<scalar_t> detray::toy_det_config< scalar_t >::m_endcap_layer_positions |
Positions at which to place the endcap module layers on either side.