Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Vertexing.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Vertexing.cpp
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 
17 
18 #include <memory>
19 
20 #include <pybind11/pybind11.h>
21 #include <pybind11/stl.h>
22 
23 namespace py = pybind11;
24 
25 using namespace ActsExamples;
26 using namespace Acts;
27 
28 namespace Acts::Python {
29 
30 void addVertexing(Context& ctx) {
32  auto mex = ctx.get("examples");
33  auto& m = ctx.get("main");
34 
35  py::enum_<Seeder>(m, "VertexSeedFinder")
36  .value("GaussianSeeder", Seeder::GaussianSeeder)
37  .value("AdaptiveGridSeeder", Seeder::AdaptiveGridSeeder);
38 
41  "AdaptiveMultiVertexFinderAlgorithm", inputTrackParameters,
43  bField);
44 
46  mex, "IterativeVertexFinderAlgorithm",
47  inputTrackParameters, inputTrajectories,
49 
51  mex, "TutorialVertexFinderAlgorithm",
52  inputTrackParameters, inputTrajectories,
54 
56  ActsExamples::VertexFitterAlgorithm, mex, "VertexFitterAlgorithm",
57  inputTrackParameters, inputTrajectories, inputProtoVertices,
58  outputVertices, bField, doConstrainedFit, constraintPos, constraintCov);
59 
61  mex, "SingleSeedVertexFinderAlgorithm",
62  inputSpacepoints, outputVertices);
63 }
64 
65 } // namespace Acts::Python