-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Test and fix broken TrackHelpers
for chi2 and unbiased track state
#3937
Conversation
WalkthroughChanges made to Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
Core/include/Acts/Utilities/TrackHelpers.hpp
(6 hunks)Tests/UnitTests/Core/Utilities/TrackHelpersTests.cpp
(3 hunks)
🔇 Additional comments (7)
Core/include/Acts/Utilities/TrackHelpers.hpp (1)
520-520
: Replaced fixedBoundSubspaceHelper
with projectorSubspaceHelper
, correctly you have.
Smoothly, the code integration proceeds. Approve this change, I do.
Also applies to: 522-524
Tests/UnitTests/Core/Utilities/TrackHelpersTests.cpp (6)
11-11
: Include necessary headers, you have.
Appropriate additions, these are.
Also applies to: 16-16
37-63
: Well-structured createTestTrackState
function, this is.
Facilitates creation of test track states, it does. Good practice, this is.
135-141
: Test case CalculatePredictedChi2
, correctly added you have.
Validates functionality, it does. Approve, I do.
143-149
: Test case CalculateFilteredChi2
, correctly implemented.
Ensures correctness, this test does. Approve, I do.
151-157
: Test case CalculateSmoothedChi2
, well added it is.
Valid and useful, this test is. Approve, I do.
159-175
: Test case CalculateUnbiasedParametersCovariance
, thorough it is.
Checks correctness of covariance calculations. Valuable addition, this is.
Quality Gate passedIssues Measures |
New helper functions for chi2 and unbiased track states slipped in untested with #3877. Somehow I forgot to do this and the code ended up being broken in the latest release.
Here I add some quick unit tests and fix the code so it can actually be compiled.
Summary by CodeRabbit
New Features
Bug Fixes
Tests