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
TrackFindingAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackFindingAlgorithm.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 <functional>
12
//#include <memory>
13
#include "
Acts/Geometry/TrackingGeometry.hpp
"
14
#include "
Acts/TrackFinding/CKFSourceLinkSelector.hpp
"
15
#include "
Acts/TrackFinding/CombinatorialKalmanFilter.hpp
"
16
#include "
ActsExamples/EventData/SimSourceLink.hpp
"
17
#include "
ActsExamples/EventData/Track.hpp
"
18
#include "
ActsExamples/Framework/BareAlgorithm.hpp
"
19
#include "
ActsExamples/Plugins/BField/BFieldOptions.hpp
"
20
21
#include <vector>
22
23
namespace
ActsExamples {
24
25
class
TrackFindingAlgorithm
final :
public
BareAlgorithm
{
26
public
:
27
using
TrackFinderResult
=
28
Acts::Result<Acts::CombinatorialKalmanFilterResult<SimSourceLink>
>;
31
using
CKFOptions
=
32
Acts::CombinatorialKalmanFilterOptions<Acts::CKFSourceLinkSelector>
;
33
using
TrackFinderFunction
= std::function<
TrackFinderResult
(
34
const
SimSourceLinkContainer
&,
const
TrackParameters
&,
35
const
CKFOptions
&)>;
36
41
static
TrackFinderFunction
makeTrackFinderFunction
(
42
std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry
,
43
Options::BFieldVariant
magneticField
);
44
45
struct
Config
{
47
std::string
inputSourceLinks
;
49
std::string
inputInitialTrackParameters
;
51
std::string
outputTrajectories
;
53
TrackFinderFunction
findTracks
;
55
Acts::CKFSourceLinkSelector::Config
sourcelinkSelectorCfg
;
56
};
57
62
TrackFindingAlgorithm
(
Config
cfg,
Acts::Logging::Level
lvl);
63
68
ActsExamples::ProcessCode
execute
(
69
const
ActsExamples::AlgorithmContext
& ctx)
const
final
override
;
70
71
private
:
72
Config
m_cfg
;
73
};
74
75
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
TrackFinding
include
ActsExamples
TrackFinding
TrackFindingAlgorithm.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration