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
ImpactPointEstimator.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ImpactPointEstimator.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/Propagator.hpp
"
16
#include "
Acts/Utilities/Result.hpp
"
17
#include "
Acts/Vertexing/TrackAtVertex.hpp
"
18
#include "
Acts/Vertexing/Vertex.hpp
"
19
20
namespace
Acts {
21
22
struct
ImpactParametersAndSigma
{
23
double
IPd0
= 0.;
24
double
IPz0
= 0.;
25
double
IPz0SinTheta
= 0.;
26
double
sigmad0
= 0.;
27
double
sigmaz0
= 0.;
28
double
sigmaz0SinTheta
= 0.;
29
double
PVsigmad0
= 0.;
30
double
PVsigmaz0
= 0.;
31
double
PVsigmaz0SinTheta
= 0.;
32
};
33
37
template
<
typename
input_track_t,
typename
propagator_t
,
38
typename
propagator_options_t =
PropagatorOptions<>
>
39
class
ImpactPointEstimator
{
40
using
BField_t
=
typename
propagator_t::Stepper::BField
;
41
42
public
:
44
struct
Config
{
49
Config
(
const
BField_t
& bIn, std::shared_ptr<propagator_t> prop)
50
:
bField
(bIn),
propagator
(std::move(prop)) {}
51
56
template
<
typename
T
=
BField_t
,
57
std::enable_if_t<std::is_same<T, NullBField>::value
,
int
> = 0>
58
Config
(std::shared_ptr<propagator_t> prop) :
propagator
(std::move(prop)) {}
59
61
BField_t
bField
;
63
std::shared_ptr<propagator_t>
propagator
;
65
int
maxIterations
= 20;
67
double
precision
= 1.e-10;
69
double
minQoP
= 1
e
-15;
71
double
maxRho
= 1
e
+15;
72
};
73
77
ImpactPointEstimator
(
const
Config
& cfg) :
m_cfg
(cfg) {}
78
86
Result<double>
calculate3dDistance
(
const
GeometryContext
&
gctx
,
87
const
BoundParameters
& trkParams,
88
const
Vector3D
& vtxPos)
const
;
89
104
Result<std::unique_ptr<const BoundParameters>
>
estimate3DImpactParameters
(
105
const
GeometryContext
&
gctx
,
const
Acts::MagneticFieldContext
& mctx,
106
const
BoundParameters
& trkParams,
const
Vector3D
& vtxPos)
const
;
107
118
Result<double>
get3dVertexCompatibility
(
const
GeometryContext
&
gctx
,
119
const
BoundParameters
* trkParams,
120
const
Vector3D
& vertexPos)
const
;
121
130
Result<ImpactParametersAndSigma>
estimateImpactParameters
(
131
const
BoundParameters
&
track
,
const
Vertex<input_track_t>
& vtx,
132
const
GeometryContext
&
gctx
,
const
MagneticFieldContext
& mctx)
const
;
133
134
private
:
136
const
Config
m_cfg
;
137
149
Result<double>
performNewtonApproximation
(
const
Vector3D
& trkPos,
150
const
Vector3D
& vtxPos,
double
phi
,
151
double
theta
,
double
r
)
const
;
152
164
Result<void>
getDistanceAndMomentum
(
const
GeometryContext
&
gctx
,
165
const
BoundParameters
& trkParams,
166
const
Vector3D
& vtxPos,
Vector3D
&
deltaR
,
167
Vector3D
& momDir)
const
;
168
};
169
170
}
// namespace Acts
171
172
#include "
Acts/Vertexing/ImpactPointEstimator.ipp
"
acts
blob
master
Core
include
Acts
Vertexing
ImpactPointEstimator.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:22
using
1.8.2 with
ECCE GitHub integration