11/* * Detray library, part of the ACTS project (R&D line)
22 *
3- * (c) 2023 CERN for the benefit of the ACTS project
3+ * (c) 2023-2025 CERN for the benefit of the ACTS project
44 *
55 * Mozilla Public License Version 2.0
66 */
77
88#pragma once
99
1010// Project include(s).
11- #include " detray/builders/grid_factory.hpp"
1211#include " detray/builders/volume_builder.hpp"
1312#include " detray/builders/volume_builder_interface.hpp"
1413#include " detray/core/detector.hpp"
15- #include " detray/definitions/geometry.hpp"
16- #include " detray/utils/grid/detail/concepts.hpp"
17- #include " detray/utils/type_traits.hpp"
1814
1915// Vecmem include(s)
2016#include < detray/utils/log.hpp>
@@ -31,7 +27,6 @@ namespace detray {
3127// / @brief Provides functionality to build a detray detector volume by volume
3228// /
3329// / @tparam metadata the type definitions for the detector
34- // / @tparam bfield_bknd_t the type of magnetic field to be used
3530// / @tparam volume_builder_t the basic volume builder to be used for the
3631// / geometry data
3732// / @tparam volume_data_t the data structure that holds the volume builders
@@ -151,49 +146,12 @@ class detector_builder {
151146 return build (resource);
152147 }
153148
154- // / Put the volumes into a search data structure
155- /* template <typename... Args>
156- DETRAY_HOST void set_volume_accelerator([[maybe_unused]] Args&&... args) {
157- DETRAY_DEBUG("Setting volume finder for detector " << name());
158-
159- using vol_finder_t = typename detector_type::volume_accelerator;
160-
161- // Add dummy volume grid for now
162- if constexpr (concepts::grid<vol_finder_t>) {
163-
164- // TODO: Construct it correctly with the grid builder
165- mask<cylinder3D, algebra_type> vgrid_dims{
166- 0u, 0.f, -constant<scalar_type>::pi,
167- -2000.f, 180.f, constant<scalar_type>::pi,
168- 2000.f};
169- darray<std::size_t, 3> n_vgrid_bins{1u, 1u, 1u};
170-
171- darray<std::vector<scalar_type>, 3UL> bin_edges{
172- std::vector<scalar_type>{0.f, 180.f},
173- std::vector<scalar_type>{-constant<scalar_type>::pi,
174- constant<scalar_type>::pi},
175- std::vector<scalar_type>{-2000.f, 2000.f}};
176-
177- grid_factory_type<vol_finder_t> vgrid_factory{};
178- m_vol_finder = vgrid_factory.template new_grid<
179- axis::open<axis::label::e_r>,
180- axis::circular<axis::label::e_phi>,
181- axis::open<axis::label::e_z>, axis::irregular<scalar_type>,
182- axis::regular<scalar_type>, axis::irregular<scalar_type>>(
183- vgrid_dims, n_vgrid_bins, {}, bin_edges);
184- } else {
185- m_vol_finder = vol_finder_t{args...};
186- }
187- }*/
188-
189149 private:
190150 // / Name of the new detector
191151 std::string m_detector_name{" detray_detector" };
192152 // / Data structure that holds a volume builder for every detector volume
193153 volume_data_t <std::unique_ptr<volume_builder_interface<detector_type>>>
194154 m_volumes{};
195- // / Data structure to find volumes
196- // typename detector_type::volume_accelerator m_vol_finder{};
197155};
198156
199157} // namespace detray
0 commit comments