Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
cmake
Core
docs
Examples
Algorithms
Detectors
Framework
Io
Python
include
python
src
AmbiguityResolution.cpp
Base.cpp
DD4hepComponent.cpp
Detector.cpp
DetectorInspectorsStub.cpp
Digitization.cpp
DigitizationStub.cpp
EDM4hep.cpp
EDM4hepStub.cpp
EventData.cpp
ExampleAlgorithms.cpp
ExaTrkXTrackFinding.cpp
ExaTrkXTrackFindingStub.cpp
Framework.cpp
Geant4Component.cpp
Geant4DD4hepComponent.cpp
Geant4HepMC3.cpp
Geant4HepMC3Stub.cpp
Generators.cpp
Geometry.cpp
HepMC3.cpp
HepMC3Stub.cpp
Input.cpp
Json.cpp
JsonStub.cpp
MagneticField.cpp
Material.cpp
ModuleEntry.cpp
Obj.cpp
Onnx.cpp
OnnxMlpack.cpp
OnnxMlpackStub.cpp
OnnxNeuralCalibrator.cpp
OnnxNeuralCalibratorStub.cpp
OnnxStub.cpp
Output.cpp
Propagation.cpp
Pythia8.cpp
Pythia8Stub.cpp
Svg.cpp
SvgStub.cpp
TrackFinding.cpp
TrackFitting.cpp
TruthTracking.cpp
Vertexing.cpp
tests
Run
Scripts
Fatras
Plugins
Tests
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
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
9
#include "
Acts/Plugins/Python/Utilities.hpp
"
10
#include "
Acts/Utilities/TypeTraits.hpp
"
11
#include "
ActsExamples/EventData/Index.hpp
"
12
#include "
ActsExamples/Vertexing/AdaptiveMultiVertexFinderAlgorithm.hpp
"
13
#include "
ActsExamples/Vertexing/IterativeVertexFinderAlgorithm.hpp
"
14
#include "
ActsExamples/Vertexing/SingleSeedVertexFinderAlgorithm.hpp
"
15
#include "
ActsExamples/Vertexing/TutorialVertexFinderAlgorithm.hpp
"
16
#include "
ActsExamples/Vertexing/VertexFitterAlgorithm.hpp
"
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) {
31
using
Seeder =
ActsExamples::AdaptiveMultiVertexFinderAlgorithm::SeedFinder
;
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
39
ACTS_PYTHON_DECLARE_ALGORITHM
(
40
ActsExamples::AdaptiveMultiVertexFinderAlgorithm
, mex,
41
"AdaptiveMultiVertexFinderAlgorithm"
, inputTrackParameters,
42
inputTrajectories
,
outputProtoVertices
,
outputVertices
, seedFinder,
43
bField
);
44
45
ACTS_PYTHON_DECLARE_ALGORITHM
(
ActsExamples::IterativeVertexFinderAlgorithm
,
46
mex,
"IterativeVertexFinderAlgorithm"
,
47
inputTrackParameters,
inputTrajectories
,
48
outputProtoVertices
,
outputVertices
,
bField
);
49
50
ACTS_PYTHON_DECLARE_ALGORITHM
(
ActsExamples::TutorialVertexFinderAlgorithm
,
51
mex,
"TutorialVertexFinderAlgorithm"
,
52
inputTrackParameters,
inputTrajectories
,
53
outputProtoVertices
,
bField
);
54
55
ACTS_PYTHON_DECLARE_ALGORITHM
(
56
ActsExamples::VertexFitterAlgorithm
, mex,
"VertexFitterAlgorithm"
,
57
inputTrackParameters,
inputTrajectories
, inputProtoVertices,
58
outputVertices
,
bField
, doConstrainedFit, constraintPos, constraintCov);
59
60
ACTS_PYTHON_DECLARE_ALGORITHM
(
ActsExamples::SingleSeedVertexFinderAlgorithm
,
61
mex,
"SingleSeedVertexFinderAlgorithm"
,
62
inputSpacepoints,
outputVertices
);
63
}
64
65
}
// namespace Acts::Python
acts
blob
sPHENIX
Examples
Python
src
Vertexing.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:39
using
1.8.2 with
sPHENIX GitHub integration