File indexing completed on 2026-07-26 08:22:13
0001
0002
0003
0004
0005
0006
0007
0008 #include "traccc/options/seed_matching.hpp"
0009
0010 #include <format>
0011
0012 #include "traccc/definitions/common.hpp"
0013 #include "traccc/examples/utils/printable.hpp"
0014
0015 namespace traccc::opts {
0016
0017 seed_matching::seed_matching() : interface("Seed Matching Options") {
0018 m_desc.add_options()("seed-matching-ratio",
0019 boost::program_options::value(&m_matching_ratio)
0020 ->default_value(m_matching_ratio),
0021 "Minimum track state matching ratio");
0022 }
0023
0024 seed_matching::operator seed_matching_config() const {
0025 return seed_matching_config{
0026 .matching_ratio = m_matching_ratio,
0027 };
0028 }
0029
0030 std::unique_ptr<configuration_printable> seed_matching::as_printable() const {
0031 auto cat = std::make_unique<configuration_category>(m_description);
0032
0033 cat->add_child(std::make_unique<configuration_kv_pair>(
0034 "Matching ratio", std::format("{}", m_matching_ratio)));
0035
0036 return cat;
0037 }
0038 }