|
ACTS
Experiment-independent tracking
|
Configure the toy detector. More...
#include <detray/test/common/build_telescope_detector.hpp>
Public Types | |
| using | scalar_t = dscalar<algebra_t> |
| Scalar type used by this configuration. | |
Public Member Functions | |
| template<typename... Args> requires (std::is_same_v<Args, scalar_t> && ...) | |
| tel_det_config (Args &&...args) | |
| Construct from mask parameters (except volume link, which is not needed). | |
| tel_det_config (const mask< mask_shape_t, algebra_t > &m, const trajectory_t< algebra_t > &t={}) | |
| Construct from existing mask. | |
| tel_det_config (const std::vector< scalar_t > ¶ms, const trajectory_t< algebra_t > &t={}) | |
| Construct from from mask parameter vector. | |
| constexpr tel_det_config & | module_mask (const mask< mask_shape_t, algebra_t > &m) |
| Setters. | |
| constexpr tel_det_config & | n_surfaces (const unsigned int n) |
| Set the n surfaces. | |
| constexpr tel_det_config & | length (const scalar_t l) |
| Set the length. | |
| constexpr tel_det_config & | positions (const std::vector< scalar_t > &dists) |
| Set the positions. | |
| constexpr tel_det_config & | module_material (const material< scalar_t > &mat) |
| Set the module material. | |
| constexpr tel_det_config & | volume_material (const material< scalar_t > &mat) |
| Set the volume material. | |
| constexpr tel_det_config & | mat_thickness (const scalar_t t) |
| Set the mat thickness. | |
| constexpr tel_det_config & | pilot_track (const trajectory_t< algebra_t > &traj) |
| Set the pilot track. | |
| constexpr tel_det_config & | envelope (const scalar_t e) |
| Set the envelope. | |
| volume_builder_options & | builder_options () |
| Return the builder options. | |
| tel_det_config & | do_check (const bool check) |
| Set the do check. | |
| constexpr const mask< mask_shape_t, algebra_t > & | module_mask () const |
| Getters. | |
| constexpr unsigned int | n_surfaces () const |
| Return the n surfaces. | |
| constexpr scalar_t | length () const |
| Return the length. | |
| const std::vector< scalar_t > & | positions () const |
| Return the positions. | |
| constexpr const auto & | material_config () const |
| Return the material config. | |
| constexpr auto & | material_config () |
| Return the material configuration. | |
| constexpr const material< scalar_t > & | module_material () const |
| Return the module material. | |
| constexpr const material< scalar_t > & | volume_material () const |
| Return the volume material. | |
| constexpr scalar_t | mat_thickness () const |
| Return the mat thickness. | |
| const trajectory_t< algebra_t > & | pilot_track () const |
| Return the pilot track. | |
| constexpr scalar_t | envelope () const |
| Return the envelope. | |
| const volume_builder_options & | builder_options () const |
| Return the builder options. | |
| bool | do_check () const |
| Return the do check. | |
Public Attributes | |
| volume_builder_options | m_builder_opts |
| Volume builder configuration. | |
| bool | m_do_check {true} |
| Run detector consistency check after reading. | |
| scalar_t | m_envelope {0.1f * unit<scalar_t>::mm} |
| Safety envelope between the test surfaces and the portals. | |
| scalar_t | m_length {500.f * unit<scalar_t>::mm} |
| Length of the telescope. | |
| mask< mask_shape_t, algebra_t > | m_mask |
| Mask of the test surfaces. | |
| hom_material_config< scalar_t > | m_material_config {} |
| Configuration for the homogeneous material generator. | |
| unsigned int | m_n_surfaces {10u} |
| No. of test surfaces in the telescope. | |
| std::vector< scalar_t > | m_positions {} |
| Concrete positions where to place the surfaces along the pilot track. | |
| trajectory_t< algebra_t > | m_trajectory {} |
| Pilot track along which to place the surfaces. | |
| material< scalar_t > | m_volume_material = vacuum<scalar_t>() |
| Material for volume. | |
Configure the toy detector.
|
explicit |
Construct from existing mask.
| m | mask to use for the detector surfaces |
| t | trajectory used to position the surfaces |
|
explicit |
Construct from from mask parameter vector.
| params | parameters defining the surface mask |
| t | trajectory used to position the surfaces |
|
explicit |
Construct from mask parameters (except volume link, which is not needed).
| args | mask boundary parameters |
| volume_builder_options & detray::tel_det_config< algebra_t, mask_shape_t, trajectory_t >::builder_options | ( | ) |
Return the builder options.
| const volume_builder_options & detray::tel_det_config< algebra_t, mask_shape_t, trajectory_t >::builder_options | ( | ) | const |
Return the builder options.
| bool detray::tel_det_config< algebra_t, mask_shape_t, trajectory_t >::do_check | ( | ) | const |
Return the do check.
| tel_det_config & detray::tel_det_config< algebra_t, mask_shape_t, trajectory_t >::do_check | ( | const bool | check | ) |
Set the do check.
| check | whether to run the consistency check |
|
constexpr |
Return the envelope.
|
constexpr |
Set the envelope.
| e | portal envelope |
|
constexpr |
Return the length.
|
constexpr |
Set the length.
| l | detector length |
|
constexpr |
Return the mat thickness.
|
constexpr |
Set the mat thickness.
| t | thickness of the material slabs |
|
constexpr |
Return the material configuration.
|
constexpr |
Return the material config.
|
constexpr |
Getters.
Return the module mask.
|
constexpr |
Setters.
Set the module mask.
| m | mask for the detector surfaces |
|
constexpr |
Return the module material.
|
constexpr |
Set the module material.
| mat | material value |
|
constexpr |
Return the n surfaces.
|
constexpr |
Set the n surfaces.
| n | number of layers |
| const trajectory_t< algebra_t > & detray::tel_det_config< algebra_t, mask_shape_t, trajectory_t >::pilot_track | ( | ) | const |
Return the pilot track.
|
constexpr |
Set the pilot track.
| traj | pilot trajectory |
| const std::vector< scalar_t > & detray::tel_det_config< algebra_t, mask_shape_t, trajectory_t >::positions | ( | ) | const |
Return the positions.
|
constexpr |
Set the positions.
| dists | distances of the surfaces |
|
constexpr |
Return the volume material.
|
constexpr |
Set the volume material.
| mat | material value |
| volume_builder_options detray::tel_det_config< algebra_t, mask_shape_t, trajectory_t >::m_builder_opts |
Volume builder configuration.