Skip to content

Use G4SingleParticleSource instead of G4ParticleGun for isotope source generation.#508

Merged
oschulz merged 2 commits intoJuliaPhysics:mainfrom
Yuan-Ru-Lin:setup-isotope-source
Jul 6, 2025
Merged

Use G4SingleParticleSource instead of G4ParticleGun for isotope source generation.#508
oschulz merged 2 commits intoJuliaPhysics:mainfrom
Yuan-Ru-Lin:setup-isotope-source

Conversation

@Yuan-Ru-Lin
Copy link
Contributor

The resulted energy spectrum is not a Dirac delta function anymore, but
it is not similar to a typical 207-Bi spectrum either. Maybe it's caused
by the following line?

SetParticleMomentumDirection(GetAngDist(gun), data.direction)

It does not make sense to me that one specifies the direction of the
momentum of an isotope source. I modified it only to make the code
compile.

source generation.

The resulted energy spectrum is not a Dirac delta function anymore, but
it is not similar to a typical 207-Bi spectrum either. Maybe it's caused
by the following line?

`SetParticleMomentumDirection(GetAngDist(gun), data.direction)`

It does not make sense to me that one specifies the direction of the
momentum of an isotope source. I modified it only to make the code
compile.
@Yuan-Ru-Lin Yuan-Ru-Lin marked this pull request as ready for review July 5, 2025 05:21
@oschulz oschulz merged commit 5926374 into JuliaPhysics:main Jul 6, 2025
11 checks passed
@oschulz
Copy link
Member

oschulz commented Jul 6, 2025

Thanks @Yuan-Ru-Lin !

JuliaRegistries/General#134263

@fhagemann fhagemann added the geant4 Anything related to the Geant4 support label Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

geant4 Anything related to the Geant4 support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants