I understand how GPS is working to simulate a single source. In the case of a neutron source with spectra in spec1.dat, I use the following in my macro:
gps/particle neutron
# source
/gps/pos/type Volume
/gps/pos/shape Sphere
/gps/pos/centre 0. 0. 10. cm
/gps/pos/radius 0.1 mm
# angular distribution
/gps/ang/type iso
# energy distribution
/gps/ene/type User
/gps/hist/type energy
/control/execute spec1.dat
How can I implement two sources of different types/positions such that 50% of the time the first source is selected (and rest of the time the other)? Can that be implemented in macro?