0) once for all: make clean; make 
 This makes tranFit$ARCH. tranFit is linked to this
 so you may access tranFit which is to  make a fitting
 of f(x) = a*(x/x0)**b exp(-c(x/x0)**d)  to the transition
 curve. (As far as you use the scripts below, no need to use
 this directly).

1)  To get max depth and apprent max depth of each event. Use
   
  ./procAll.sh  directory  resultfile [maxleft maxright]

  where
   directory:  the path to a directory where .hyb files are
	contained.
   resultfile:  file name to contain  (Xmax, aXmax) of Ng, Ne, dE and hybNe + coszenith for
	each event.  (One event in one line).  Xmax is by fitting
	aXmax apparent max pos.  They are slant depth.
   maxleft and maxright:  optional. how many layers are to be used
	before and after apparant max pos.  Default is 3 3.
	For overall fitting of the transition, these values may
	be bettter to be set larger.
 1-1)  To know the average of Xmax, use
	awk -f getave.awk resultfile; and you will get a line like
       Ng( 771.001 770.833 ) Ne( 738.717 739.583 ) dE( 737.857 738.467 ) hNe ( 739.924 740.327 )
 1-2)  To get cumulative <Xmax>, <aXmax> (with respect to # of events),  use

	awk -f getcumave.awk resultfile > cumave.dat
	and then, 
	plot item 1 vs 4 (for event# vs <fitted Xmax of Ne>)
        plot item 1 vs 5 (for event# vs <apparent Xmax of Ne>)
	plot item 1 vs 6 (for event# vs <fitted Xmax of dE>)
	plot item 1 vs 7 (for event# vs <apparent Xmax of dE>)
	plot item 1 vs 8 (for event# vs <fitted Xmax of hNe>)
	plot item 1 vs 9 (for event# vs <apparent Xmax of hNe>)
	(item 2,3 are for Ng)
 2)  To see fitting result event by event (via gnuplot)
	./seeFit.sh directory   [maxleft maxright]
     directory: same as in 1)
     [maxleft maxright]	: same as in 1).
   *a Click the firue by mouse to see next event.
   *b The last command in the file, gnutemplate.cmd,  is 
	pause mouse
     Some gnuplot may not support and  *a may not work.  I that case
     you may set pause -1, and push return to proceed the next event.
   *c If you want to send the figure to a file, uncomment the part  
     below "### file output" in seeFig.sh.  The current setting is to
     get .eps file but the line width is not reflected.  If pdf is
     usable, change so.


	




	
