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
Corrected for SCE convention and generalized #126
Corrected for SCE convention and generalized #126
Conversation
The code-checks are being triggered in jenkins. |
+code-checks |
trigger build |
trigger build |
The tests are being triggered in jenkins. |
+LArSoft tests OK on slf7 for c14:prof |
+LArSoft tests OK on slf7 for e26:prof |
-sbnd tests failed on slf7 for e26:prof |
-icarus tests failed on slf7 for e26:prof |
-uboone tests failed on slf7 for e26:prof |
-dune tests tests warning on slf7 for e26:prof |
@jzennamo are you able to address these concerns from Mike Mooney? Please see the previous concern I had about how larsim is handling SCE offsets:
This concerns spatial SCE offsets, but any possible redesign to the SpaceCharge service could impact E field distortion offsets as well. Agreement needs to be reached about how to proceed. Basically, as of right now, larsim is internally inconsistent. Once that is addressed, I think it will be straightforward to include the desired impact from SCE in this addition to the ionization/scintillation simulation. If you would like to avoid any problems in the meantime for the PR in question, I would remove the SCE dependence in Joseph's addition. Anything we do right now with this will likely be changed, and I'd rather not have to make two sets of changes. Also, as Joseph demonstrated to me, it is a very, very small effect. |
Hi @lgarren, thanks for bringing this up! This applies specifically to the position offsets. To validate my handling of this convention, I checked the magnitude of the electric field on either side of the cathode to confirm it was correctly handling the sign. I will be happy to update my handling once we have come up with a new convention. |
After discussion offline, this PR will be approved and merged. |
approve |
This pull request is fully signed and it will be merged to develop and built in the next LArSoft release after it passes the integration tests. |
This generalizes the
EFieldAtStep
function and corrects a typo I had in the convention for the direction of SCE electric field offsets.What looks like a bug in the correlated ionization and scintillation simulation seems to have the space-charge E-field distortion added incorrectly to the E field.
This PR changes default behavior in DUNE's Monte Carlo simulation, and should be reviewed by simulation experts.
The PR has been tested with ICARUS but it affects any detector with an E field that points in any direction other than +X.