TRAX source file format
| GSI Biophysics
| TRAX long write-up
|
Source file format
!filetype trxsrc
!fileversion <yyyymmdd>
!filedate <dow> <mmm> <dd> <hh>:<mm>:<ss> <yyyy>
#
# Comment
#
{
!particle <projectile>
!energy [ <E> ]
[
<E> <dN/dE>
...
]
!direction { "*" | <theta> <phi> | <thmin> <thmax> <phmin> <phmax> | {(theta=<expr>) (phi=<expr>)} }
[
<dN/dOmega(theta,phi)>
...
]
{
!cylinder <cx> <cx> <cx> [ record ]
!height <height>
!radius [ <rmin> ] <rmax>
[
!phi <min> <max>
]
[
!axis <theta> <phi>
]
|
!sphere <cx> <cx> <cx> [ record ]
!radius [ <rmin> ] <rmax>
[
!theta <min> <max>
]
[
!phi <min> <max>
]
|
!box <cx> <cx> <cx> [ record ]
!size <dx> <dy> <dz>
[
!axis <theta> <phi>
]
|
}
<projectile>
specifies the primary particle type.
The !energy
tag specifies either a monoenergetic source
or an energy distribution given as a pair of numbers
<E> <dN/dE>.
From this distribution the actual energy will be sampled.
The !direction
tag allows to specify
-
*
for an isotropic distribution covering all angles
-
2 numbers
for a single direction (polar and azimuth angle)
-
4 numbers
for an isotropic distribution between the specified angles
- expressions for theta and phi
where
<expr>
is either a list of numbers or an expression like 1 TO 90 BY 1
.
This defines a 2-dimensional angular distribution.
Their data values are given as
<dN/dOmega(theta,phi)>
.
From this distribution the actual direction will be sampled.
NOTE: this feature is not yet implemented.
The following
!cylinder
,
!sphere
,
!box
keywords define the spatial source distribution,
the meaning is the same as for the
geometry volumes.
They might be used to implement volume, area, and
line sources with the given geometry.
The !axis
keyword is not yet implemented.
All lengths are in cm, angles in degree.
Energies are in keV, except for ions, for them in MeV/u.
The usual file name extension is .src
.
An example with an energy distribution is
here.
| GSI Biophysics
| TRAX long write-up
|
Last updated: M.Kraemer@gsi.de,
16-Aug-2002