12#include "detray/plugins/svgtools/styling/styling.hpp"
15#include "detray/test/framework/test_configuration.hpp"
22namespace detray::test {
25template <
typename track_generator_t, concepts::algebra algebra_t>
get_scalar_t< A, T > dscalar
Scalar type for algebra A and value type T.
Definition algebra.hpp:64
get_vector3D_t< A, T > dvector3D
Three-dimensional vector type for algebra A and value type T.
Definition algebra.hpp:80
Test configuration type.
Definition test_configuration.hpp:22
configuration & tol(scalar_t t)
Definition test_configuration.hpp:43
Configuration for a detector scan test.
Definition detector_scan_config.hpp:27
detector_scan_config & overlaps_tol(const scalar_type tol)
Set the overlap tolerance.
Definition detector_scan_config.hpp:154
std::string m_name
Name of the test.
Definition detector_scan_config.hpp:38
float overlaps_tol() const
Get the overlap tolerance.
Definition detector_scan_config.hpp:91
trk_gen_config_t m_trk_gen_cfg
Configuration of the ray generator.
Definition detector_scan_config.hpp:49
trk_gen_config_t & track_generator()
Get the mutable track generator configuration.
Definition detector_scan_config.hpp:82
const std::string & intersection_file() const
Get the intersection input file name.
Definition detector_scan_config.hpp:67
bool write_intersections() const
Check whether intersections are written.
Definition detector_scan_config.hpp:79
detector_scan_config & overlaps_removal(const bool o)
Set whether overlap removal is enabled.
Definition detector_scan_config.hpp:147
detector_scan_config & intersection_file(const std::string_view f)
Set the intersection input file name.
Definition detector_scan_config.hpp:109
const vector3_type & B_vector()
Get the magnetic field vector.
Definition detector_scan_config.hpp:76
const std::string & track_param_file() const
Get the track parameter input file name.
Definition detector_scan_config.hpp:70
detector_scan_config & B_vector(const vector3_type &B)
Set the magnetic field vector.
Definition detector_scan_config.hpp:130
scalar_type m_mask_tol
Mask tolerance for the intersectors.
Definition detector_scan_config.hpp:44
detector_scan_config & mask_tolerance(const scalar_type tol)
Set the intersector mask tolerance.
Definition detector_scan_config.hpp:123
const trk_gen_config_t & track_generator() const
Get the track generator configuration.
Definition detector_scan_config.hpp:85
detector_scan_config & B_vector(const scalar_type B0, const scalar_type B1, const scalar_type B2)
Set the magnetic field vector components.
Definition detector_scan_config.hpp:139
const auto & svg_style() const
Get the SVG style.
Definition detector_scan_config.hpp:94
std::string m_track_param_file
Name of the input file containing track parameters.
Definition detector_scan_config.hpp:42
std::string m_intersection_file
Name of the input file, containing the complete ray scan traces.
Definition detector_scan_config.hpp:40
bool overlaps_removal() const
Check whether overlap removal is enabled.
Definition detector_scan_config.hpp:88
detray::test::configuration< scalar_type > base_type
Base test configuration type.
Definition detector_scan_config.hpp:33
detector_scan_config & name(const std::string_view n)
SettersSet the test name.
Definition detector_scan_config.hpp:102
dvector3D< algebra_t > vector3_type
Three-dimensional vector type used by the scan.
Definition detector_scan_config.hpp:31
scalar_type mask_tolerance() const
Get the intersector mask tolerance.
Definition detector_scan_config.hpp:73
detray::svgtools::styling::style m_style
Visualization style to be applied to the svgs.
Definition detector_scan_config.hpp:57
bool m_write_inters
Write intersection points for plotting.
Definition detector_scan_config.hpp:55
typename track_generator_t::configuration trk_gen_config_t
Track generator configuration type.
Definition detector_scan_config.hpp:35
detector_scan_config & track_param_file(const std::string_view f)
Set the track parameter input file name.
Definition detector_scan_config.hpp:116
dscalar< algebra_t > scalar_type
Scalar type used by the scan.
Definition detector_scan_config.hpp:29
const std::string & name() const
GettersGet the test name.
Definition detector_scan_config.hpp:64
float m_overlaps_tol
Tolerance for overlaps.
Definition detector_scan_config.hpp:53
bool m_overlaps_removal
Perform overlaps removal (needed for detector converted from ACTS).
Definition detector_scan_config.hpp:51
detector_scan_config & write_intersections(const bool do_write)
Set whether intersections are written.
Definition detector_scan_config.hpp:161
vector3_type m_B
B-field vector for helix.
Definition detector_scan_config.hpp:46
static constexpr scalar_t mm
Native length unit, the millimetre.
Definition units.hpp:27
static constexpr scalar_t T
Magnetic field, native unit GeV/(e*mm).
Definition units.hpp:108