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
TutorialVertexFinderAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TutorialVertexFinderAlgorithm.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020 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/EventData/TrackParameters.hpp
"
13
#include "
Acts/MagneticField/MagneticFieldProvider.hpp
"
14
#include "
Acts/Utilities/Logger.hpp
"
15
#include "
ActsExamples/EventData/ProtoVertex.hpp
"
16
#include "
ActsExamples/EventData/Trajectories.hpp
"
17
#include "
ActsExamples/Framework/DataHandle.hpp
"
18
#include "
ActsExamples/Framework/IAlgorithm.hpp
"
19
#include "
ActsExamples/Framework/ProcessCode.hpp
"
20
21
#include <memory>
22
#include <string>
23
#include <vector>
24
25
namespace
Acts {
26
class
MagneticFieldProvider;
27
}
// namespace Acts
28
29
namespace
ActsExamples {
30
struct
AlgorithmContext;
31
32
class
TutorialVertexFinderAlgorithm
final :
public
IAlgorithm
{
33
public
:
34
struct
Config
{
36
std::string
inputTrackParameters
;
38
std::string
inputTrajectories
;
40
std::string
outputProtoVertices
;
42
std::shared_ptr<Acts::MagneticFieldProvider>
bField
;
43
};
44
45
TutorialVertexFinderAlgorithm
(
const
Config
&
cfg
,
Acts::Logging::Level
lvl);
46
51
ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const
final
;
52
54
const
Config
&
config
()
const
{
return
m_cfg
; }
55
56
private
:
57
Config
m_cfg
;
58
59
ReadDataHandle<std::vector<Acts::BoundTrackParameters>
>
60
m_inputTrackParameters
{
this
,
"InputTrackParameters"
};
61
62
ReadDataHandle<TrajectoriesContainer>
m_inputTrajectories
{
63
this
,
"InputTrajectories"
};
64
65
WriteDataHandle<ProtoVertexContainer>
m_outputProtoVertices
{
66
this
,
"OutputProtoVertices"
};
67
};
68
69
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
Vertexing
include
ActsExamples
Vertexing
TutorialVertexFinderAlgorithm.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration