Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-27 07:24:25

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 // Projetc include(s)
0012 #include "detray/core/detector.hpp"
0013 #include "detray/definitions/algebra.hpp"
0014 #include "detray/utils/ranges.hpp"
0015 
0016 // Detray test include(s)
0017 #include "detray/test/framework/types.hpp"
0018 
0019 namespace detray {
0020 
0021 // some useful type declarations
0022 using metadata_t = test::toy_metadata;
0023 using detector_host_t = detector<metadata_t, host_container_types>;
0024 using detector_device_t = detector<metadata_t, device_container_types>;
0025 
0026 using det_volume_t = typename detector_host_t::volume_type;
0027 using det_surface_t = typename detector_host_t::surface_type;
0028 using transform_t = typename detector_host_t::transform3_type;
0029 using mask_defs = typename detector_host_t::masks;
0030 
0031 constexpr auto rectangle_id = mask_defs::id::e_rectangle2D;
0032 constexpr auto disc_id = mask_defs::id::e_ring2D;
0033 constexpr auto cylinder_id = mask_defs::id::e_concentric_cylinder2D;
0034 
0035 using rectangle_t = types::get<mask_defs, rectangle_id>;
0036 using disc_t = types::get<mask_defs, disc_id>;
0037 using cylinder_t = types::get<mask_defs, cylinder_id>;
0038 
0039 /// declaration of a test function for detector
0040 void detector_test(typename detector_host_t::view_type det_data,
0041                    vecmem::data::vector_view<det_volume_t> volumes_data,
0042                    vecmem::data::vector_view<det_surface_t> surfaces_data,
0043                    vecmem::data::vector_view<transform_t> transforms_data,
0044                    vecmem::data::vector_view<rectangle_t> rectangles_data,
0045                    vecmem::data::vector_view<disc_t> discs_data,
0046                    vecmem::data::vector_view<cylinder_t> cylinders_data);
0047 
0048 }  // namespace detray