Counts same number of particle detected

_Geant4 Version:_geant4-v11.2.0
_Operating System:_win11
_Compiler/Version:_Visual Studio Version 17.3.5
_CMake Version:_cmake-3.28.1

Hello everyone, I manage to count the particle numbers with tracking but unfortunately whenever I make simulation at certain energy value and particle number that I shoot, the result is always same.

For example, I shoot 50.000 gamma particles at 1200 keV. My scoringVolume at my detector counts always 4851. Is there a problem? If there is what is this problem? If it is possible can you help me with that, please.

The built-in random number generator (Ranecu?) uses the same seed at the start of every job so that a user can check reproducibility. If you want repeat runs to give you different answers, you have to set the seed yourself at the beginning of the run. For instance, you can use the command /random/setSeeds n m where n,m are integers in a macro file. Change the n, m values each time.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.