-
Notifications
You must be signed in to change notification settings - Fork 176
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
refactor: Cleanup and logging improvements in fitting algorithms #4060
refactor: Cleanup and logging improvements in fitting algorithms #4060
Conversation
WalkthroughHmm, changes in track fitting algorithms, we have. Renaming of "TrackFittingAlgorithm" to "RefittingAlgorithm", subtle but significant. Logging verbosity adjusted, more detailed insights we gain. Track processing logic refined, with careful increment of track indices. Minor yet precise modifications, showing the way of careful code craftsmanship, they are. Changes
Possibly related PRs
Suggested labels
Poem
✨ Finishing Touches
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: 0
🧹 Nitpick comments (2)
Examples/Algorithms/TrackFitting/src/TrackFittingAlgorithm.cpp (1)
153-153
: Debug to verbose level for failed fits, changed it is.When fitted parameters are absent, less noisy logging you chose. Good this is, as failed fits in production, less attention they need.
Yet, consider adding more context about the failure reason, you should.
- ACTS_VERBOSE("No fitted parameters for track " << itrack); + ACTS_VERBOSE("No fitted parameters for track " << itrack + << ". Possible causes: insufficient measurements or failed fit");Examples/Algorithms/TrackFitting/src/RefittingAlgorithm.cpp (1)
Line range hint
1-145
: Documentation improvements suggest, I must.Though well-structured the code is, benefit from additional documentation it would. For future Padawans, document these aspects you should:
- Purpose of refitting versus regular fitting
- Expected input track format
- Output track modifications
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
Examples/Algorithms/TrackFitting/src/RefittingAlgorithm.cpp
(2 hunks)Examples/Algorithms/TrackFitting/src/TrackFittingAlgorithm.cpp
(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: merge-sentinel
🔇 Additional comments (5)
Examples/Algorithms/TrackFitting/src/TrackFittingAlgorithm.cpp (3)
122-126
: Improved logging of initial parameters, I see.Split the logging of initial state into three distinct parts, you have. Clearer visibility into the track's starting conditions, this provides. Wisdom in separating position, direction, and momentum logging, there is.
140-140
: Changed debug to verbose level, you have.For track-specific fitting operations, more granular logging level, you now use. Appropriate this change is, as detailed tracking of individual fits, only in verbose mode should be.
150-151
: Track measurement comparison, added you have.Hmm, wise addition this is. Compare the number of measurements between proto track and fitted track, it does. Help in debugging measurement losses during fitting, it will.
Examples/Algorithms/TrackFitting/src/RefittingAlgorithm.cpp (2)
38-39
: Wise change in the name of the algorithm, I sense.More precise naming convention this brings, hmm. Clearer purpose it shows, refitting from fitting it distinguishes.
130-130
: Moved the track increment, wisdom in this change there is.After full processing of track, increment now occurs. More accurate tracking of processed items, this ensures. For debugging and logging, crucial this change becomes.
Verify the track counting accuracy with this script:
✅ Verification successful
Hmm, wise move this is. Track increment now follows the way of the Force.
In codebase, pattern clear it becomes - track counting after processing, the proper path it is. Alignment with other files, harmony brings. No further verification needed, for wisdom in this change, there is.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for other track index usages to ensure consistency rg -A 3 "itrack" --type cppLength of output: 41555
|
self explaining
--- END COMMIT MESSAGE ---
Any further description goes here, @-mentions are ok here!
feat
,fix
,refactor
,docs
,chore
andbuild
types.Summary by CodeRabbit
Logging Improvements
Refactoring