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
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
Config
{
55
Config
(
const
BField_t
& bIn, std::shared_ptr<Propagator_t> prop)
56
:
bField
(bIn),
propagator
(std::move(prop)) {}
57
62
template
<
typename
T
=
BField_t
,
63
std::enable_if_t<std::is_same<T, NullBField>::value
,
int
> = 0>
64
Config
(std::shared_ptr<Propagator_t> prop) :
propagator
(std::move(prop)) {}
65
66
// The magnetic field
67
BField_t
bField
;
68
// The propagator
69
std::shared_ptr<Propagator_t>
propagator
;
70
71
// Minimum q/p value
72
double
minQoP
= 1
e
-15;
73
// Maximum curvature value
74
double
maxRho
= 1
e
+15;
75
};
76
80
HelicalTrackLinearizer
(
const
Config
&
config
) :
m_cfg
(config) {}
81
91
Result<LinearizedTrack>
linearizeTrack
(
92
const
BoundParameters
& params,
const
SpacePointVector
& linPoint,
93
const
Acts::GeometryContext
&
gctx
,
94
const
Acts::MagneticFieldContext
& mctx)
const
;
95
96
private
:
98
const
Config
m_cfg
;
99
};
100
101
}
// namespace Acts
102
103
#include "
HelicalTrackLinearizer.ipp
"
acts
blob
master
Core
include
Acts
Vertexing
HelicalTrackLinearizer.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:22
using
1.8.2 with
ECCE GitHub integration