|Message: Re: distribution uniform||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
To ensure a correct 4pi uniform distribution, your best bet is to use the G4GeneralParticleSource (G4GPS) class instead of the G4ParticleGun class. The G4GPS class can produce a wide variety of particle source distributions in energy and angle from a diversity of shapes, surfaces, etc. There are also options to restrict the solid angle of the source (in theta and phi) to produce a 2pi source, for example. It is primarily controlled by runtime macro commands. To produce a 4pi uniform source of 1 MeV gamma at the origin (for example), you can run the following commands:
/gps/particle gamma /gps/pos/type Point /gps/pos/centre 0. 0. 0. cm /gps/ang/type iso /gps/ene/mono 1 MeV
The G4GPS manual can be found here: http://reat.space.qinetiq.com/gps/new_gps_sum_files/gps_sum.htm
If you need to produce a 4pi uniform distribution using the G4ParticleGun, you can simply copy (and modify to suit your needs) code from the G4SPSAngDistribution class and place in your user primary generator action class to calculate an isotropic flux: http://www-geant4.kek.jp/lxr/source/event/src/G4SPSAngDistribution.cc#L256