Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TruthSeedingAlgorithm.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TruthSeedingAlgorithm.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 
22 
23 #include <functional>
24 #include <memory>
25 #include <string>
26 #include <vector>
27 
28 namespace ActsFatras {
29 class Barcode;
30 } // namespace ActsFatras
31 
32 namespace Acts {
33 class TrackingGeometry;
34 }
35 
36 namespace ActsExamples {
37 struct AlgorithmContext;
38 
40 class TruthSeedingAlgorithm final : public IAlgorithm {
41  public:
43 
44  struct Config {
55  std::vector<std::string> inputSpacePoints;
66  };
67 
73 
78  ProcessCode execute(const AlgorithmContext& ctx) const override;
79 
81  const Config& config() const { return m_cfg; }
82 
83  private:
85 
88  this, "InputMeasurementParticlesMaps"};
89  std::vector<std::unique_ptr<ReadDataHandle<SimSpacePointContainer>>>
91 
93  "OutputParticles"};
95  "OutputProtoTracks"};
97 };
98 
99 } // namespace ActsExamples