Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt precision type of G4JLApplication to Simulation #437

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

fhagemann
Copy link
Collaborator

If a G4JLApplication is created from a Simulation{T}, the precision type T is also used for the output energies and positions. This PR might not cover all cases yet, but the one reported in #436.

wf = simulate_waveforms(events[1:100], sim, Δt = 1u"ns", max_nsteps = 2000)
plot(wf[1:20].waveform, label = "")
[ Info: Detector has 2 contacts
[ Info: Table has 100 physics events (4152 single charge depositions).
Progress: 100%|█████████████████████████████████████████| Time: 0:00:13
[ Info: Generating waveforms...

image

@fhagemann fhagemann added bug Something isn't working geant4 Anything related to the Geant4 support labels Nov 20, 2024
@fhagemann fhagemann merged commit c0ad0d3 into main Nov 20, 2024
9 checks passed
@fhagemann fhagemann deleted the geant4_precision branch November 20, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working geant4 Anything related to the Geant4 support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simulating waveforms with the Geant4 extension throws an error when using Float64
1 participant