Conversation
Add examples/viztracks/ that converts GPU photon step records into G4VTrajectory objects for Geant4 interactive visualization. Uses KeepTheCurrentEvent to preserve the event, then injects trajectories from the Opticks record array in EndOfRunAction.
Aligned validation using precooked curand Philox sequences so G4 consumes the same random numbers as the GPU. Includes: - StandAloneGeant4Validation with ShimG4Op* for RNG alignment - generate_precooked_rng.cu for Philox sequence generation - compare_aligned.py for flag/position/chi2 comparison - raindrop configs for testing Tested on raindrop geometry: 10000/10000 photons match (100%).
- StandAloneGeant4Validation: add StepRecordAccumulator that saves per-step photon positions as g4_record.npy (N, 32, 4, 4), matching the Opticks record.npy format for photon-by-photon track comparison - Add plot_divergent_tracks.py: VTK offscreen renderer that overlays GPU (red) and G4 (blue) photon tracks on GDML wireframe geometry - Add apex.json config for apex.gdml torch photon simulation
apex.gdml: scintillator detector with WLS plates, SiPMs, and Vikuiti reflective foil wrapping (500x500x6mm flat detector). sphere_leak_simple.gdml: nested sphere mirror leak test with dielectric_metal skinsurface, no RINDEX on mirror material — verified zero-leak configuration for both GPU and G4.
Contributor
Cpp-Linter Report
|
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.
Add examples/viztracks/ that converts GPU photon step records into G4VTrajectory objects for Geant4 interactive visualization. Uses KeepTheCurrentEvent to preserve the event, then injects trajectories from the Opticks record array in EndOfRunAction.