Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
IterativeVertexFinderAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file IterativeVertexFinderAlgorithm.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-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
11
#include "
Acts/Definitions/Algebra.hpp
"
12
#include "
Acts/Definitions/Direction.hpp
"
13
#include "
Acts/EventData/Charge.hpp
"
14
#include "
Acts/EventData/GenericBoundTrackParameters.hpp
"
15
#include "
Acts/EventData/TrackParameters.hpp
"
16
#include "
Acts/Geometry/GeometryIdentifier.hpp
"
17
#include "
Acts/MagneticField/MagneticFieldProvider.hpp
"
18
#include "
Acts/Propagator/EigenStepper.hpp
"
19
#include "
Acts/Propagator/Propagator.hpp
"
20
#include "
Acts/Utilities/Logger.hpp
"
21
#include "
Acts/Vertexing/FullBilloirVertexFitter.hpp
"
22
#include "
Acts/Vertexing/HelicalTrackLinearizer.hpp
"
23
#include "
Acts/Vertexing/ImpactPointEstimator.hpp
"
24
#include "
Acts/Vertexing/IterativeVertexFinder.hpp
"
25
#include "
Acts/Vertexing/TrackDensityVertexFinder.hpp
"
26
#include "
Acts/Vertexing/Vertex.hpp
"
27
#include "
Acts/Vertexing/VertexingOptions.hpp
"
28
#include "
ActsExamples/EventData/ProtoVertex.hpp
"
29
#include "
ActsExamples/EventData/Track.hpp
"
30
#include "
ActsExamples/EventData/Trajectories.hpp
"
31
#include "
ActsExamples/Framework/DataHandle.hpp
"
32
#include "
ActsExamples/Framework/IAlgorithm.hpp
"
33
#include "
ActsExamples/Framework/ProcessCode.hpp
"
34
35
#include <algorithm>
36
#include <array>
37
#include <cmath>
38
#include <memory>
39
#include <optional>
40
#include <string>
41
#include <tuple>
42
#include <utility>
43
#include <vector>
44
45
namespace
Acts {
46
class
MagneticFieldProvider;
47
}
// namespace Acts
48
49
namespace
ActsExamples {
50
struct
AlgorithmContext;
51
52
class
IterativeVertexFinderAlgorithm
final :
public
IAlgorithm
{
53
public
:
54
using
Propagator
=
Acts::Propagator<Acts::EigenStepper<>
>;
55
using
IPEstimator
=
56
Acts::ImpactPointEstimator<Acts::BoundTrackParameters, Propagator>
;
57
using
Linearizer
=
Acts::HelicalTrackLinearizer<Propagator>
;
58
using
Fitter
=
59
Acts::FullBilloirVertexFitter<Acts::BoundTrackParameters, Linearizer>
;
60
using
Seeder
=
Acts::TrackDensityVertexFinder
<
61
Fitter
,
Acts::GaussianTrackDensity<Acts::BoundTrackParameters>
>;
62
using
Finder
=
Acts::IterativeVertexFinder<Fitter, Seeder>
;
63
using
Options
=
Acts::VertexingOptions<Acts::BoundTrackParameters>
;
64
65
using
VertexCollection
=
66
std::vector<Acts::Vertex<Acts::BoundTrackParameters>>;
67
68
struct
Config
{
70
std::string
inputTrackParameters
;
72
std::string
inputTrajectories
;
74
std::string
outputProtoVertices
;
76
std::string
outputVertices
=
"vertices"
;
78
std::shared_ptr<Acts::MagneticFieldProvider>
bField
;
79
};
80
81
IterativeVertexFinderAlgorithm
(
const
Config
&
config
,
82
Acts::Logging::Level
level
);
83
88
ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const
final
;
89
91
const
Config
&
config
()
const
{
return
m_cfg
; }
92
93
private
:
94
Config
m_cfg
;
95
96
ReadDataHandle<std::vector<Acts::BoundTrackParameters>
>
97
m_inputTrackParameters
{
this
,
"InputTrackParameters"
};
98
99
ReadDataHandle<TrajectoriesContainer>
m_inputTrajectories
{
100
this
,
"InputTrajectories"
};
101
102
WriteDataHandle<ProtoVertexContainer>
m_outputProtoVertices
{
103
this
,
"OutputProtoVertices"
};
104
105
WriteDataHandle<VertexCollection>
m_outputVertices
{
this
,
"OutputVertices"
};
106
};
107
108
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
Vertexing
include
ActsExamples
Vertexing
IterativeVertexFinderAlgorithm.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration