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
TrackFittingAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackFittingAlgorithm.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019-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/Utilities/Logger.hpp
"
12
#include "
ActsExamples/EventData/Cluster.hpp
"
13
#include "
ActsExamples/EventData/IndexSourceLink.hpp
"
14
#include "
ActsExamples/EventData/Measurement.hpp
"
15
#include "
ActsExamples/EventData/ProtoTrack.hpp
"
16
#include "
ActsExamples/EventData/Track.hpp
"
17
#include "
ActsExamples/Framework/DataHandle.hpp
"
18
#include "
ActsExamples/Framework/IAlgorithm.hpp
"
19
#include "
ActsExamples/Framework/ProcessCode.hpp
"
20
#include "
ActsExamples/TrackFitting/TrackFitterFunction.hpp
"
21
22
#include <memory>
23
#include <string>
24
25
namespace
Acts {
26
class
TrackingGeometry
;
27
}
28
29
namespace
ActsExamples {
30
class
MeasurementCalibrator;
31
class
TrackFitterFunction;
32
struct
AlgorithmContext;
33
34
class
TrackFittingAlgorithm
final :
public
IAlgorithm
{
35
public
:
36
struct
Config
{
38
std::string
inputMeasurements
;
40
std::string
inputSourceLinks
;
42
std::string
inputProtoTracks
;
44
std::string
inputInitialTrackParameters
;
46
std::string
inputClusters
;
48
std::string
outputTracks
;
50
std::shared_ptr<TrackFitterFunction>
fit
;
52
int
pickTrack
= -1;
53
// Type erased calibrator for the measurements
54
std::shared_ptr<MeasurementCalibrator>
calibrator
;
55
};
56
61
TrackFittingAlgorithm
(
Config
config
,
Acts::Logging::Level
level
);
62
67
ActsExamples::ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const
final
;
68
70
const
Config
&
config
()
const
{
return
m_cfg
; }
71
72
private
:
73
Config
m_cfg
;
74
75
ReadDataHandle<MeasurementContainer>
m_inputMeasurements
{
this
,
76
"InputMeasurements"
};
77
ReadDataHandle<IndexSourceLinkContainer>
m_inputSourceLinks
{
78
this
,
"InputSourceLinks"
};
79
ReadDataHandle<ProtoTrackContainer>
m_inputProtoTracks
{
this
,
80
"InputProtoTracks"
};
81
ReadDataHandle<TrackParametersContainer>
m_inputInitialTrackParameters
{
82
this
,
"InputInitialTrackParameters"
};
83
84
ReadDataHandle<ClusterContainer>
m_inputClusters
{
this
,
"InputClusters"
};
85
86
WriteDataHandle<ConstTrackContainer>
m_outputTracks
{
this
,
"OutputTracks"
};
87
};
88
89
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
TrackFitting
include
ActsExamples
TrackFitting
TrackFittingAlgorithm.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration