Skip to content

1228, 1471 Share detectors between outputs and use particle filters in the examples - #2574

Merged
grzanka merged 5 commits into
masterfrom
1228-share-detectors-and-example-particle-filters
Dec 3, 2026
Merged

grzanka merged 5 commits into
masterfrom
1228-share-detectors-and-example-particle-filters

Conversation

@martastn

@martastn martastn commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1228, closes #1471. Part of #2542.

  • SHIELD-HIT12A and FLUKA outputs can use the same detector. The generated files are valid: two Output blocks with the same Geo, or two USRBIN cards on separate units.
  • Geant4 keeps one output per detector, because its converter merges them into one mesh. The check never ran for Geant4 outputs; now the detector picker enforces it. A project saved earlier with two Geant4 outputs on one detector is not checked when it runs.
  • The "Protons" filters in examples 1–5 are particle filters now, also in the saved results. Filters with GEN rules stay custom. The filter rules stay the same; in example 2 the generated detect.dat lists them as Z == 1, A == 1 (before: A, Z). The stored input files are not regenerated, because they belong to the saved results.
Detector list, SHIELD-HIT12A 1-detector-list-shieldhit
Detector list, Geant4 3-detector-list-geant4
Protons filter in example 1 4-example-protons-filter

Tested in the app on SHIELD-HIT12A, FLUKA and Geant4.

@martastn martastn self-assigned this Nov 28, 2026
@martastn
martastn marked this pull request as ready for review November 28, 2026 18:24

@grzanka grzanka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline comments cover the details. The main one is about examples 2, 4 and 5: their saved results still hold the old Protons filter, so the Results page shows custom Z/A rules while the editor shows a particle filter.

Comment thread public/examples/ex4.json Resolved
Comment thread public/examples/ex2.json Resolved
@grzanka
grzanka enabled auto-merge December 3, 2026 15:43
@grzanka
grzanka added this pull request to the merge queue Dec 3, 2026
Merged via the queue into master with commit d7c4e8a Dec 3, 2026
11 checks passed
@grzanka
grzanka deleted the 1228-share-detectors-and-example-particle-filters branch December 3, 2026 15:53
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.

Convert possible filters to particle filters Adding two outputs with the same detector

2 participants