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) 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).
13 
14 // Acts include(s).
16 #include "Acts/Seeding/Seed.hpp"
21 
22 // System include(s).
23 #include <memory>
24 
25 namespace Acts {
26 namespace Cuda {
27 
28 template <typename external_spacepoint_t>
29 class SeedFinder {
31  // Public methods:
33 
34  public:
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,
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 
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.