AIRES library reference: olcrossedu.


c
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).
c
c
      subroutine olcrossedu(olkey, ux, uy, uz, firstol, lastol)
c
c     Given the crossed observing levels key (saved at each particle
c     record in the longitudinal tracking file), and the x and y
c     components of the unitary vector marking the direction of motion,
c     the first and last observing levels and z component of the
c     direction of motion vector are reconstructed.
c     The encoding formula is the following:
c
c         olkey = firstol + 512 * lastol + 512^2 * updown01
c
c     where updown01 is one if the particle goes upwards, zero
c     otherwise.
c
c     Written by: S. J. Sciutto, La Plata 1997.
c
c
c     Arguments:
c     =========
c
c     olkey........... (input, integer) Key with information about the
c                      crossed observing levels.
c     ux, uy.......... (input, double precision) X and y components of
c                      the unitary vector marking the particle's
c                      direction of motion.
c     uz.............. (output, double precision) Z component of the
c                      direction of motion.
c     firstol......... (output, integer) First observing level crossed
c                      (0 LE firstol LE 511).
c     lastol.......... (output, integer) Last observing level crossed
c                      (0 LE lastol LE 511).
c
c
c<--->


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