General Particle Source in GEANT4

Jehan Jayanetti
Messages
1
Reaction score
0
I have created a macro file that should produce a Gaussian (Normal) distribution of gamma particles ranging in energy from 0 to 250 keV as follows:

/control/verbose 0
/run/verbose 0
/tracking/verbose 0
/gps/particle gamma
/gps/ene/type Gauss
/gps/ene/min 0 keV
/gps/ene/max 250 keV
/run/beamOn 10000000

I have used the gps (General Particle Source) command to generate this distribution.
However, when I examine the distribution in Matlab it appears as a mono-energetic distribution. I thought the macro commands executed at the Idle> prompt should override the underlying C++ code, but it appears that they do not.
 
Physics news on Phys.org
Jehan Jayanetti said:
I thought the macro commands executed at the Idle> prompt should override the underlying C++ code, but it appears that they do not.

How could it? Suppose you have something hard coded in the C++. How could the macro possibly override that?
 
Hi
i have a problem related Geant4 source,i wana creat a gamma source of conic shape..any one help or guide me..
kind regards
 
Back
Top