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
8e3e1565
Commit
8e3e1565
authored
5 years ago
by
Xiaocong Ai
Browse files
Options
Downloads
Patches
Plain Diff
Add a new type of KalmanFitterError: no states created at all
parent
3b7b5216
No related branches found
Branches containing commit
No related tags found
1 merge request
!706
Kf with nested material interaction
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Core/include/Acts/Fitter/KalmanFitter.hpp
+12
-0
12 additions, 0 deletions
Core/include/Acts/Fitter/KalmanFitter.hpp
Core/include/Acts/Fitter/KalmanFitterError.hpp
+4
-1
4 additions, 1 deletion
Core/include/Acts/Fitter/KalmanFitterError.hpp
with
16 additions
and
1 deletion
Core/include/Acts/Fitter/KalmanFitter.hpp
+
12
−
0
View file @
8e3e1565
...
@@ -653,6 +653,12 @@ class KalmanFitter {
...
@@ -653,6 +653,12 @@ class KalmanFitter {
/// Get the result of the fit
/// Get the result of the fit
auto
kalmanResult
=
propRes
.
template
get
<
KalmanResult
>();
auto
kalmanResult
=
propRes
.
template
get
<
KalmanResult
>();
/// It could happen that the fit ends in zero processed states.
/// The result gets meaningless so such case is regarded as fit failure.
if
(
kalmanResult
.
result
.
ok
()
and
not
kalmanResult
.
processedStates
)
{
kalmanResult
.
result
=
Result
<
void
>
(
KalmanFitterError
::
PropagationInVain
);
}
if
(
!
kalmanResult
.
result
.
ok
())
{
if
(
!
kalmanResult
.
result
.
ok
())
{
return
kalmanResult
.
result
.
error
();
return
kalmanResult
.
result
.
error
();
}
}
...
@@ -736,6 +742,12 @@ class KalmanFitter {
...
@@ -736,6 +742,12 @@ class KalmanFitter {
/// Get the result of the fit
/// Get the result of the fit
auto
kalmanResult
=
propRes
.
template
get
<
KalmanResult
>();
auto
kalmanResult
=
propRes
.
template
get
<
KalmanResult
>();
/// It could happen that the fit ends in zero processed states.
/// The result gets meaningless so such case is regarded as fit failure.
if
(
kalmanResult
.
result
.
ok
()
and
not
kalmanResult
.
processedStates
)
{
kalmanResult
.
result
=
Result
<
void
>
(
KalmanFitterError
::
PropagationInVain
);
}
if
(
!
kalmanResult
.
result
.
ok
())
{
if
(
!
kalmanResult
.
result
.
ok
())
{
return
kalmanResult
.
result
.
error
();
return
kalmanResult
.
result
.
error
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Core/include/Acts/Fitter/KalmanFitterError.hpp
+
4
−
1
View file @
8e3e1565
...
@@ -17,7 +17,8 @@ namespace Acts {
...
@@ -17,7 +17,8 @@ namespace Acts {
enum
class
KalmanFitterError
{
enum
class
KalmanFitterError
{
UpdateFailed
=
1
,
UpdateFailed
=
1
,
SmoothFailed
=
2
,
SmoothFailed
=
2
,
OutputConversionFailed
=
3
OutputConversionFailed
=
3
,
PropagationInVain
=
4
};
};
namespace
detail
{
namespace
detail
{
...
@@ -35,6 +36,8 @@ class KalmanFitterErrorCategory : public std::error_category {
...
@@ -35,6 +36,8 @@ class KalmanFitterErrorCategory : public std::error_category {
return
"Kalman smooth failed"
;
return
"Kalman smooth failed"
;
case
KalmanFitterError
::
OutputConversionFailed
:
case
KalmanFitterError
::
OutputConversionFailed
:
return
"Kalman output conversion failed"
;
return
"Kalman output conversion failed"
;
case
KalmanFitterError
::
PropagationInVain
:
return
"No detector observed during the propagation"
;
default:
default:
return
"unknown"
;
return
"unknown"
;
}
}
...
...
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