Skip to content

Multiple particles in one event

Copied text from other merge request, still valid

Setting the amount of particles set in the config lead to all of those particles starting from the exact same position. Probably that's a G4 bug.

The number of particles went to the GeneratorActionG4. I moved this to the BeamOn command, in the DepositionGeant4Module. However, this is handled as multiple "events" and therefore I moved the dispatch of the messages to a separate function, calling it when the BeamOn() returns.

Merge request reports