Skip to content
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 type conversion for deposits causing peak shifts #43

Closed

Conversation

SBlokhuizen
Copy link

Type conversion for number of charges creation during deposition truncated the result, causing bias to lower energies. This resulted in a peak shift towards lower energies. To fix this, the number of charges created is instead rounded to the nearest integer. Further details are explained here: https://allpix-squared-forum.web.cern.ch/t/charge-creation-type-conversion-introduces-peak-shift-to-lower-energies/405

…cated result, causing bias to lower energies. This resulted in a peak shift towards lower energies. To fix this, the number of charges created is instead rounded to the nearest integer
@simonspa
Copy link
Contributor

Hi @SBlokhuizen

thanks a lot for the investigation and the fix!
I only have one request - would you mind adding your name to the alphabetic list of contributors in AUTHORS.md?

Thanks a lot,
Simon

@SBlokhuizen
Copy link
Author

Hi @simonspa
I have added my name to the authors page.
Regards,
Sebbe

@simonspa
Copy link
Contributor

simonspa commented Apr 19, 2023

Excellent, thanks!
I'll push the branch to CERN Gitlab to get our full CI.

https://gitlab.cern.ch/allpix-squared/allpix-squared/-/merge_requests/982

@simonspa
Copy link
Contributor

@SBlokhuizen sorry for the wait, we wanted to validate a few simulations with this change - it's now in:

https://gitlab.cern.ch/allpix-squared/allpix-squared/-/merge_requests/982

This will be part of the next feature release 3.1.0.

@simonspa simonspa closed this Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants