File indexing completed on 2026-05-27 07:24:01
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011
0012 #include "detray/definitions/detail/qualifiers.hpp"
0013 #include "detray/definitions/indexing.hpp"
0014 #include "detray/definitions/units.hpp"
0015 #include "detray/navigation/accelerators/search_window.hpp"
0016 #include "detray/navigation/intersection/intersection_config.hpp"
0017
0018
0019 #include <ostream>
0020
0021 namespace detray::navigation {
0022
0023
0024 struct config {
0025
0026 intersection::config intersection{};
0027
0028
0029 detray::search_window<dindex, 2> search_window = {0u, 0u};
0030
0031
0032
0033
0034 float accumulated_error{0.001f};
0035
0036 int n_scattering_stddev{3};
0037
0038 bool estimate_scattering_noise{true};
0039
0040
0041 DETRAY_HOST
0042 friend std::ostream& operator<<(std::ostream& out, const config& cfg) {
0043 out << cfg.intersection
0044 << " Search window : " << cfg.search_window[0] << " x "
0045 << cfg.search_window[1] << "\n";
0046
0047 if (cfg.estimate_scattering_noise) {
0048 out << "Actor configuration:\n"
0049 << " Accumulated error : " << cfg.accumulated_error * 100.f
0050 << " %\n"
0051 << " No. scattering stddev : " << cfg.n_scattering_stddev << "\n";
0052 }
0053
0054 return out;
0055 }
0056 };
0057 }