Repository navigation
Conversation
The exit-side reset used z = splen/2 instead of z = splen (splen is already the half-length), so blade absorption was only checked over the first three quarters of the slit package. Transmission drops: SNS_ARCS Full_cyl -37% (Fermi_chop2a -29%, Vertical_T0a -12%). Fixes #3006, fixes #3007. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both branches of the check ended in break, so only A_0 was tested. Now the loop stops at the first lag that fails and the warning names it. Warnings only, no change in results. Refs #3005 (point 2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 22, 2026
Full_cyl_I from 1e7 rays, 8 MPI ranks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Free-form text area
Please describe what your PR is adding in terms of features or bugfixes:
Fermi_chop2a and Vertical_T0a (fixes #3006, fixes #3007). In TRACE,
phivec[0]andphivec[1]are reset so the blade-absorption checks cover the slit package. In the rotating frame the neutron path is z = c0 + nrad cos(phi). The entry reset solves z = -splen; the exit reset used(-c[0] + splen / 2.0), i.e. z = splen/2, althoughsplen = len/2is already the half-length. The cylinder radius exceedssplen, so the reset applies to nearly every neutron, and blade hits in the last quarter of the package were never checked. The exit now uses(-c[0] + splen).This changes results. SNS_ARCS (
-y -n 1e6 -s 5),Full_cyl_I:mainThe
%Test: -y Detector: Full_cyl_I=235445line inSNS_ARCS.instris not updated here.@granrothge, could you review? In particular: was
splen / 2.0intended for some reason, and has the ARCS model been compared with measured flux using these components?StatisticalChopper (point 2 of #3005). Both branches of the autocorrelation check ended in
break, so only A_0 was tested. The loop now stops at the first lag that fails, and the warning names the lag. Warnings only; Test_StatisticalChopper gives identical output tomain. Point 1 (sign ofdelayforisfirst=1) is not addressed; it is tied to the DiskChopper discussion in #2347.Declaration of use of AI-tools
Co-Authored-Byline naming the tool, see CONTRIBUTING.mdDevelopment OS / boundary conditions
Please describe what OS you developed and tested your additions on, and if any special dependencies are required:
macOS arm64,
mccode-devconda env. Not tested on Linux, Windows or GPU.PR Checklist for contributing to McStas/McXtrace
My contribution includes patches to an existing component file
mctestutility to test one or more instruments making use of the component (please attachmcviewtestreport as screenshot in comments)mccode-clangformattool to apply the standard McCode component indentation schemeMy PR is meant to fix a specific, existing issue
🤖 Generated with Claude Code