Skip to content

test: add dune mock geometr to simg4ox test#411

Draft
plexoos wants to merge 3 commits into
mainfrom
test-dune-mock-detector
Draft

test: add dune mock geometr to simg4ox test#411
plexoos wants to merge 3 commits into
mainfrom
test-dune-mock-detector

Conversation

@plexoos

@plexoos plexoos commented Jul 10, 2026

Copy link
Copy Markdown
Member

No description provided.

@plexoos plexoos self-assigned this Jul 10, 2026
@plexoos plexoos added the test label Jul 10, 2026
@plexoos
plexoos force-pushed the test-dune-mock-detector branch from 9c9c253 to b5de81c Compare July 10, 2026 16:06
plexoos added 3 commits July 15, 2026 18:50
Map Geant4 steps that enter a sensitive detector volume to SURFACE_DETECT in the CPU SEvt record. The detector surface can otherwise appear as SURFACE_SREFLECT followed by a terminal NAN_ABORT, which does not match the Opticks-side detector history.

When this conversion happens, preserve the incoming pre-step momentum and polarization so the recorded detector point keeps the same direction convention as the GPU record. Also skip the redundant NAN_ABORT step after a detection has already been recorded.
Teach U4StepPoint to classify native Geant4 OpWLS as BULK_ABSORB so the existing SEvt rejoin path can rewrite the parent record to BULK_REEMIT when the reemitted photon starts tracking.

Label optical secondaries produced by a tracked photon with the next-generation lineage of the parent. This keeps WLS reemission in the same photon record instead of fabricating a new photon id, which previously overflowed the 100-photon nested DUNE event.
@plexoos
plexoos force-pushed the test-dune-mock-detector branch from b5de81c to efb4077 Compare July 17, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant