Feat/quasioptical photon offload#317
Draft
ggalgoczi wants to merge 3 commits into
Draft
Conversation
…sses New standalone example demonstrating optical-photon offload via the G4 11.4 G4QuasiCerenkov / G4QuasiScintillation processes. Mirrors the structure of examples/async_gpu_std: standalone CMakeLists with find_package(eic-opticks), bare includes, manual argv parsing, glm find_package workaround for the eic-opticksConfig.cmake gap. Quasi process registration uses an inline QuasiOpticalPhysics constructor because G4OpticalPhysics::ConstructProcess in v11.4.1 does not auto-instantiate the Quasi variants based on G4OpticalParameters offload flags. The constructor activates after G4OpticalPhysics has run, with the legacy Cerenkov / Scintillation processes disabled via SetProcessActivation(false). The SteppingAction matches both "QuasiScintillation" and the upstream typo "QausiScintillation" for forward compatibility. Bit-identical output to the legacy GPURaytrace example when both run with stackPhotons=false (verified at 100-event and 50M-photon scales). No modifications to eic-opticks core source.
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.
Adds
examples/GPURaytraceQuasi/, a standalone consumer example that mirrorssrc/GPURaytracebut uses the new Geant4 11.4 native optical-photon offload classes (G4QuasiOpticalPhoton,G4QuasiCerenkov,G4QuasiScintillation) together withG4OpticalParameters::Set{Cerenkov,Scint}{Offload,Stack}Photons(...).This is purely additive — no modifications to any core source under
CSG/,CSGOptiX/,qudarap/,sysrap/,u4/,g4cx/,dd4hepplugins/, or any other tracked file in the repo. All changes live underexamples/GPURaytraceQuasi/.