_Geant4 Version: 7.4
_Operating System: Linux-CentOS_7
I would need to generate protons with uniform momentum distribution. By default Geant is simulating particles with uniform kinetic energy. After some investigation, I found the script
where it seems particle with uniform kinetic energies are generated. Then, I changed it to have uniform generation of momenta. However, I don’t get the momentum distribution I would need for the generated protons.
I guess I don’t have to compile Geant after this change in make-particle.py, right?
What would you suggest?
Thanks a lot! Pilar