-
Notifications
You must be signed in to change notification settings - Fork 172
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: Stable RNG for smeared digitization in Examples #3849
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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 (
|
Tested this locally and works fine |
cc @benjaminhuth @paulgessinger @asalzburger I don't understand how this changes physmon so much? Did we have some weird correlations before? Or do we now? |
One thing I'm not sure is if the the properties of any / this particular RNG are similar in situations like
Because effectively we have a measurement unique RNG, that is only called once or twice, right? Another thing one could try to improve the quality of the seed is maybe using |
looks like |
Right now we have a 64 bit seed but only use a 32 bit RNG. Here I align them by using 32 bit for both. Discovered in #3849
Quality Gate passedIssues Measures |
Our smeared digitization will create very different random numbers if the simulations changes. This can be unexpected for pile-up studies where you would think your measurements from the hard scatter stay the same and you just get more pile-up hits.
I am trying to improve the situation by creating stable random number streams for each particle on a sensitive. To avoid correlations for multiple hits of a single particle on a single surface (should only happen for loopers) I introduced an index which is also part of the seed for the rng.