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) 2023 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
// CUDA plugin include(s).
12
#include "
Acts/Plugins/Cuda/Seeding2/TripletFilterConfig.hpp
"
13
14
// Acts include(s).
15
#include "
Acts/EventData/SpacePointData.hpp
"
16
#include "
Acts/Seeding/Seed.hpp
"
17
#include "
Acts/Seeding/SeedFilterConfig.hpp
"
18
#include "
Acts/Seeding/SeedFinderConfig.hpp
"
19
#include "
Acts/Seeding/SpacePointGrid.hpp
"
20
#include "
Acts/Utilities/Logger.hpp
"
21
22
// System include(s).
23
#include <memory>
24
25
namespace
Acts {
26
namespace
Cuda {
27
28
template
<
typename
external_spacepo
int
_t>
29
class
SeedFinder
{
31
// Public methods:
33
34
public
:
45
SeedFinder
(
SeedFinderConfig<external_spacepoint_t>
commonConfig,
46
const
SeedFinderOptions
& seedFinderOptions,
47
const
SeedFilterConfig
& seedFilterConfig,
48
const
TripletFilterConfig
& tripletFilterConfig,
int
device = 0,
49
std::unique_ptr<const Logger>
logger
=
50
getDefaultLogger
(
"Cuda::SeedFinder"
,
Logging::INFO
));
51
60
template
<
typename
sp_range_t>
61
std::vector<Seed<external_spacepoint_t> >
createSeedsForGroup
(
62
Acts::SpacePointData
& spacePointData,
63
Acts::SpacePointGrid<external_spacepoint_t>
&
grid
,
64
const
sp_range_t& bottomSPs,
const
std::size_t middleSPs,
65
const
sp_range_t& topSPs)
const
;
66
70
void
setLogger
(std::unique_ptr<const Logger> newLogger);
71
72
private
:
76
const
Logger
&
logger
()
const
{
return
*
m_logger
; }
77
79
SeedFinderConfig<external_spacepoint_t>
m_commonConfig
;
80
SeedFinderOptions
m_seedFinderOptions
;
82
SeedFilterConfig
m_seedFilterConfig
;
84
TripletFilterConfig
m_tripletFilterConfig
;
86
int
m_device
;
88
std::unique_ptr<const Logger>
m_logger
;
89
};
90
91
}
// namespace Cuda
92
}
// namespace Acts
93
94
// Include the template implementation.
95
#include "
Acts/Plugins/Cuda/Seeding2/SeedFinder.ipp
"
acts
blob
sPHENIX
Plugins
Cuda
include
Acts
Plugins
Cuda
Seeding2
SeedFinder.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:34
using
1.8.2 with
sPHENIX GitHub integration