Skip to content

McStas Monitor_nD “nexusbins” only in listmode#2387

Merged
willend merged 2 commits intomccode-dev:mainfrom
willend:Monitor_nD_nexusbins_only_listmode
Apr 8, 2026
Merged

McStas Monitor_nD “nexusbins” only in listmode#2387
willend merged 2 commits intomccode-dev:mainfrom
willend:Monitor_nD_nexusbins_only_listmode

Conversation

@willend
Copy link
Copy Markdown
Contributor

@willend willend commented Apr 8, 2026

Free-form text area

Please describe what your PR is adding in terms of features or bugfixes:

Add Monitor_nD handle to enable/disable BIN info in NeXus mode:

  • -1 fully disables writing BINS information
  • 0 (default) write BINS information for list mode monitors
  • 1 write BINS information for any monitor

“Derived” monitors at present use the setting of 0, expose as input parameter for control

(Also: Sync Monitor_nD <-> Monitor_nD_noacc)


Development OS / boundary conditions

Please describe what OS you developed and tested your additions on, and if any special dependencies are required:


PR Checklist for contributing to McStas/McXtrace

For a coherent and useful contribution to McStas/McXtrace, please fill in relevant parts of the checklist:

  • My contribution includes patches to an existing component file

    • I have used the mcdoc utility and rendered a reasonable documentation page for the component (please attach as screenshot in comments!)
    • I have ensured that basic use of the component is OK (e.g. an instrument using it compiles?)
    • I have used the mctest utility to test one or more instruments making use of the component (please attach mcviewtest report as screenshot in comments)
  • My contribution contains something else

    • Explanation is added in free form text above or below the checklist

@willend
Copy link
Copy Markdown
Contributor Author

willend commented Apr 8, 2026

Screenshot 2026-04-08 at 11 59 33 Screenshot 2026-04-08 at 11 59 52

@willend willend merged commit ce12d8b into mccode-dev:main Apr 8, 2026
16 checks passed
willend added a commit to willend/McCode that referenced this pull request Apr 8, 2026
willend added a commit to willend/McCode that referenced this pull request Apr 8, 2026
willend added a commit to ebknudsen/McCode that referenced this pull request Apr 8, 2026
willend added a commit to ebknudsen/McCode that referenced this pull request Apr 8, 2026
willend added a commit that referenced this pull request Apr 8, 2026
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.

1 participant