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
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
CI
Core
include
Acts
EventData
Geometry
MagneticField
Material
Propagator
Seeding
Surfaces
TrackFinding
TrackFitting
Utilities
Vertexing
AdaptiveMultiVertexFinder.hpp
AdaptiveMultiVertexFinder.ipp
AdaptiveMultiVertexFitter.hpp
AdaptiveMultiVertexFitter.ipp
AMVFInfo.hpp
DummyVertexFitter.hpp
FsmwMode1dFinder.hpp
FullBilloirVertexFitter.hpp
FullBilloirVertexFitter.ipp
GaussianGridTrackDensity.hpp
GaussianGridTrackDensity.ipp
GaussianTrackDensity.hpp
GaussianTrackDensity.ipp
GridDensityVertexFinder.hpp
GridDensityVertexFinder.ipp
HelicalTrackLinearizer.hpp
HelicalTrackLinearizer.ipp
ImpactPointEstimator.hpp
ImpactPointEstimator.ipp
IterativeVertexFinder.hpp
IterativeVertexFinder.ipp
KalmanVertexTrackUpdater.hpp
KalmanVertexTrackUpdater.ipp
KalmanVertexUpdater.hpp
KalmanVertexUpdater.ipp
LinearizedTrack.hpp
LinearizerConcept.hpp
TrackAtVertex.hpp
TrackDensityVertexFinder.hpp
TrackDensityVertexFinder.ipp
Vertex.hpp
Vertex.ipp
VertexFinderConcept.hpp
VertexFitterConcept.hpp
VertexingError.hpp
VertexingOptions.hpp
ZScanVertexFinder.hpp
ZScanVertexFinder.ipp
Visualization
src
docs
Examples
Fatras
Plugins
Tests
thirdparty
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
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
State
{
48
State
(
const
Acts::MagneticFieldContext
& mctx) :
fieldCache
(mctx) {}
50
typename
BField_t::Cache
fieldCache
;
51
};
52
53
struct
Config
{
58
Config
(
const
BField_t
& bIn, std::shared_ptr<propagator_t> prop)
59
:
bField
(bIn),
propagator
(std::move(prop)) {}
60
65
template
<
typename
T
=
BField_t
,
66
std::enable_if_t<std::is_same<T, NullBField>::value
,
int
> = 0>
67
Config
(std::shared_ptr<propagator_t> prop) :
propagator
(std::move(prop)) {}
68
70
BField_t
bField
;
72
std::shared_ptr<propagator_t>
propagator
;
74
int
maxIterations
= 20;
76
double
precision
= 1.e-10;
78
double
minQoP
= 1
e
-15;
80
double
maxRho
= 1
e
+15;
81
};
82
86
ImpactPointEstimator
(
const
Config
& cfg) :
m_cfg
(cfg) {}
87
96
Result<double>
calculate3dDistance
(
const
GeometryContext
&
gctx
,
97
const
BoundTrackParameters
& trkParams,
98
const
Vector3D
& vtxPos,
99
State& state)
const
;
100
116
Result<std::unique_ptr<const BoundTrackParameters>
>
117
estimate3DImpactParameters
(
const
GeometryContext
&
gctx
,
118
const
Acts::MagneticFieldContext
& mctx,
119
const
BoundTrackParameters
& trkParams,
120
const
Vector3D
& vtxPos, State& state)
const
;
121
132
Result<double>
get3dVertexCompatibility
(
const
GeometryContext
&
gctx
,
133
const
BoundTrackParameters
* trkParams,
134
const
Vector3D
& vertexPos)
const
;
135
144
Result<ImpactParametersAndSigma>
estimateImpactParameters
(
145
const
BoundTrackParameters
& track,
const
Vertex<input_track_t>
&
vtx
,
146
const
GeometryContext
&
gctx
,
const
MagneticFieldContext
& mctx)
const
;
147
148
private
:
150
const
Config
m_cfg
;
151
163
Result<double>
performNewtonApproximation
(
const
Vector3D
& trkPos,
164
const
Vector3D
& vtxPos,
double
phi
,
165
double
theta
,
double
r)
const
;
166
179
Result<void>
getDistanceAndMomentum
(
const
GeometryContext
&
gctx
,
180
const
BoundTrackParameters
& trkParams,
181
const
Vector3D
& vtxPos,
Vector3D
&
deltaR
,
182
Vector3D
& momDir, State& state)
const
;
183
};
184
185
}
// namespace Acts
186
187
#include "
Acts/Vertexing/ImpactPointEstimator.ipp
"
acts
blob
sPHENIX
Core
include
Acts
Vertexing
ImpactPointEstimator.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration