Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
acts-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
acts
acts-core
Commits
b2f73901
Commit
b2f73901
authored
5 years ago
by
Fabian Klimpel
Committed by
Fabian Klimpel
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Set EigenStepper components
parent
4a60c6d6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!791
Include momentum in error estimation of the EigenStepper
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Core/include/Acts/Propagator/EigenStepper.hpp
+2
-0
2 additions, 0 deletions
Core/include/Acts/Propagator/EigenStepper.hpp
Core/include/Acts/Propagator/EigenStepper.ipp
+5
-5
5 additions, 5 deletions
Core/include/Acts/Propagator/EigenStepper.ipp
with
7 additions
and
5 deletions
Core/include/Acts/Propagator/EigenStepper.hpp
+
2
−
0
View file @
b2f73901
...
...
@@ -164,6 +164,8 @@ class EigenStepper {
Vector3D
B_first
,
B_middle
,
B_last
;
/// k_i of the RKN4 algorithm
Vector3D
k1
,
k2
,
k3
,
k4
;
/// k_i elements of the momenta
std
::
array
<
double
,
4
>
kQoP
;
}
stepData
;
};
...
...
This diff is collapsed.
Click to expand it.
Core/include/Acts/Propagator/EigenStepper.ipp
+
5
−
5
View file @
b2f73901
...
...
@@ -216,7 +216,7 @@ Acts::Result<double> Acts::EigenStepper<B, E, A>::step(
// First Runge-Kutta point (at current position)
sd
.
B_first
=
getField
(
state
.
stepping
,
state
.
stepping
.
pos
);
if
(
!
state
.
stepping
.
extension
.
validExtensionForStep
(
state
,
*
this
)
||
!
state
.
stepping
.
extension
.
k1
(
state
,
*
this
,
sd
.
k1
,
sd
.
B_first
))
{
!
state
.
stepping
.
extension
.
k1
(
state
,
*
this
,
sd
.
k1
,
sd
.
B_first
,
sd
.
kQoP
))
{
return
0.
;
}
...
...
@@ -233,13 +233,13 @@ Acts::Result<double> Acts::EigenStepper<B, E, A>::step(
const
Vector3D
pos1
=
state
.
stepping
.
pos
+
half_h
*
state
.
stepping
.
dir
+
h2
*
0.125
*
sd
.
k1
;
sd
.
B_middle
=
getField
(
state
.
stepping
,
pos1
);
if
(
!
state
.
stepping
.
extension
.
k2
(
state
,
*
this
,
sd
.
k2
,
sd
.
B_middle
,
half_h
,
if
(
!
state
.
stepping
.
extension
.
k2
(
state
,
*
this
,
sd
.
k2
,
sd
.
B_middle
,
sd
.
kQoP
,
half_h
,
sd
.
k1
))
{
return
false
;
}
// Third Runge-Kutta point
if
(
!
state
.
stepping
.
extension
.
k3
(
state
,
*
this
,
sd
.
k3
,
sd
.
B_middle
,
half_h
,
if
(
!
state
.
stepping
.
extension
.
k3
(
state
,
*
this
,
sd
.
k3
,
sd
.
B_middle
,
sd
.
kQoP
,
half_h
,
sd
.
k2
))
{
return
false
;
}
...
...
@@ -248,14 +248,14 @@ Acts::Result<double> Acts::EigenStepper<B, E, A>::step(
const
Vector3D
pos2
=
state
.
stepping
.
pos
+
h
*
state
.
stepping
.
dir
+
h2
*
0.5
*
sd
.
k3
;
sd
.
B_last
=
getField
(
state
.
stepping
,
pos2
);
if
(
!
state
.
stepping
.
extension
.
k4
(
state
,
*
this
,
sd
.
k4
,
sd
.
B_last
,
h
,
if
(
!
state
.
stepping
.
extension
.
k4
(
state
,
*
this
,
sd
.
k4
,
sd
.
B_last
,
sd
.
kQoP
,
h
,
sd
.
k3
))
{
return
false
;
}
// Compute and check the local integration error estimate
error_estimate
=
std
::
max
(
h2
*
(
sd
.
k1
-
sd
.
k2
-
sd
.
k3
+
sd
.
k4
).
template
lpNorm
<
1
>(),
1e-20
);
h2
*
(
(
sd
.
k1
-
sd
.
k2
-
sd
.
k3
+
sd
.
k4
).
template
lpNorm
<
1
>()
+
std
::
abs
(
sd
.
kQoP
[
0
]
+
sd
.
kQoP
[
1
]
+
sd
.
kQoP
[
2
]
+
sd
.
kQoP
[
3
])
,
1e-20
);
return
(
error_estimate
<=
state
.
options
.
tolerance
);
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment