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
35a6dd48
Commit
35a6dd48
authored
5 years ago
by
Paul Gessinger
Committed by
Paul Gessinger
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fixes after rebase
parent
534f94da
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!643
KF on multitrajectory
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Core/include/Acts/Fitter/GainMatrixUpdater.hpp
+1
-8
1 addition, 8 deletions
Core/include/Acts/Fitter/GainMatrixUpdater.hpp
Core/include/Acts/Fitter/KalmanFitter.hpp
+3
-26
3 additions, 26 deletions
Core/include/Acts/Fitter/KalmanFitter.hpp
with
4 additions
and
34 deletions
Core/include/Acts/Fitter/GainMatrixUpdater.hpp
+
1
−
8
View file @
35a6dd48
...
...
@@ -38,10 +38,9 @@ class GainMatrixUpdater {
/// uncalibrated measurements into calibrated ones
/// @param logger a logger instance
GainMatrixUpdater
(
calibrator_t
calibrator
=
calibrator_t
(),
std
::
shared_ptr
<
const
Logger
>
logger
=
std
::
shared_ptr
<
const
Logger
>
(
getDefaultLogger
(
"GainMatrixUpdater"
,
Logging
::
INFO
).
release
()))
:
m_logger
(
std
::
move
(
logger
))
,
m_mCalibrator
(
std
::
move
(
calibrator
))
{}
:
m_logger
(
std
::
move
(
logger
))
{}
/// @brief Public call operator for the boost visitor pattern
///
...
...
@@ -146,12 +145,6 @@ class GainMatrixUpdater {
assert
(
m_logger
);
return
*
m_logger
;
}
/// Pointer to a logger that is owned by the parent, KalmanFilter
const
Logger
*
m_logger
{
nullptr
};
/// Getter for the logger, to support logging macros
const
Logger
&
logger
()
const
{
return
*
m_logger
;
}
};
}
// namespace Acts
This diff is collapsed.
Click to expand it.
Core/include/Acts/Fitter/KalmanFitter.hpp
+
3
−
26
View file @
35a6dd48
...
...
@@ -174,29 +174,6 @@ class KalmanFitter {
/// Owned logging instance
std
::
shared_ptr
<
const
Logger
>
m_logger
;
template
<
typename
source_link_t
>
class
Aborter
{
public:
/// Broadcast the result_type
using
result_type
=
KalmanFitterResult
<
source_link_t
>
;
template
<
typename
propagator_state_t
,
typename
stepper_t
>
bool
operator
()(
propagator_state_t
&
/*state*/
,
const
stepper_t
&
/*unused*/
)
const
{
return
false
;
}
template
<
typename
propagator_state_t
,
typename
stepper_t
,
typename
result_t
>
bool
operator
()(
const
result_t
&
result
,
propagator_state_t
&
/*state*/
,
const
stepper_t
&
/*stepper*/
)
const
{
if
(
!
result
.
result
.
ok
())
{
return
true
;
}
return
false
;
}
};
/// @brief Propagator Actor plugin for the KalmanFilter
///
/// @tparam source_link_t is an type fulfilling the @c SourceLinkConcept
...
...
@@ -498,7 +475,7 @@ class KalmanFitter {
}
// Create the ActionList and AbortList
using
KalmanAborter
=
Aborter
<
source_link_t
>
;
using
KalmanAborter
=
Aborter
<
source_link_t
,
parameters_t
>
;
using
KalmanActor
=
Actor
<
source_link_t
,
parameters_t
>
;
using
KalmanResult
=
typename
KalmanActor
::
result_type
;
using
Actors
=
ActionList
<
KalmanActor
>
;
...
...
@@ -515,8 +492,8 @@ class KalmanFitter {
kalmanActor
.
targetSurface
=
kfOptions
.
referenceSurface
;
// also set logger on updater and smoother
kalmanActor
.
m_updater
.
m_logger
=
kalmanActor
.
m_logger
;
kalmanActor
.
m_smoother
.
m_logger
=
kalmanActor
.
m_logger
;
kalmanActor
.
m_updater
.
m_logger
=
m_logger
;
kalmanActor
.
m_smoother
.
m_logger
=
m_logger
;
// Run the fitter
auto
result
=
m_propagator
.
template
propagate
(
sParameters
,
kalmanOptions
);
...
...
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