Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

General Particle Source in GEANT4

  1. Nov 27, 2014 #1
    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.
  2. jcsd
  3. Nov 27, 2014 #2

    Vanadium 50

    User Avatar
    Staff Emeritus
    Science Advisor
    Education Advisor
    2017 Award

    How could it? Suppose you have something hard coded in the C++. How could the macro possibly override that?
  4. May 2, 2016 #3
    i have a problem related Geant4 source,i wana creat a gamma source of conic shape..any one help or guide me..
    kind regards
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted