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
TrackParamsEstimationAlgorithm.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackParamsEstimationAlgorithm.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 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/Definitions/TrackParametrization.hpp
"
12
#include "
Acts/Definitions/Units.hpp
"
13
#include "
Acts/EventData/ParticleHypothesis.hpp
"
14
#include "
Acts/Geometry/TrackingGeometry.hpp
"
15
#include "
Acts/MagneticField/ConstantBField.hpp
"
16
#include "
Acts/MagneticField/InterpolatedBFieldMap.hpp
"
17
#include "
Acts/Utilities/Logger.hpp
"
18
#include "
ActsExamples/EventData/ProtoTrack.hpp
"
19
#include "
ActsExamples/EventData/SimSeed.hpp
"
20
#include "
ActsExamples/EventData/Track.hpp
"
21
#include "
ActsExamples/Framework/DataHandle.hpp
"
22
#include "
ActsExamples/Framework/IAlgorithm.hpp
"
23
#include "
ActsExamples/Framework/ProcessCode.hpp
"
24
#include "
ActsExamples/MagneticField/MagneticField.hpp
"
25
26
#include <algorithm>
27
#include <array>
28
#include <functional>
29
#include <memory>
30
#include <string>
31
#include <vector>
32
33
namespace
Acts {
34
class
TrackingGeometry
;
35
class
MagneticFieldProvider;
36
}
// namespace Acts
37
38
namespace
ActsExamples {
39
struct
AlgorithmContext;
40
51
class
TrackParamsEstimationAlgorithm
final :
public
IAlgorithm
{
52
public
:
53
struct
Config
{
55
std::string
inputSeeds
;
57
std::string
inputProtoTracks
;
59
std::string
outputTrackParameters
;
62
std::string
outputSeeds
;
65
std::string
outputProtoTracks
;
67
std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry
;
69
std::shared_ptr<const Acts::MagneticFieldProvider>
magneticField
;
71
double
bFieldMin
= 0.1 *
Acts::UnitConstants::T
;
73
std::array<double, 6>
initialSigmas
= {
74
25 *
Acts::UnitConstants::um
, 100 *
Acts::UnitConstants::um
,
75
0.02 *
Acts::UnitConstants::degree
, 0.02 *
Acts::UnitConstants::degree
,
76
0.1 /
Acts::UnitConstants::GeV
, 10 *
Acts::UnitConstants::ns
};
78
std::array<double, 6>
initialVarInflation
= {1., 1., 1., 1., 1., 1.};
80
Acts::ParticleHypothesis
particleHypothesis
=
81
Acts::ParticleHypothesis::pion
();
82
};
83
88
TrackParamsEstimationAlgorithm
(
Config
cfg
,
Acts::Logging::Level
lvl);
89
94
ProcessCode
execute
(
const
AlgorithmContext
& ctx)
const override
;
95
97
const
Config
&
config
()
const
{
return
m_cfg
; }
98
99
private
:
100
Config
m_cfg
;
101
104
Acts::BoundSquareMatrix
m_covariance
= Acts::BoundSquareMatrix::Zero();
105
106
ReadDataHandle<SimSeedContainer>
m_inputSeeds
{
this
,
"InputSeeds"
};
107
ReadDataHandle<ProtoTrackContainer>
m_inputTracks
{
this
,
"InputTracks"
};
108
109
WriteDataHandle<TrackParametersContainer>
m_outputTrackParameters
{
110
this
,
"OutputTrackParameters"
};
111
WriteDataHandle<SimSeedContainer>
m_outputSeeds
{
this
,
"OutputSeeds"
};
112
WriteDataHandle<ProtoTrackContainer>
m_outputTracks
{
this
,
"OutputTracks"
};
113
};
114
115
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Algorithms
TrackFinding
include
ActsExamples
TrackFinding
TrackParamsEstimationAlgorithm.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration