ECCE @ EIC Software
Reference for
ECCE @ 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 <functional>
12
#include <memory>
13
#include <vector>
14
15
#include "
ACTFW/EventData/SimSourceLink.hpp
"
16
#include "
ACTFW/EventData/Track.hpp
"
17
#include "
ACTFW/Framework/BareAlgorithm.hpp
"
18
#include "
ACTFW/Plugins/BField/BFieldOptions.hpp
"
19
#include "
Acts/Fitter/KalmanFitter.hpp
"
20
#include "
Acts/Geometry/TrackingGeometry.hpp
"
21
22
namespace
FW {
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,
Acts::Logging::Level
lvl);
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
FW::ProcessCode
execute
(
const
FW::AlgorithmContext
& ctx)
const
final
override
;
65
66
private
:
67
Config
m_cfg
;
68
};
69
70
}
// namespace FW
acts
blob
master
Examples
Algorithms
Fitting
include
ACTFW
Fitting
FittingAlgorithm.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration