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
HelicalTrackLinearizer.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file HelicalTrackLinearizer.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/EventData/TrackParameters.hpp
"
12
#include "
Acts/Geometry/GeometryContext.hpp
"
13
#include "
Acts/MagneticField/MagneticFieldContext.hpp
"
14
#include "
Acts/MagneticField/NullBField.hpp
"
15
#include "
Acts/Propagator/EigenStepper.hpp
"
16
#include "
Acts/Propagator/Propagator.hpp
"
17
#include "
Acts/Utilities/Definitions.hpp
"
18
#include "
Acts/Utilities/Result.hpp
"
19
#include "
Acts/Vertexing/LinearizedTrack.hpp
"
20
21
namespace
Acts {
22
42
template
<
typename
propagator_t
,
43
typename
propagator_options_t = PropagatorOptions<>>
44
class
HelicalTrackLinearizer
{
45
public
:
46
using
Propagator_t
=
propagator_t
;
47
using
BField_t
=
typename
Propagator_t::Stepper::BField
;
48
50
struct
State
{
54
State
(
const
Acts::MagneticFieldContext
& mctx) :
fieldCache
(mctx) {}
56
typename
BField_t::Cache
fieldCache
;
57
};
58
60
struct
Config
{
65
Config
(
const
BField_t
& bIn, std::shared_ptr<Propagator_t> prop)
66
:
bField
(bIn),
propagator
(std::move(prop)) {}
67
72
template
<
typename
T
=
BField_t
,
73
std::enable_if_t<std::is_same<T, NullBField>::value
,
int
> = 0>
74
Config
(std::shared_ptr<Propagator_t> prop) :
propagator
(std::move(prop)) {}
75
76
// The magnetic field
77
BField_t
bField
;
78
// The propagator
79
std::shared_ptr<Propagator_t>
propagator
;
80
81
// Minimum q/p value
82
double
minQoP
= 1
e
-15;
83
// Maximum curvature value
84
double
maxRho
= 1
e
+15;
85
};
86
90
HelicalTrackLinearizer
(
const
Config
&
config
) :
m_cfg
(config) {}
91
102
Result<LinearizedTrack>
linearizeTrack
(
const
BoundTrackParameters
& params,
103
const
Vector4D
& linPoint,
104
const
Acts::GeometryContext
&
gctx
,
105
const
Acts::MagneticFieldContext
& mctx,
106
State& state)
const
;
107
108
private
:
110
const
Config
m_cfg
;
111
};
112
113
}
// namespace Acts
114
115
#include "
HelicalTrackLinearizer.ipp
"
acts
blob
sPHENIX
Core
include
Acts
Vertexing
HelicalTrackLinearizer.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration