Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stages.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Stages.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 #include <any>
12 #include <vector>
13 
14 namespace Acts {
15 
16 // TODO maybe replace std::any with some kind of variant<unique_ptr<torch>,
17 // unique_ptr<onnx>>?
18 // TODO maybe replace input for GraphConstructionBase with some kind of
19 // boost::multi_array / Eigen::Array
20 
22  public:
31  virtual std::tuple<std::any, std::any> operator()(
32  std::vector<float> &inputValues, std::size_t numNodes,
33  int deviceHint = -1) = 0;
34 
35  virtual ~GraphConstructionBase() = default;
36 };
37 
39  public:
47  virtual std::tuple<std::any, std::any, std::any> operator()(
48  std::any nodes, std::any edges, int deviceHint = -1) = 0;
49 
50  virtual ~EdgeClassificationBase() = default;
51 };
52 
54  public:
64  virtual std::vector<std::vector<int>> operator()(
65  std::any nodes, std::any edges, std::any edgeWeights,
66  std::vector<int> &spacepointIDs, int deviceHint = -1) = 0;
67 
68  virtual ~TrackBuildingBase() = default;
69 };
70 
71 } // namespace Acts