You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/beomki/projects/traccc/traccc/examples/run/cpu/truth_fitting_example.cpp: In function ‘int main(int, char**)’:
/home/beomki/projects/traccc/traccc/examples/run/cpu/truth_fitting_example.cpp:119:44: error: no match for ‘operator=’ (operand types are ‘detray::propagation::config<double>’ and ‘detray::propagation::config<float>’)
119 | fit_cfg.propagation = propagation_opts.config;
| ^~~~~~
In file included from /home/beomki/projects/traccc/traccc/core/include/traccc/fitting/fitting_config.hpp:12,
from /home/beomki/projects/traccc/traccc/core/include/traccc/fitting/fitting_algorithm.hpp:14,
from /home/beomki/projects/traccc/traccc/examples/run/cpu/truth_fitting_example.cpp:11:
/home/beomki/projects/traccc/traccc_build/_deps/detray-src/core/include/detray/propagator/propagation_config.hpp:18:8: note: candidate: ‘constexpr detray::propagation::config<double>& detray::propagation::config<double>::operator=(const detray::propagation::config<double>&)’
18 | struct config {
| ^~~~~~
/home/beomki/projects/traccc/traccc_build/_deps/detray-src/core/include/detray/propagator/propagation_config.hpp:18:8: note: no known conversion for argument 1 from ‘detray::propagation::config<float>’ to ‘const detray::propagation::config<double>&’
/home/beomki/projects/traccc/traccc_build/_deps/detray-src/core/include/detray/propagator/propagation_config.hpp:18:8: note: candidate: ‘constexpr detray::propagation::config<double>& detray::propagation::config<double>::operator=(detray::propagation::config<double>&&)’
/home/beomki/projects/traccc/traccc_build/_deps/detray-src/core/include/detray/propagator/propagation_config.hpp:18:8: note: no known conversion for argument 1 from ‘detray::propagation::config<float>’ to ‘detray::propagation::config<double>&&’
/home/beomki/projects/traccc/traccc/examples/run/cpu/seeding_example.cpp: In function ‘int seq_run(const traccc::opts::track_seeding&, const traccc::opts::track_finding&, const traccc::opts::track_propagation&, const traccc::opts::track_resolution&, const traccc::opts::input_data&, const traccc::opts::detector&, const traccc::opts::performance&)’:
/home/beomki/projects/traccc/traccc/examples/run/cpu/seeding_example.cpp:142:40: error: no match for ‘operator=’ (operand types are ‘detray::propagation::config<double>’ and ‘const detray::propagation::config<float>’)
142 | cfg.propagation = propagation_opts.config;
The text was updated successfully, but these errors were encountered:
Generally, I'll want to get to a stage where all of the templated algorithms / tools / etc. would receive non-templated configuration arguments. To make it a lot easier to handle them in client code.
I guess that should be possible, right? Do we have examples where a "config type" would actually depend on the template parameters of its parent object? (Apart from the scalar type of course.)
But in the meanwhile, I'll try to come up with a temporary solution to this particular issue. 🤔
krasznaa
added a commit
to krasznaa/traccc
that referenced
this issue
Apr 15, 2024
Maybe we need to make detray configuration always float number?
The text was updated successfully, but these errors were encountered: