-
Notifications
You must be signed in to change notification settings - Fork 157
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: division by 0 in SpacePointGrid #779
Conversation
For no magnetic field or pseudorapidity == 0, the SpacePointGrid now creates 100 phi bins respectively 100 z bins instead of crashing
Codecov Report
@@ Coverage Diff @@
## master #779 +/- ##
==========================================
- Coverage 48.67% 48.65% -0.02%
==========================================
Files 328 328
Lines 16889 16895 +6
Branches 7930 7932 +2
==========================================
Hits 8220 8220
- Misses 3072 3078 +6
Partials 5597 5597
Continue to review full report at Codecov.
|
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.
👍
* Fix division by 0 in SpacePointGrid For no magnetic field or pseudorapidity == 0, the SpacePointGrid now creates 100 phi bins respectively 100 z bins instead of crashing * support negative magnetic field and make sure zBins never < 1
For no magnetic field or pseudorapidity == 0, the SpacePointGrid now creates 100 phi bins respectively 100 z bins instead of crashing