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
AdaptiveMultiVertexFinderAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file AdaptiveMultiVertexFinderAlgorithm.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020-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/TrackParameters.hpp
"
14
#include "
Acts/Geometry/GeometryIdentifier.hpp
"
15
#include "
Acts/MagneticField/MagneticFieldProvider.hpp
"
16
#include "
Acts/Propagator/EigenStepper.hpp
"
17
#include "
Acts/Propagator/Propagator.hpp
"
18
#include "
Acts/Utilities/Helpers.hpp
"
19
#include "
Acts/Utilities/Logger.hpp
"
20
#include "
Acts/Vertexing/AdaptiveGridDensityVertexFinder.hpp
"
21
#include "
Acts/Vertexing/AdaptiveMultiVertexFinder.hpp
"
22
#include "
Acts/Vertexing/AdaptiveMultiVertexFitter.hpp
"
23
#include "
Acts/Vertexing/GaussianTrackDensity.hpp
"
24
#include "
Acts/Vertexing/HelicalTrackLinearizer.hpp
"
25
#include "
Acts/Vertexing/ImpactPointEstimator.hpp
"
26
#include "
Acts/Vertexing/TrackDensityVertexFinder.hpp
"
27
#include "
Acts/Vertexing/Vertex.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 <map>
39
#include <memory>
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
AdaptiveMultiVertexFinderAlgorithm
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::AdaptiveMultiVertexFitter<Acts::BoundTrackParameters, Linearizer>
;
60
using
Options
=
Acts::VertexingOptions<Acts::BoundTrackParameters>
;
61
62
using
VertexCollection
=
63
std::vector<Acts::Vertex<Acts::BoundTrackParameters>>;
64
65
enum class
SeedFinder
{ GaussianSeeder, AdaptiveGridSeeder };
66
67
struct
Config
{
69
std::string
inputTrackParameters
;
71
std::string
inputTrajectories
;
73
std::string
outputProtoVertices
;
75
std::string
outputVertices
=
"vertices"
;
77
SeedFinder
seedFinder
;
79
std::shared_ptr<Acts::MagneticFieldProvider>
bField
;
80
};
81
82
AdaptiveMultiVertexFinderAlgorithm
(
const
Config
&
config
,
83
Acts::Logging::Level
level
);
84
89
ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const
final
;
90
96
template
<
typename
vseeder_t,
typename
vfinder_t>
97
ProcessCode
executeAfterSeederChoice
(
98
const
ActsExamples::AlgorithmContext
& ctx,
99
const
vseeder_t& seedFinder)
const
;
100
102
const
Config
&
config
()
const
{
return
m_cfg
; }
103
104
private
:
105
Config
m_cfg
;
106
107
ReadDataHandle<std::vector<Acts::BoundTrackParameters>
>
108
m_inputTrackParameters
{
this
,
"InputTrackParameters"
};
109
110
ReadDataHandle<TrajectoriesContainer>
m_inputTrajectories
{
111
this
,
"InputTrajectories"
};
112
113
WriteDataHandle<ProtoVertexContainer>
m_outputProtoVertices
{
114
this
,
"OutputProtoVertices"
};
115
116
WriteDataHandle<VertexCollection>
m_outputVertices
{
this
,
"OutputVertices"
};
117
};
118
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
Vertexing
include
ActsExamples
Vertexing
AdaptiveMultiVertexFinderAlgorithm.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration