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
f3870589
Commit
f3870589
authored
5 years ago
by
Xiaocong Ai
Committed by
Xiaocong Ai
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add the option to include material interaction in KF
parent
87c547c8
No related branches found
No related tags found
1 merge request
!706
Kf with nested material interaction
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/include/Acts/Fitter/KalmanFitter.hpp
+14
-3
14 additions, 3 deletions
Core/include/Acts/Fitter/KalmanFitter.hpp
with
14 additions
and
3 deletions
Core/include/Acts/Fitter/KalmanFitter.hpp
+
14
−
3
View file @
f3870589
...
...
@@ -57,11 +57,14 @@ struct KalmanFitterOptions {
KalmanFitterOptions
(
std
::
reference_wrapper
<
const
GeometryContext
>
gctx
,
std
::
reference_wrapper
<
const
MagneticFieldContext
>
mctx
,
std
::
reference_wrapper
<
const
CalibrationContext
>
cctx
,
const
Surface
*
rSurface
=
nullptr
)
const
Surface
*
rSurface
=
nullptr
,
bool
mScattering
=
true
,
bool
eLoss
=
true
)
:
geoContext
(
gctx
),
magFieldContext
(
mctx
),
calibrationContext
(
cctx
),
referenceSurface
(
rSurface
)
{}
referenceSurface
(
rSurface
),
multipleScattering
(
mScattering
),
energyLoss
(
eLoss
)
{}
/// Context object for the geometry
std
::
reference_wrapper
<
const
GeometryContext
>
geoContext
;
...
...
@@ -72,6 +75,12 @@ struct KalmanFitterOptions {
/// The reference Surface
const
Surface
*
referenceSurface
=
nullptr
;
/// Whether to consider multiple scattering.
bool
multipleScattering
=
true
;
/// Whether to consider energy loss.
bool
energyLoss
=
true
;
};
template
<
typename
source_link_t
>
...
...
@@ -479,7 +488,7 @@ class KalmanFitter {
// Transport the covariance to the current position in space
// the 'true' indicates re-initializaiton of the further transport
if
(
interaction
.
performCovarianceTransport
)
{
stepper
.
covarianceTransport
(
state
.
stepping
,
initialize
);
stepper
.
covarianceTransport
(
state
.
stepping
,
re
initialize
);
}
// Update the state and stepper with material effects
...
...
@@ -684,6 +693,8 @@ class KalmanFitter {
kalmanActor
.
m_logger
=
m_logger
.
get
();
kalmanActor
.
inputMeasurements
=
std
::
move
(
inputMeasurements
);
kalmanActor
.
targetSurface
=
kfOptions
.
referenceSurface
;
kalmanActor
.
multipleScattering
=
kfOptions
.
multipleScattering
;
kalmanActor
.
energyLoss
=
kfOptions
.
energyLoss
;
// also set logger on updater and smoother
kalmanActor
.
m_updater
.
m_logger
=
m_logger
;
...
...
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