Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SeedFinderFTF.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SeedFinderFTF.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 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 // TODO: update to C++17 style
12 
20 
21 #include <array>
22 #include <iostream>
23 #include <list>
24 #include <map>
25 #include <memory>
26 #include <set>
27 #include <string>
28 #include <utility>
29 #include <vector>
30 
31 namespace Acts {
32 
33 template <typename external_spacepoint_t>
35  public:
37  std::vector<TrigInDetTriplet<external_spacepoint_t>> &tbuf)
38  : m_track(vSP), m_seeds(tbuf) {}
39 
40  std::vector<const FTF_SP<external_spacepoint_t> *> m_track;
41  std::vector<TrigInDetTriplet<external_spacepoint_t>> m_seeds;
42 };
43 
44 template <typename external_spacepoint_t>
46  public:
47  static constexpr std::size_t NDims = 3;
48 
50  // using internal_sp_t = InternalSpacePoint<external_spacepoint_t>;
51  // using tree_t = KDTree<NDims, internal_sp_t *, ActsScalar, std::array, 4>;
52 
53  // constructors
56 
57  ~SeedFinderFTF();
58  SeedFinderFTF() = default;
61  const SeedFinderFTF<external_spacepoint_t> &) = delete;
62 
63  void loadSpacePoints(
64  const std::vector<FTF_SP<external_spacepoint_t>> &FTF_SP_vect);
65 
66  void createSeeds(
67  const Acts::RoiDescriptor &roi,
69 
70  // create seeeds function
71  template <typename input_container_t, typename output_container_t,
72  typename callable_t>
74  const input_container_t &spacePoints,
75  output_container_t &out_cont,
76  callable_t &&extract_coordinates) const;
77 
78  template <typename input_container_t, typename callable_t>
79  std::vector<seed_t> createSeeds_old(const Acts::SeedFinderOptions &options,
80  const input_container_t &spacePoints,
81  callable_t &&extract_coordinates) const;
82 
83  private:
84  enum Dim { DimPhi = 0, DimR = 1, DimZ = 2 };
85 
86  // config object
88 
89  void runGNN_TrackFinder(
90  std::vector<GNN_TrigTracklet<external_spacepoint_t>> &vTracks,
91  const Acts::RoiDescriptor &roi,
93 
94  // needs to be member of class so can accessed by all member functions
96 
97  // for create seeds:
98  std::vector<TrigInDetTriplet<external_spacepoint_t>> m_triplets;
99 };
100 
101 } // namespace Acts
102