99#include " traccc/definitions/common.hpp"
1010#include " traccc/finding/finding_config.hpp"
1111#include " traccc/fitting/fitting_config.hpp"
12+ #include " traccc/geometry/detector.hpp"
1213#include " traccc/io/utils.hpp"
1314#include " traccc/seeding/seeding_algorithm.hpp"
1415#include " traccc/seeding/track_params_estimation.hpp"
1718#include " traccc/simulation/smearing_writer.hpp"
1819
1920// Detray include(s).
20- #include " detray/core/detector.hpp"
2121#include " detray/definitions/units.hpp"
2222#include " detray/detectors/bfield.hpp"
23- #include " detray/geometry/mask.hpp"
24- #include " detray/geometry/shapes/rectangle2D.hpp"
2523#include " detray/io/frontend/detector_reader.hpp"
2624#include " detray/io/frontend/detector_writer.hpp"
2725#include " detray/navigation/detail/ray.hpp"
@@ -68,11 +66,12 @@ class ToyDetectorBenchmark : public benchmark::Fixture {
6866 static inline const std::string sim_dir = " toy_detector_benchmark/" ;
6967
7068 // Detector type
71- using detector_type = detray::detector<detray::toy_metadata>;
69+ using detector_type = traccc::toy_detector::host;
70+ using scalar_type = detector_type::scalar_type;
7271
7372 // B field value and its type
7473 // @TODO: Set B field as argument
75- using b_field_t = covfie::field<detray::bfield::const_bknd_t >;
74+ using b_field_t = covfie::field<detray::bfield::const_bknd_t <scalar_type> >;
7675
7776 static constexpr traccc::vector3 B{0 , 0 ,
7877 2 * detray::unit<traccc::scalar>::T};
@@ -89,10 +88,11 @@ class ToyDetectorBenchmark : public benchmark::Fixture {
8988
9089 // Build the detector
9190 auto [det, name_map] =
92- detray::build_toy_detector (host_mr, get_toy_config ());
91+ detray::build_toy_detector<traccc::default_algebra>(
92+ host_mr, get_toy_config ());
9393
9494 // B field
95- auto field = detray::bfield::create_const_field (B);
95+ auto field = detray::bfield::create_const_field<scalar_type> (B);
9696
9797 // Origin of particles
9898 using generator_type =
@@ -143,10 +143,10 @@ class ToyDetectorBenchmark : public benchmark::Fixture {
143143 detray::io::write_detector (det, name_map, writer_cfg);
144144 }
145145
146- detray::toy_det_config get_toy_config () const {
146+ detray::toy_det_config<traccc::scalar> get_toy_config () const {
147147
148148 // Create the toy geometry
149- detray::toy_det_config toy_cfg{};
149+ detray::toy_det_config<traccc::scalar> toy_cfg{};
150150 toy_cfg.n_brl_layers (4u ).n_edc_layers (7u ).do_check (false );
151151
152152 // @TODO: Increase the material budget again
0 commit comments