Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:21:58

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2026 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 #pragma once
0009 
0010 // Local include(s).
0011 #include "traccc/definitions/qualifiers.hpp"
0012 #include "traccc/edm/spacepoint_collection.hpp"
0013 
0014 // Detray include(s).
0015 #include <detray/definitions/algebra.hpp>
0016 
0017 namespace traccc::edm {
0018 
0019 /// Get the global position of a spacepoint as a 3D point
0020 ///
0021 /// @tparam algebra_t The algebra type used to describe the tracks
0022 ///
0023 /// @param sp The spacepoint to extract the global position from
0024 /// @param pos The 3D point to fill with the global position of the spacepoint
0025 ///
0026 template <detray::concepts::algebra algebra_t, typename spacepoint_backend_t>
0027 TRACCC_HOST_DEVICE detray::dpoint3D<algebra_t> get_spacepoint_global(
0028     const edm::spacepoint<spacepoint_backend_t>& sp);
0029 
0030 }  // namespace traccc::edm
0031 
0032 // Implementation include(s).
0033 #include "traccc/edm/impl/spacepoint_helpers.ipp"