|
ACTS
Experiment-independent tracking
|
Configuration for a detector scan test. More...
#include <detray/test/validation/navigation_validation_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 validation. | |
| using | vector3_type = dvector3D<algebra_t> |
| Three-dimensional vector type used by the validation. | |
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. | |
| std::size_t | n_tracks () const |
| Get the maximum number of tracks. | |
| pdg_particle< scalar_type > | ptc_hypothesis () const |
| Get the particle hypothesis. | |
| navigation::direction | navigation_direction () const |
| Get the navigation direction. | |
| bool | collect_sensitives_only () const |
| Check whether only sensitive surfaces are collected. | |
| bool | display_svg () const |
| Check whether SVG output is enabled. | |
| bool | display_only_missed () const |
| Check whether SVG output is limited to missed surfaces. | |
| bool | fail_on_diff () const |
| Check whether validation stops at the first difference. | |
| bool | verbose () const |
| Check whether verbose output is enabled. | |
| darray< scalar_type, 2 > | p_range () const |
| Get the configured momentum range. | |
| const vector3_type & | B_vector () const |
| Get the magnetic field vector. | |
| const auto & | svg_style () const |
| Get the SVG style. | |
| navigation_validation_config & | name (const std::string &n) |
| SettersSet the test name. | |
| navigation_validation_config & | intersection_file (const std::string &f) |
| Set the intersection input file name. | |
| navigation_validation_config & | track_param_file (const std::string &f) |
| Set the track parameter input file name. | |
| navigation_validation_config & | ptc_hypothesis (pdg_particle< scalar_type > pdg_ptc) |
| Set the particle hypothesis. | |
| navigation_validation_config & | navigation_direction (const navigation::direction dir) |
| Set the navigation direction. | |
| navigation_validation_config & | collect_sensitives_only (const bool only_sensitives) |
| Set whether to collect only sensitive surfaces. | |
| navigation_validation_config & | display_svg (const bool do_display) |
| Set whether SVG output is enabled. | |
| navigation_validation_config & | display_only_missed (const bool only_missed) |
| Set whether SVG output is limited to missed surfaces. | |
| navigation_validation_config & | fail_on_diff (const bool fail_on_diff) |
| Set whether validation stops at the first difference. | |
| navigation_validation_config & | verbose (const bool v) |
| Set whether verbose output is enabled. | |
| navigation_validation_config & | n_tracks (std::size_t n) |
| Set the maximum number of tracks. | |
| navigation_validation_config & | p_range (const darray< scalar_type, 2 > pr) |
| Set the momentum range. | |
| navigation_validation_config & | B_vector (const vector3_type &B) |
| Set the magnetic field vector. | |
| navigation_validation_config & | B_vector (const scalar_type B0, const scalar_type B1, const scalar_type B2) |
| Set the magnetic field vector components. | |
| 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. | |
| bool | m_collect_sensitives_only {false} |
| Collect only the sensitive intersections for comparison. | |
| bool | m_display_only_missed {false} |
| Drop an SVG only if navigation missed a surface. | |
| bool | m_display_svg {false} |
| Toggle SVG display. | |
| bool | m_fail_on_diff {true} |
| Whether to stop execution at the first error. | |
| std::string | m_intersection_file {"truth_intersections.csv"} |
| Name of the input file, containing the complete ray scan traces. | |
| std::size_t | m_n_tracks {detray::detail::invalid_value<std::size_t>()} |
| The maximum number of test tracks to run. | |
| std::string | m_name {"navigation_validation"} |
| Name of the test. | |
| navigation::direction | m_nav_dir {navigation::direction::e_forward} |
| Navigation direction. | |
| darray< scalar_type, 2 > | m_p_range |
| Configured momentum range of the test sample (only needed to generate correct file names). | |
| pdg_particle< scalar_type > | m_ptc_hypo {muon<scalar_type>()} |
| Particle hypothesis (truth particle from simulation). | |
| detray::svgtools::styling::style | m_style |
| Visualization style to be applied to the SVGs. | |
| std::string | m_track_param_file {"truth_trk_parameters.csv"} |
| Name of the input file containing track parameters. | |
| bool | m_verbose {true} |
| Verbosity of the console output. | |
| 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::navigation_validation_config< algebra_t >::B_vector | ( | ) | const |
Get the magnetic field vector.
| navigation_validation_config & detray::test::navigation_validation_config< 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. |
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::B_vector | ( | const vector3_type & | B | ) |
Set the magnetic field vector.
| B | New field vector. |
| bool detray::test::navigation_validation_config< algebra_t >::collect_sensitives_only | ( | ) | const |
Check whether only sensitive surfaces are collected.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::collect_sensitives_only | ( | const bool | only_sensitives | ) |
Set whether to collect only sensitive surfaces.
| only_sensitives | Whether to restrict collection. |
| bool detray::test::navigation_validation_config< algebra_t >::display_only_missed | ( | ) | const |
Check whether SVG output is limited to missed surfaces.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::display_only_missed | ( | const bool | only_missed | ) |
Set whether SVG output is limited to missed surfaces.
| only_missed | Whether to display only misses. |
| bool detray::test::navigation_validation_config< algebra_t >::display_svg | ( | ) | const |
Check whether SVG output is enabled.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::display_svg | ( | const bool | do_display | ) |
Set whether SVG output is enabled.
| do_display | Whether to display SVGs. |
| bool detray::test::navigation_validation_config< algebra_t >::fail_on_diff | ( | ) | const |
Check whether validation stops at the first difference.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::fail_on_diff | ( | const bool | fail_on_diff | ) |
Set whether validation stops at the first difference.
| fail_on_diff | Whether to stop on a difference. |
| const std::string & detray::test::navigation_validation_config< algebra_t >::intersection_file | ( | ) | const |
Get the intersection input file name.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::intersection_file | ( | const std::string & | f | ) |
Set the intersection input file name.
| f | New file name. |
| std::size_t detray::test::navigation_validation_config< algebra_t >::n_tracks | ( | ) | const |
Get the maximum number of tracks.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::n_tracks | ( | std::size_t | n | ) |
Set the maximum number of tracks.
| n | Number of tracks. |
| const std::string & detray::test::navigation_validation_config< algebra_t >::name | ( | ) | const |
GettersGet the test name.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::name | ( | const std::string & | n | ) |
SettersSet the test name.
| n | New test name. |
| navigation::direction detray::test::navigation_validation_config< algebra_t >::navigation_direction | ( | ) | const |
Get the navigation direction.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::navigation_direction | ( | const navigation::direction | dir | ) |
Set the navigation direction.
| dir | New direction. |
| darray< scalar_type, 2 > detray::test::navigation_validation_config< algebra_t >::p_range | ( | ) | const |
Get the configured momentum range.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::p_range | ( | const darray< scalar_type, 2 > | pr | ) |
Set the momentum range.
| pr | New momentum range. |
| pdg_particle< scalar_type > detray::test::navigation_validation_config< algebra_t >::ptc_hypothesis | ( | ) | const |
Get the particle hypothesis.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::ptc_hypothesis | ( | pdg_particle< scalar_type > | pdg_ptc | ) |
Set the particle hypothesis.
| pdg_ptc | New particle hypothesis. |
| const auto & detray::test::navigation_validation_config< algebra_t >::svg_style | ( | ) | const |
Get the SVG style.
| const std::string & detray::test::navigation_validation_config< algebra_t >::track_param_file | ( | ) | const |
Get the track parameter input file name.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::track_param_file | ( | const std::string & | f | ) |
Set the track parameter input file name.
| f | New file name. |
| bool detray::test::navigation_validation_config< algebra_t >::verbose | ( | ) | const |
Check whether verbose output is enabled.
| navigation_validation_config & detray::test::navigation_validation_config< algebra_t >::verbose | ( | const bool | v | ) |
Set whether verbose output is enabled.
| v | Whether to enable verbose output. |
| vector3_type detray::test::navigation_validation_config< algebra_t >::m_B |
B-field vector for helix.
| darray<scalar_type, 2> detray::test::navigation_validation_config< algebra_t >::m_p_range |
Configured momentum range of the test sample (only needed to generate correct file names).
If none was passed, it will be determined from the track data (imprecise!)
| detray::svgtools::styling::style detray::test::navigation_validation_config< algebra_t >::m_style |
Visualization style to be applied to the SVGs.