=================================================================
                      Sort Subroutines 

                        SPGC 20/04/98
=================================================================

Files:
        README		This file
	CHANGES		Changes/Updates

Directories:-

	calib-routines	Misc calibration routines and procedures
	event-struct	Event Structure
        oldstuff	Archived old stuff which may not work.
        simulations     Scanga RPS/MCarlo/Efficiency Simulation.

The sort subroutines have been developed to provide kinematic analysis
and manipulation of data calibrated in the ``standard format'' as
defined by the files in the ``Event Structure'' directory. 

Pseudo data can be generated in the standard format using the
``scanga'' routines which plug data directly into sunsort.

Example sort code and calibration routines can be found in the calib-routines
calib-routines/calib-inputs directories. It is intended that the user defines
a similar directory "calib-inputs" in their sort_dir location. Sunsort will
then run the Makefile in this directory during Makesort.  

Note: The following lab co-ordinate convention is used...

laboratory co-ords defined as (x,y,z)=(horiz,vert,beam)
                                                  y   z
                                                  |  /
(angles defined in the positive range 0->360.)    | /
                                                  |/
                                           x<-----.


Warning: prototype fortran compatability routines remain untested!

Please report Bugs to s.chappell1@physics.ox.ac.uk
