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

Corrected for SCE convention and generalized #126

Merged
merged 2 commits into from Dec 12, 2023

Conversation

jzennamo
Copy link
Contributor

@jzennamo jzennamo commented Nov 9, 2023

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.

@FNALbuild
Copy link
Contributor

A new Pull Request was created by @jzennamo for develop.

It involves the following packages:

larsim

@LArSoft/level-1-managers, @LArSoft/level-2-managers can you please review it and eventually sign? Thanks.

cms-bot commands are listed here

@FNALbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@FNALbuild
Copy link
Contributor

+code-checks

@lgarren
Copy link
Member

lgarren commented Nov 9, 2023

trigger build

@lgarren lgarren added this to Approval in progress in LArSoft pull requests Nov 9, 2023
@lgarren
Copy link
Member

lgarren commented Nov 9, 2023

trigger build

@FNALbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@FNALbuild
Copy link
Contributor

+LArSoft tests OK on slf7 for c14:prof
for details see
https://lar-ci-history.fnal.gov/LarCI/app/view_builds/index?offset=0&builds=lar_ci/20934&builds=
+build

@FNALbuild
Copy link
Contributor

+LArSoft tests OK on slf7 for e26:prof
for details see
https://lar-ci-history.fnal.gov/LarCI/app/view_builds/index?offset=0&builds=lar_ci/20935&builds=
+build

@FNALbuild
Copy link
Contributor

@FNALbuild
Copy link
Contributor

@FNALbuild
Copy link
Contributor

@FNALbuild
Copy link
Contributor

@lgarren
Copy link
Member

lgarren commented Nov 10, 2023

@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:

- https://cdcvs.fnal.gov/redmine/issues/28099
- https://indico.fnal.gov/event/59975/contributions/268145/attachments/167532/223567/LArSoft_CoordinationMeeting_23_05_30.pdf

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.

@jzennamo
Copy link
Contributor Author

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.

@greenc-FNAL greenc-FNAL moved this from Approval in progress to Under discussion in LArSoft pull requests Nov 13, 2023
@lgarren lgarren moved this from Under discussion to Approval in progress in LArSoft pull requests Dec 12, 2023
@lgarren
Copy link
Member

lgarren commented Dec 12, 2023

After discussion offline, this PR will be approved and merged.

@lgarren
Copy link
Member

lgarren commented Dec 12, 2023

approve

@FNALbuild
Copy link
Contributor

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.

@lgarren lgarren merged commit 433e856 into LArSoft:develop Dec 12, 2023
1 check passed
LArSoft pull requests automation moved this from Approval in progress to Merged into develop Dec 12, 2023
@lgarren lgarren moved this from Merged into develop to Included in release in LArSoft pull requests Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
LArSoft pull requests
Included in release
Development

Successfully merging this pull request may close these issues.

None yet

3 participants