Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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).
12
#include "
Acts/Seeding/SeedFilter.hpp
"
13
#include "
Acts/Seeding/SeedFinderConfig.hpp
"
14
#include "
Acts/Seeding/SpacePointGrid.hpp
"
15
16
// SYCL plugin include(s).
17
#include "
Acts/Plugins/Sycl/Seeding/DeviceExperimentCuts.hpp
"
18
#include "
Acts/Plugins/Sycl/Seeding/detail/Types.hpp
"
19
#include "
Acts/Plugins/Sycl/Utilities/QueueWrapper.hpp
"
20
21
// VecMem include(s).
22
#include "vecmem/memory/memory_resource.hpp"
23
24
namespace
Acts::Sycl {
25
26
template
<
typename
external_spacepo
int
_t>
27
class
SeedFinder
{
28
public
:
29
SeedFinder
(
Acts::SeedFinderConfig<external_spacepoint_t>
config
,
30
const
Acts::SeedFinderOptions
&
options
,
31
const
Acts::Sycl::DeviceExperimentCuts
&
cuts
,
32
Acts::Sycl::QueueWrapper
wrappedQueue,
33
vecmem::memory_resource& resource,
34
vecmem::memory_resource* device_resource =
nullptr
);
35
36
~SeedFinder
() =
default
;
37
SeedFinder
() =
delete
;
38
SeedFinder
(
const
SeedFinder<external_spacepoint_t>
&) =
delete
;
39
SeedFinder<external_spacepoint_t>
&
operator=
(
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,
53
Acts::SpacePointGrid<external_spacepoint_t>
&
grid
,
54
const
sp_range_t& bottomSPs,
const
std::size_t middleSPs,
55
const
sp_range_t& topSPs)
const
;
56
57
private
:
58
Acts::SeedFinderConfig<external_spacepoint_t>
m_config
;
59
Acts::SeedFinderOptions
m_options
;
60
62
Acts::Sycl::DeviceExperimentCuts
m_deviceCuts
;
63
65
Acts::Sycl::detail::DeviceSeedFinderConfig
m_deviceConfig
;
66
68
QueueWrapper
m_wrappedQueue
;
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.
80
#include "
Acts/Plugins/Sycl/Seeding/SeedFinder.ipp
"
acts
blob
sPHENIX
Plugins
Sycl
include
Acts
Plugins
Sycl
Seeding
SeedFinder.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:34
using
1.8.2 with
sPHENIX GitHub integration