Hi!
I am trying to build a multiple source simulation using G4GeneralParticleSource in such a way that the sources have different intensities and launched at the same time. So, to be more clear, I would like a beam1 with 1000 primaries is launched at the same time as a t beam2 with 500 primaries.
I followed some instructions found on the manual and from the .mac file in example 31 under examples/extended/eventgenerator/exgps, producing this piece of .mac file:
…
/gps/source/add 1
/gps/particle e-
/gps/pos/type Beam
/gps/pos/shape Circle
/gps/pos/rot1 0 1 0
/gps/pos/rot2 1 0 0
/gps/pos/shape Circle
/gps/pos/radius 0.1 mm
/gps/pos/centre 0 2 0 mm
/gps/direction 1 0 0
/gps/energy 40 MeV
/gps/source/add 2
/gps/particle e-
/gps/pos/type Beam
/gps/pos/shape Circle
/gps/pos/rot1 0 1 0
/gps/pos/rot2 1 0 0
/gps/pos/shape Circle
/gps/pos/radius 0.05 mm
/gps/pos/centre -5 0 0 mm
/gps/direction 1 0 0
/gps/energy 1 MeV
/gps/source/multiplevertex true
/run/beamOn 500
…
However, what I see is that the simulation generates the exact number of e- at 1 MeV and 40 MeV (i.e. 500 each).
Can you explain why or highlight something I am doing wrong?
Thanks a lot,
Tommaso.
_Geant4 Version:_11.2.2
_Operating System:_Linux
Compiler/Version:
_CMake Version:_3.26