Dear users!
When gun more than one ion source, just the end ion source appears.
For example, when I want to make two ion sources like Co-60 and Cs-137 as follow:
/gun/particle ion
/gun/ion 27 60
/gun/ion 55 137
I see just the end one in the root file histogram.
Is it possible to see both ion sources in the same histogram?
Not with G4ParticleGun
. As you’ll see from G4ParticleGun.hh
, there is one single data member for the particle type. If you need more complex sources, you may want to investigate G4GeneralParticleSource
(/gps/...
macro commands) your you can write your own G4UserPrimaryGeneratorAction
with whatever complexity you need.
You may wish to have a look at example: extended/eventgenerator/userPrimaryGenerator which even do not use G4ParticleGun.
Thank you all for your Reply