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

Truncated gaussian #83

Closed
riffard opened this issue Dec 9, 2020 · 1 comment
Closed

Truncated gaussian #83

riffard opened this issue Dec 9, 2020 · 1 comment

Comments

@riffard
Copy link
Collaborator

riffard commented Dec 9, 2020

In NEST, the size of photo-electron is drawn from a Gaussian with allow negative value for the pulse area of SPE. It needs to be changed by a truncated gaussian to avoid negative values.

@mszydagis
Copy link
Collaborator

@riffard , 2093f96 Should have this problem solved now. I did not neglect the 2-PE effect either: both the variables phe1 and phe2 have been changed. Even though I have already pushed to master (after triple-checking however that no ill effects, using LUX Run03 D-D band as test case since NRs are disproportionately affected having the lowest-energy signals of course in S1) please look over and verify that you like my changes, even though I have also closed the issue already now (I can always reopen of course, if need be). I also checked that, sans noiseB[0] and [1] (i.e. both set to 0) and after removal of all phe's of value 0.000 the phe1 (didn't check phe2, but should be identical) distribution has a mean of 1.0000... to very high precision after millions of events. (Trying to tag Aaron M. too, but can't find him as user...)

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

No branches or pull requests

2 participants