-
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: Ensure correct order of uniform distribution limits #3976
fix: Ensure correct order of uniform distribution limits #3976
Conversation
WalkthroughChanges made to Changes
Possibly related PRs
Suggested labels
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)Core/include/Acts/EventData/detail/GenerateParameters.hpp (2)
Wise changes these are! For monotonically decreasing cosine function between [0,π], reversed the bounds we have. Prevent incorrect sampling from uniform distribution, this does. Strong with the Force, these assertions are!
Reversed the eta bounds we have, maintaining harmony with theta they do. Inverse relationship between eta and theta, respected it is! Tests/UnitTests/Core/Geometry/CylinderVolumeBuilderTests.cpp (1)
In all test cases, corrected the uniform distribution ranges we have. From (-11., -15.) to (-15., -11.) they changed, ensuring valid sampling they do. Follows the ways of mathematics, this does, where lower bound must precede upper bound. Also applies to: 117-117, 288-288 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.
Nice catch - Thanks!
Quality Gate passedIssues Measures |
Pulled out of #3759
Summary by CodeRabbit
Bug Fixes
Tests
CylinderVolumeBuilder
to improve test coverage and accuracy.