12#include "detray/test/framework/test_configuration.hpp"
15#include <vecmem/memory/memory_resource.hpp>
22namespace detray::test {
25template <concepts::algebra algebra_t>
36 std::string
m_name{
"material_validation"};
42 std::size_t
m_n_tracks{detray::detail::invalid_value<std::size_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 for a detector scan test.
Definition material_validation_config.hpp:27
const std::string & material_file() const
Get the material trace file name.
Definition material_validation_config.hpp:56
vecmem::memory_resource * device_mr() const
Get the device memory resource.
Definition material_validation_config.hpp:53
vecmem::memory_resource * m_dev_mr
Vecmem memory resource for the device allocations.
Definition material_validation_config.hpp:38
dscalar< algebra_t > scalar_type
Scalar type used by the validation.
Definition material_validation_config.hpp:29
const std::string & name() const
GettersGet the test name.
Definition material_validation_config.hpp:50
material_validation_config & material_file(const std::string &f)
Set the material trace file name.
Definition material_validation_config.hpp:84
material_validation_config & name(const std::string &n)
SettersSet the test name.
Definition material_validation_config.hpp:70
std::string m_material_file
Name of the output file, containing the complete ray material traces.
Definition material_validation_config.hpp:40
dvector3D< algebra_t > vector3_type
Three-dimensional vector type used by the validation.
Definition material_validation_config.hpp:31
scalar_type relative_error() const
Get the allowed relative discrepancy.
Definition material_validation_config.hpp:62
detray::test::configuration< scalar_type > base_type
Base test configuration type.
Definition material_validation_config.hpp:33
std::size_t n_tracks() const
Get the maximum number of test tracks.
Definition material_validation_config.hpp:59
std::size_t m_n_tracks
The maximal number of test tracks to run.
Definition material_validation_config.hpp:42
scalar_type m_rel_error
Allowed relative discrepancy between truth and navigation material.
Definition material_validation_config.hpp:44
material_validation_config & device_mr(vecmem::memory_resource *mr)
Set the device memory resource.
Definition material_validation_config.hpp:77
material_validation_config & n_tracks(std::size_t n)
Set the maximum number of test tracks.
Definition material_validation_config.hpp:91
std::string m_name
Name of the test.
Definition material_validation_config.hpp:36
material_validation_config & relative_error(scalar_type re)
Set the allowed relative discrepancy.
Definition material_validation_config.hpp:98