Input file with particle definition

Hello everyone!

In my simulation I am trying to obtain the total energy deposited in a voxelized water phantom. The problem is in my input file, I am using a macro file where each of the particles, their energy, position and direction are defined. However, after executing the /run/beamOn command, it seems that the simulation restarts and eliminates the energy accumulated with the previous particles. Is there a way to fire all these particles with their respective energies, positions and directions without resetting the energy accumulation in each particle? or is there any command or class that allows me to continue storing the energy even when /run/beamOn is executed again?

Input file:

Thank you so much!!

1 Like