EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FittingAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FittingAlgorithm.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019 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/Geometry/TrackingGeometry.hpp
"
12
#include "
Acts/TrackFitting/KalmanFitter.hpp
"
13
#include "
ActsExamples/EventData/SimSourceLink.hpp
"
14
#include "
ActsExamples/EventData/Track.hpp
"
15
#include "
ActsExamples/Framework/BareAlgorithm.hpp
"
16
#include "
ActsExamples/Plugins/BField/BFieldOptions.hpp
"
17
18
#include <functional>
19
#include <memory>
20
#include <vector>
21
22
namespace
ActsExamples {
23
24
class
FittingAlgorithm
final :
public
BareAlgorithm
{
25
public
:
26
using
FitterResult
=
Acts::Result<Acts::KalmanFitterResult<SimSourceLink>
>;
29
using
FitterFunction
= std::function<
FitterResult
(
30
const
std::vector<SimSourceLink>&,
const
TrackParameters
&,
31
const
Acts::KalmanFitterOptions<Acts::VoidOutlierFinder>
&)>;
32
37
static
FitterFunction
makeFitterFunction
(
38
std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry
,
39
Options::BFieldVariant
magneticField
);
40
41
struct
Config
{
43
std::string
inputSourceLinks
;
45
std::string
inputProtoTracks
;
47
std::string
inputInitialTrackParameters
;
49
std::string
outputTrajectories
;
51
FitterFunction
fit
;
52
};
53
58
FittingAlgorithm
(
Config
cfg,
Acts::Logging::Level
lvl);
59
64
ActsExamples::ProcessCode
execute
(
65
const
ActsExamples::AlgorithmContext
& ctx)
const
final
override
;
66
67
private
:
68
Config
m_cfg
;
69
};
70
71
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
Fitting
include
ActsExamples
Fitting
FittingAlgorithm.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration