|
ACTS
Experiment-independent tracking
|
Configuration for a detector scan test. More...
#include <detray/test/validation/detector_scan_config.hpp>
Public Types | |
| using | base_type = detray::test::configuration<scalar_type> |
| Base test configuration type. | |
| using | scalar_type = dscalar<algebra_t> |
| Scalar type used by the scan. | |
| using | trk_gen_config_t = typename track_generator_t::configuration |
| Track generator configuration type. | |
| using | vector3_type = dvector3D<algebra_t> |
| Three-dimensional vector type used by the scan. | |
Public Member Functions | |
| const std::string & | name () const |
| GettersGet the test name. | |
| const std::string & | intersection_file () const |
| Get the intersection input file name. | |
| const std::string & | track_param_file () const |
| Get the track parameter input file name. | |
| scalar_type | mask_tolerance () const |
| Get the intersector mask tolerance. | |
| const vector3_type & | B_vector () |
| Get the magnetic field vector. | |
| bool | write_intersections () const |
| Check whether intersections are written. | |
| trk_gen_config_t & | track_generator () |
| Get the mutable track generator configuration. | |
| const trk_gen_config_t & | track_generator () const |
| Get the track generator configuration. | |
| bool | overlaps_removal () const |
| Check whether overlap removal is enabled. | |
| float | overlaps_tol () const |
| Get the overlap tolerance. | |
| const auto & | svg_style () const |
| Get the SVG style. | |
| detector_scan_config & | name (const std::string_view n) |
| SettersSet the test name. | |
| detector_scan_config & | intersection_file (const std::string_view f) |
| Set the intersection input file name. | |
| detector_scan_config & | track_param_file (const std::string_view f) |
| Set the track parameter input file name. | |
| detector_scan_config & | mask_tolerance (const scalar_type tol) |
| Set the intersector mask tolerance. | |
| detector_scan_config & | B_vector (const vector3_type &B) |
| Set the magnetic field vector. | |
| detector_scan_config & | B_vector (const scalar_type B0, const scalar_type B1, const scalar_type B2) |
| Set the magnetic field vector components. | |
| detector_scan_config & | overlaps_removal (const bool o) |
| Set whether overlap removal is enabled. | |
| detector_scan_config & | overlaps_tol (const scalar_type tol) |
| Set the overlap tolerance. | |
| detector_scan_config & | write_intersections (const bool do_write) |
| Set whether intersections are written. | |
| Public Member Functions inherited from detray::test::configuration< dscalar< algebra_t > > | |
| configuration & | tol (scalar_t t) |
| SettersSet the tolerance for floating point comparisons. | |
| propagation::config & | propagation () |
| Get the propagation configuration. | |
Public Attributes | |
| vector3_type | m_B |
| B-field vector for helix. | |
| std::string | m_intersection_file {"truth_intersections"} |
| Name of the input file, containing the complete ray scan traces. | |
| scalar_type | m_mask_tol {std::numeric_limits<scalar_type>::epsilon()} |
| Mask tolerance for the intersectors. | |
| std::string | m_name {"detector_scan"} |
| Name of the test. | |
| bool | m_overlaps_removal {true} |
| Perform overlaps removal (needed for detector converted from ACTS). | |
| float | m_overlaps_tol {1e-4f * unit<float>::mm} |
| Tolerance for overlaps. | |
| detray::svgtools::styling::style | m_style |
| Visualization style to be applied to the svgs. | |
| std::string | m_track_param_file {"truth_trk_parameters"} |
| Name of the input file containing track parameters. | |
| trk_gen_config_t | m_trk_gen_cfg {} |
| Configuration of the ray generator. | |
| bool | m_write_inters {false} |
| Write intersection points for plotting. | |
| Public Attributes inherited from detray::test::configuration< dscalar< algebra_t > > | |
| scalar_t | m_tolerance |
| General testingTolerance to compare two floating point values. | |
| scalar_t | inf |
| Shorthand for infinity. | |
| scalar_t | epsilon |
| Shorthand for the floating point epsilon. | |
| propagation::config | m_prop_cfg |
| Propagation. | |
Configuration for a detector scan test.
| const vector3_type & detray::test::detector_scan_config< track_generator_t, algebra_t >::B_vector | ( | ) |
Get the magnetic field vector.
| detector_scan_config & detray::test::detector_scan_config< track_generator_t, algebra_t >::B_vector | ( | const scalar_type | B0, |
| const scalar_type | B1, | ||
| const scalar_type | B2 ) |
Set the magnetic field vector components.
| B0 | First field component. |
| B1 | Second field component. |
| B2 | Third field component. |
| detector_scan_config & detray::test::detector_scan_config< track_generator_t, algebra_t >::B_vector | ( | const vector3_type & | B | ) |
Set the magnetic field vector.
| B | New field vector. |
| const std::string & detray::test::detector_scan_config< track_generator_t, algebra_t >::intersection_file | ( | ) | const |
Get the intersection input file name.
| detector_scan_config & detray::test::detector_scan_config< track_generator_t, algebra_t >::intersection_file | ( | const std::string_view | f | ) |
Set the intersection input file name.
| f | New file name. |
| scalar_type detray::test::detector_scan_config< track_generator_t, algebra_t >::mask_tolerance | ( | ) | const |
Get the intersector mask tolerance.
| detector_scan_config & detray::test::detector_scan_config< track_generator_t, algebra_t >::mask_tolerance | ( | const scalar_type | tol | ) |
Set the intersector mask tolerance.
| tol | New tolerance. |
| const std::string & detray::test::detector_scan_config< track_generator_t, algebra_t >::name | ( | ) | const |
GettersGet the test name.
| detector_scan_config & detray::test::detector_scan_config< track_generator_t, algebra_t >::name | ( | const std::string_view | n | ) |
SettersSet the test name.
| n | New test name. |
| bool detray::test::detector_scan_config< track_generator_t, algebra_t >::overlaps_removal | ( | ) | const |
Check whether overlap removal is enabled.
| detector_scan_config & detray::test::detector_scan_config< track_generator_t, algebra_t >::overlaps_removal | ( | const bool | o | ) |
Set whether overlap removal is enabled.
| o | Whether to remove overlaps. |
| float detray::test::detector_scan_config< track_generator_t, algebra_t >::overlaps_tol | ( | ) | const |
Get the overlap tolerance.
| detector_scan_config & detray::test::detector_scan_config< track_generator_t, algebra_t >::overlaps_tol | ( | const scalar_type | tol | ) |
Set the overlap tolerance.
| tol | New tolerance. |
| const auto & detray::test::detector_scan_config< track_generator_t, algebra_t >::svg_style | ( | ) | const |
Get the SVG style.
| trk_gen_config_t & detray::test::detector_scan_config< track_generator_t, algebra_t >::track_generator | ( | ) |
Get the mutable track generator configuration.
| const trk_gen_config_t & detray::test::detector_scan_config< track_generator_t, algebra_t >::track_generator | ( | ) | const |
Get the track generator configuration.
| const std::string & detray::test::detector_scan_config< track_generator_t, algebra_t >::track_param_file | ( | ) | const |
Get the track parameter input file name.
| detector_scan_config & detray::test::detector_scan_config< track_generator_t, algebra_t >::track_param_file | ( | const std::string_view | f | ) |
Set the track parameter input file name.
| f | New file name. |
| bool detray::test::detector_scan_config< track_generator_t, algebra_t >::write_intersections | ( | ) | const |
Check whether intersections are written.
| detector_scan_config & detray::test::detector_scan_config< track_generator_t, algebra_t >::write_intersections | ( | const bool | do_write | ) |
Set whether intersections are written.
| do_write | Whether to write intersections. |
| vector3_type detray::test::detector_scan_config< track_generator_t, algebra_t >::m_B |
B-field vector for helix.
| detray::svgtools::styling::style detray::test::detector_scan_config< track_generator_t, algebra_t >::m_style |
Visualization style to be applied to the svgs.