Source file format


!filetype    trxsrc
!fileversion <yyyymmdd>
!filedate    <dow> <mmm> <dd> <hh>:<mm>:<ss> <yyyy>
# 
# Comment
#
{

!particle <projectile> 
!energy   [ <E> [ <prob> ] ] 
[
<E> <dN/dE>
...
]
!direction { "*" | <theta> <phi> | <thmin> <thmax> <phmin> <phmax> | {(theta=<expr>) (phi=<expr>)} } 
[
<dN/dOmega(theta,phi)>
...
]

{

!cylinder  <cx> <cy> <cz> [ record ]
!height   <height> 
!radius   [ <rmin> ] <rmax>
[
!phi      <min> <max>
]
[
!rotate   <axis> <angle>
]

|

!sphere    <cx> <cx> <cx> [ record ]
!radius   [ <rmin> ] <rmax>
[
!theta    <min> <max>
]
[
!phi      <min> <max>
]

|

!box      <cx> <cx> <cx> [ record ]
!size     <dx> <dy> <dz> 
[
!rotate   <axis> <angle>
]

|

}
<projectile> specifies the primary particle type. As of TRAX version >= 1102, multiple projectiles are possible and will be sampled from their cumulative distributions.
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.
Alternatively, for multiple projectiles, a single energy tag can be specified with a single probability (TRAX version >= 1102).
The !direction tag allows to specify
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.

!rotate specifies a source volume rotated around the <axis> (x,y,z) by <angle>.

All lengths are in cm, angles in degree. Energies are in keV, except for ions, for which it is in MeV/u.
The usual file name extension is .src. An example with an energy distribution is here.


Last updated: M.Kraemer,
$Id: traxfmtsrc.html,v 1.16 2015/01/05 18:11:15 kraemer Exp $