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
e8f6d04f
Commit
e8f6d04f
authored
5 years ago
by
Xiaocong Ai
Committed by
Xiaocong Ai
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Create trackState on each propagated surface with material
parent
af8ed334
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
+38
-7
38 additions, 7 deletions
Core/include/Acts/Fitter/KalmanFitter.hpp
with
38 additions
and
7 deletions
Core/include/Acts/Fitter/KalmanFitter.hpp
+
38
−
7
View file @
e8f6d04f
...
...
@@ -233,9 +233,10 @@ class KalmanFitter {
}
// Update:
// - Waiting for a current surface that appears in the measurement list
// - Waiting for a current surface that has material
// -> a trackState will be created on surface with material
auto
surface
=
state
.
navigation
.
currentSurface
;
if
(
surface
and
not
result
.
smoothed
)
{
if
(
surface
and
surface
->
surfaceMaterial
()
and
not
result
.
smoothed
)
{
// Check if the surface is in the measurement map
// -> Get the measurement / calibrate
// -> Create the predicted state
...
...
@@ -305,6 +306,11 @@ class KalmanFitter {
template
<
typename
propagator_state_t
,
typename
stepper_t
>
Result
<
void
>
filter
(
const
Surface
*
surface
,
propagator_state_t
&
state
,
const
stepper_t
&
stepper
,
result_type
&
result
)
const
{
// Transport & bind the state to the current surface
std
::
tuple
<
BoundParameters
,
typename
TrackStateType
::
Parameters
::
CovMatrix_t
,
double
>
boundState
=
stepper
.
boundState
(
state
.
stepping
,
*
surface
,
true
);
// Try to find the surface in the measurement surfaces
auto
sourcelink_it
=
inputMeasurements
.
find
(
surface
);
if
(
sourcelink_it
!=
inputMeasurements
.
end
())
{
...
...
@@ -342,6 +348,9 @@ class KalmanFitter {
m_calibrator
(
trackStateProxy
.
uncalibrated
(),
trackStateProxy
.
predicted
()));
// Set the parameter type flag
trackState
.
setType
(
TrackStateFlag
::
ParameterFlag
);
// If the update is successful, set covariance and
auto
updateRes
=
m_updater
(
state
.
geoContext
,
trackStateProxy
);
if
(
!
updateRes
.
ok
())
{
...
...
@@ -359,12 +368,34 @@ class KalmanFitter {
}
// We count the processed state
++
result
.
processedStates
;
}
else
if
(
surface
->
associatedDetectorElement
()
!=
nullptr
)
{
// Count the missed surface
ACTS_VERBOSE
(
"Detected hole on "
<<
surface
->
geoID
());
result
.
missedActiveSurfaces
.
push_back
(
surface
);
}
}
else
{
// When no measurement on this surface,
// create a track state from predicted parameter
result
.
fittedStates
.
emplace_back
(
std
::
get
<
0
>
(
boundState
));
TrackStateType
&
trackState
=
result
.
fittedStates
.
back
();
// Fill the track state
trackState
.
parameter
.
jacobian
=
std
::
get
<
1
>
(
boundState
);
trackState
.
parameter
.
pathLength
=
std
::
get
<
2
>
(
boundState
);
// @todo: set the filtered parameter by updating the predicted parameter
// with material effects
if
(
surface
->
associatedDetectorElement
()
!=
nullptr
)
{
// If the surface is sensitive,
// set the hole type flag
trackState
.
setType
(
TrackStateFlag
::
HoleFlag
);
// Count the missed surface
ACTS_VERBOSE
(
"Detected hole on "
<<
surface
->
geoID
());
result
.
missedActiveSurfaces
.
push_back
(
surface
);
}
else
{
// If the surface is in-sensitive,
// set the material type flag
trackState
.
setType
(
TrackStateFlag
::
MaterialFlag
);
ACTS_VERBOSE
(
"Detected in-sensitive surface "
<<
surface
->
geoID
());
}
}
return
Result
<
void
>::
success
();
}
...
...
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