Energy spectrum as input

Hi all,

I simulate the X-ray spectra using Geant4.
Can anyone explain clearly how to make use of the this spectra as input source for another simulation.

Thanks for reading and for any help!

1- with simple G4ParticleGun. See examples/extended/eventgenerator/paticleGun.
Try to do something similar to what is explained in Readme and PrimaryGeneratorAction2

2- with GeneralParticleSource. See Geant4 documentation :Geant4 General Particle Source — Book For Application Developers 11.0 documentation and example exgps

2 Likes

Thanks for your reply !

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.