AIRES library reference: sp1stint.

c     Routine directly callable from C/C++ (it could be necessary to
c     append an underscore, "_", to its name depending on the C/C++
c     compiler used).
      subroutine sp1stint(csys, x1, y1, z1, irc)
c     Setting the position of the first interaction.
c     Written by: S. J. Sciutto, La Plata 1999, 2003, 2010.
c     Arguments:
c     =========
c     csys............ (input, integer) Parameter labelling the
c                      coordinate system, or depth specification used.
c                      If csys is negative, then the first interaction
c                      is set using the current injection position.
c                      csys 0 = AIRES coordinate system. 1 = Injection
c                      point-shower axis system. 11 = The position
c                      of the first interaction is given as a
c                      vertical depth. 12 = The position of the first
c                      interaction is given as a slant depth.
c     x1, y1, z1...... (input, double precision) Coordinates of the
c                      interaction point with respect to the chosen
c                      system (in meters). If csys is 11 or 12, then
c                      x1 and y1 are not used, and z1 must contain
c                      the corresponding depth in g/cm2 (It is the
c                      user's response to ensure that the atmospheric
c                      model used to estimate the depth is the same
c                      than the one used in the simulation program).
c     irc............. (output, integer) Return code. 0 means normal
c                      return.

These pages are maintained by
Sergio J. Sciutto
Back to AIRES library index
Back to AIRES home [HOME]