-
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
refactor!: Seeding config simplification #945
refactor!: Seeding config simplification #945
Conversation
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.
If I didn't miss anything due to similarities with !941 this also looks good. Since the grid doesn't actually take into account the scattering and impact parameters, this disallows hacks to make the grid coarser, i.e. this'll have to be fixed soon as well.
Codecov Report
@@ Coverage Diff @@
## main #945 +/- ##
=======================================
Coverage 48.63% 48.63%
=======================================
Files 334 334
Lines 17149 17149
Branches 8086 8086
=======================================
Hits 8340 8340
Misses 3091 3091
Partials 5718 5718
Continue to review full report at Codecov.
|
58e58ec
to
891b8fd
Compare
I will update the branch & then follow up later. |
This was approved by @robertlangenberg - merging. |
@paulgessinger - can you resolve the conflict now please after #941 went in? |
Done |
This PR removes the dedicated config struct in
SeedingAlgorithm
in favor of it containing three config structs for the grid, seed finder and seed filter. Users of the seeding algorithm need to make sure that these config structs are configured consistently.SeedingAlgorithm
's constructor runs a number of checks to see if the config seems to make sense.I tested the seeding example with this, and it gives the same number of seeds for a few particle gun events as main.
This is rebased on top of #941, so should be reviewed/merged after that.