|Message: Re: particles list from an external file||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)|
Hi Andres, The G4GeneralParticleSource is what you are looking for. It is available as a part of Geant4. The documentation is located at http://reat.space.qinetiq.com/gps/ Quick example setup: Replace G4ParticleGun with G4GeneralParticleSource in your "PrimaryGeneratorAction" (have a look at the advanced example "xray_telescope"). You now have a "/gps/" menu available in your application. The GPS can then eg. generate an isotropic flux of protons (according to SPENVIS/AP8-MIN) inside a spherical volume: /gps/pos/type Surface /gps/pos/shape Sphere /gps/pos/centre 0. 0. 0. cm /gps/pos/radius 5 m /gps/ang/type cos /gps/ang/surfnorm true /gps/particle proton /gps/ene/type Arb /gps/hist/type arb /gps/hist/point 1.0000E-01 9.3495E+02 /gps/hist/point 1.5000E-01 7.4930E+02 /gps/hist/point 2.0000E-01 5.7599E+02 /gps/hist/point 3.0000E-01 3.4861E+02 /gps/hist/point 4.0000E-01 2.2705E+02 /gps/hist/point 5.0000E-01 1.5053E+02 /gps/hist/point 6.0000E-01 1.0933E+02 /gps/hist/point 7.0000E-01 8.0514E+01 /gps/hist/point 1.0000E+00 4.2727E+01 /gps/hist/point 1.5000E+00 1.9945E+01 /gps/hist/point 2.0000E+00 1.2883E+01 /gps/hist/point 3.0000E+00 6.5495E+00 /gps/hist/point 4.0000E+00 3.8972E+00 /gps/hist/point 5.0000E+00 2.3967E+00 /gps/hist/point 6.0000E+00 1.5682E+00 /gps/hist/point 7.0000E+00 1.0267E+00 /gps/hist/point 1.0000E+01 5.4614E-01 /gps/hist/point 1.5000E+01 2.2480E-01 /gps/hist/point 2.0000E+01 1.4532E-01 /gps/hist/point 3.0000E+01 9.6825E-02 /gps/hist/point 4.0000E+01 8.1300E-02 /gps/hist/point 5.0000E+01 7.5740E-02 /gps/hist/point 6.0000E+01 7.4412E-02 /gps/hist/point 7.0000E+01 6.9227E-02 /gps/hist/point 1.0000E+02 5.2639E-02 /gps/hist/point 1.5000E+02 3.0612E-02 /gps/hist/point 2.0000E+02 1.6195E-02 /gps/hist/point 3.0000E+02 5.1693E-03 /gps/hist/point 4.0000E+02 0.0000E+00 /gps/hist/inter Lin Good luck! Cheers, Tore
|Inline Depth:||Outline Depth:||Add message:|