Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SeedingFTFAlgorithm.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SeedingFTFAlgorithm.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 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 // basing off of SeedingOrtho
10 
11 #pragma once
12 
17 // in core
25 
26 #include <string>
27 #include <vector>
28 
29 namespace ActsExamples {
30 
31 class SeedingFTFAlgorithm final : public IAlgorithm {
32  public:
33  struct Config {
34  std::vector<std::string> inputSpacePoints;
35 
37 
41 
43 
44  std::vector<Acts::GeometryIdentifier> geometrySelection;
45 
47 
48  std::shared_ptr<const Acts::TrackingGeometry> trackingGeometry;
49 
50  std::map<std::pair<int, int>, std::pair<int, int>> ACTS_FTF_Map;
51 
52  bool fill_module_csv = false;
53  };
54 
55  // constructor:
59 
60  // code to make the algorithm run
63  ProcessCode execute(const AlgorithmContext &ctx) const override;
64 
65  // access to config
66  const Config &config() const { return m_cfg; }
67 
68  // own class functions
69  // make the map
70  std::map<std::pair<int, int>, std::pair<int, int>> Make_ACTS_FTF_Map() const;
71  // make the vector of space points with FTF Info
72  std::vector<Acts::FTF_SP<SimSpacePoint>> Make_FTF_spacePoints(
73  const AlgorithmContext &ctx,
74  std::map<std::pair<int, int>, std::pair<int, int>> map) const;
75  // layer numbering
76  std::vector<Acts::TrigInDetSiLayer> LayerNumbering() const;
77 
78  private:
80 
81  std::unique_ptr<Acts::TrigFTF_GNN_Geometry<SimSpacePoint>> mGNNgeo;
82 
83  std::vector<std::unique_ptr<ReadDataHandle<SimSpacePointContainer>>>
85 
87 
89  this, "InputSourceLinks"};
90 };
91 
92 } // namespace ActsExamples