This note describes how to link and run E-143 offline analysis executables on the Unix farm at SLAC.M. Daoudi, 10-Dec-93 Last update: 11-Oct-94
source /usr/local/esa/e143ola/com/setcern
source /usr/local/esa/e143ola/com/setprod
/u/ea/young/e143ola/pro/
(or $E143_ROOT
)
and the environment variables MYBIN, MYSRC, MYOBJ, ... etc should also be defined. This can be done once and for all in your .login file.
$E143_COM/e143mak or
(if you want the debug version).
$E143_COM/e143mak debug
You will be prompted for an (optional) input file in which you have
specified your own compiling/linking options (see below for the available
user options and required syntax). If you don't want to provide your own
options, just hit <CR> at the prompt and the program will link with preset
defaults.
Alternatively you can supply the name of the options file as an argument
to the link command, for example:
$E143_COM/e143mak debug mye143.opt
An executable called e143anl.exe (or e143anl_dbg.exe if debug) will be created in the directory $MYBIN
$E143_COM/e143run or
(to run the debug version).
$E143_COM/e143run debug
You will then be prompted for the name of the executable, if you hit <CR> the executable $MYBIN/e143anl.exe will be run. By default, this is the name that is used in step 3 above; you can modify it with the linking option EXE as explained below.
When the execution of the program starts, some information will scroll on
your window and a "Run-Control" window will open up.
In debug mode you will enter the dbx debugger: after having set some
breakpoints (man dbx or ask an expert), type "ignore io", then type "run"
to start the execution of the program.
$MYOBJ $SRCDIR if specified in the options file $MYSRC(There are other parameters that can be modified that I will not mention here, for instance you can use a different version of the CERN library by just modifying the parameter CERN in your options files.)
Here is an example of a user options file:
MYOBJS='use_endrun.o use_init.o' SRCDIR=/u/ea/daoudi/other/sources FFLAGS='-D' EXE=/u/ea/daoudi/e143/work/testit.exe MYLIBS=mycalclib.a LFLAGS='-C' OPTFLG='-O' MYINC=/u/ea/daoudi/e143/test/inc/Comments:
MYOBJS='use_endrun.o use_init.o use_trig.o use_fini.o'(note the placement of the quotes).
ALIB=/usr/local/esa/alib/dev/lib
CLIB=/usr/local/esa/clib/dev/lib
By default, the production (prod) version is used.
$MYCON
or ~/e143/anl/con
or /u/ea/daoudi/e143/anl/con
Please try to keep ONLY constants files in this directory.
If you choose not to use private constants then just answer NO (or < CR>)
when asked in step 4, and the default constants from $E143CON will be used.
$E143_COM/e143cleanup
You are encouraged to issue this command at the end of each run. However, be careful when issuing this command for it may delete another job you are running on the same machine from a different window, for example.