Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SeedFinder.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SeedFinder.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020-2021 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
11 // Acts include(s).
15 
16 // SYCL plugin include(s).
20 
21 // VecMem include(s).
22 #include "vecmem/memory/memory_resource.hpp"
23 
24 namespace Acts::Sycl {
25 
26 template <typename external_spacepoint_t>
27 class SeedFinder {
28  public:
32  Acts::Sycl::QueueWrapper wrappedQueue,
33  vecmem::memory_resource& resource,
34  vecmem::memory_resource* device_resource = nullptr);
35 
36  ~SeedFinder() = default;
37  SeedFinder() = delete;
40  const SeedFinder<external_spacepoint_t>&) = delete;
41 
50  template <typename sp_range_t>
51  std::vector<Seed<external_spacepoint_t>> createSeedsForGroup(
52  Acts::SpacePointData& spacePointData,
54  const sp_range_t& bottomSPs, const std::size_t middleSPs,
55  const sp_range_t& topSPs) const;
56 
57  private:
60 
63 
66 
69 
71  vecmem::memory_resource* m_resource;
72 
74  vecmem::memory_resource* m_device_resource;
75 };
76 
77 } // namespace Acts::Sycl
78 
79 // Include the template implementation.