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
TrackFindingFromPrototrackAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackFindingFromPrototrackAlgorithm.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2023 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/EventData/Measurement.hpp
"
12
#include "
Acts/EventData/MultiTrajectory.hpp
"
13
#include "
Acts/EventData/VectorMultiTrajectory.hpp
"
14
#include "
Acts/MagneticField/MagneticFieldProvider.hpp
"
15
#include "
Acts/Propagator/EigenStepper.hpp
"
16
#include "
Acts/Surfaces/PerigeeSurface.hpp
"
17
#include "
Acts/TrackFinding/MeasurementSelector.hpp
"
18
#include "
Acts/TrackFitting/GainMatrixSmoother.hpp
"
19
#include "
Acts/TrackFitting/GainMatrixUpdater.hpp
"
20
#include "
Acts/Utilities/Zip.hpp
"
21
#include "
ActsExamples/EventData/IndexSourceLink.hpp
"
22
#include "
ActsExamples/EventData/Measurement.hpp
"
23
#include "
ActsExamples/EventData/ProtoTrack.hpp
"
24
#include "
ActsExamples/EventData/Trajectories.hpp
"
25
#include "
ActsExamples/Framework/IAlgorithm.hpp
"
26
#include "
ActsExamples/Framework/WhiteBoard.hpp
"
27
#include "
ActsExamples/TrackFinding/TrackFindingAlgorithm.hpp
"
28
29
#include <string>
30
#include <vector>
31
32
namespace
ActsExamples {
33
40
class
TrackFindingFromPrototrackAlgorithm
final :
public
IAlgorithm
{
41
public
:
42
struct
Config
{
44
std::string
inputProtoTracks
;
45
47
std::string
inputMeasurements
;
48
50
std::string
inputSourceLinks
;
51
53
std::string
inputInitialTrackParameters
;
54
56
std::string
outputTracks
;
57
59
Acts::MeasurementSelector::Config
measurementSelectorCfg
;
60
62
std::shared_ptr<TrackFindingAlgorithm::TrackFinderFunction>
findTracks
;
63
65
std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry
;
66
68
std::shared_ptr<const Acts::MagneticFieldProvider>
magneticField
;
69
71
std::string
tag
=
""
;
72
};
73
78
TrackFindingFromPrototrackAlgorithm
(
Config
cfg
,
Acts::Logging::Level
lvl);
79
80
virtual
~TrackFindingFromPrototrackAlgorithm
() {}
81
86
ActsExamples::ProcessCode
execute
(
87
const
ActsExamples::AlgorithmContext
& ctx)
const
final
;
88
89
ActsExamples::ProcessCode
finalize
()
override
;
90
91
const
Config
&
config
()
const
{
return
m_cfg
; }
92
93
private
:
94
Config
m_cfg
;
95
96
mutable
std::mutex
m_mutex
;
97
mutable
std::vector<unsigned>
m_nTracksPerSeeds
;
98
99
ReadDataHandle<ProtoTrackContainer>
m_inputProtoTracks
{
this
,
100
"InputProtoTracks"
};
101
ReadDataHandle<MeasurementContainer>
m_inputMeasurements
{
this
,
102
"InputMeasurements"
};
103
ReadDataHandle<IndexSourceLinkContainer>
m_inputSourceLinks
{
104
this
,
"InputSourceLinks"
};
105
ReadDataHandle<TrackParametersContainer>
m_inputInitialTrackParameters
{
106
this
,
"InputInitialTrackParameters"
};
107
108
WriteDataHandle<ConstTrackContainer>
m_outputTracks
{
this
,
"OutputTracks"
};
109
};
110
111
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
TrackFindingExaTrkX
include
ActsExamples
TrackFindingExaTrkX
TrackFindingFromPrototrackAlgorithm.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration