-<title>README for Hadaq</title>
-<h1>README for Hadaq</h1>
+<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
+<html>
+ <head>
+ <title>
+ READ ME for Hadaq
+ </title>
+ <body>
+ <address>
+ <a href="mailto:Mathias.Muench@Physik.tu-muenchen.de">Mathias
+ Münch</a><br>
+ 2000-02-14<br>
+ </address>
+ <h1>
+ READ ME for Hadaq
+ </h1>
+ <h2>
+ Introduction
+ </h2>
+ This is <cite>hadaq-0.6</cite>. This Version of the HADES data
+ acquisition represents the status of the system as it was at
+ the end of the beam time in December 1999. All the different
+ directories (<cite>daq, mdc, rich, shower, tof</cite>) have
+ been merged into one single version. Some files
+ (<cite>startacq, stopacq, writefile, dumpdata</cite>) and
+ especially <cite>param.tcl</cite> are basically "unmergable".
+ Therefore, <cite>daq_readout</cite> will probably complain
+ about missing parameters at startup. You will have to re fit
+ these files to your needs again or get your old files from the
+ <cite>hades</cite> account in Munich, directory <cite>
+ lt99</cite>. Additionally, a few changes from the beam time
+ status have been made in <cite>agent.c, latm.c, makeenv,
+ online.c and semaphore.c</cite> , mostly to make <cite>
+ Hadaq</cite> compile on up to date Linux versions.
+ <h2>
+ How to compile
+ </h2>
+ <p>
+ Unpack the tar file, if not already done. It creates a
+ subdirectory <cite>hadaq</cite> in the current directory.
+ <p>
+ For compiling, you need two additional libraries: <a href=
+ "ftp://ftp.e12.physik.tu-muenchen.de/pub/hadsoft/hadesstd-2.3.tar.Z">
+ hadesstd-2.3</a> and <a href=
+ "ftp://ftp.e12.physik.tu-muenchen.de/pub/hadsoft/lvme-1.2.tar.Z">
+ lvme-1.2</a> , both available at the <a href=
+ "ftp://ftp.e12.physik.tu-muenchen.de">E12 FTP server</a>. The
+ hadaq <cite>Makefile</cite> looks for these libraries in
+ <cite>/usr/local/lib</cite> or in <cite>
+ $HOME/lib/$SYSTYPE</cite>.
+ <p>
+ The Makefile itself is system independent, but is controlled
+ by a set of environment variables. These are set with the
+ <cite>makeenv</cite> shell source file. Known platforms are
+ UNIX, UNIX_NOATM, LINUX (unfortunately not the same as UNIX),
+ LYNXOS, LYNXOS_E7. Known readout configurations are MDC,
+ RICH, SHOW, SOFT, TOF.
+<pre>
+<br>
+<code>$ <kbd>. ./makeenv UNIX SOFT</kbd></code>
+<br>
+</pre>
+ <br>
+ Don't forget the dot at the beginning of the command.
+ <p>
+ Now for creating a mini system as described in <a href=
+ "http://www.e12.physik.tu-muenchen.de/~muench/hadaq/doc/minihadaq.html">
+ http://www.e12.physik.tu-muenchen.de/~muench/hadaq/doc/minihadaq.html</a>.
+<pre>
+<br>
+<code>$ <kbd>make mini</kbd></code>
+<code>$ <kbd>make anal</kbd></code>
+<br>
+</pre>
+ On Platforms where no ATM support is available, compiling
+ <cite>daq_memnet</cite> and <cite>daq_netmem</cite> in
+ senseless and will not even work.
+</html>
-
-<p>For compiling, you need two libraries:
-<a href="file://ftp.e12.physik.tu-muenchen.de/pub/hadsoft/hadesstd-2.3.tar.Z">
-hadesstd-2.3
-</a>
-and
-<a href="file://ftp.e12.physik.tu-muenchen.de/pub/hadsoft/lvme-1.2.tar.Z">
-lvme-1.2
-</a>
-<p> The Makefile itself is system independent, but ist controlled
-by a set of environment variables. These are set with the <var>makeenv</var>
-shell source file. Don't forget the dot at the beginning of the command.
-
-$ . ./makeenv LINUX SOFT
-
-Now for creating a minisystem as described in
-$ make mini
-$ make anal
-
-On Platforms where no ATM support is availabe, compiling daq_memnet
-and daq_netmem in senseless and will not even work.
if test $HADAQ_CONF = "UNIX"
then
-export CC="c89"
-export RPCGEN="rpcgen"
-export LOADLIBES="-L/usr/local/lib/ -lhadesstd -L/usr/fore/lib -latm -lrt -ltk -lX11 -ltcl -lm"
-export INCLUDES="-I/usr/local/include -I/usr/fore/include"
-export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT -DHADESSTD_NGETOPT"
-elif test $HADAQ_CONF = "UNIX_WO_ATM"
-then
-export CC="c89"
-export RPCGEN="rpcgen"
-export LOADLIBES="-L/usr/local/lib/ -lhadesstd -llvme -lrt -ltk -lX11 -ltcl -lm"
-export INCLUDES="-I/usr/local/include -I/usr/fore/include"
-export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT -DHADESSTD_NGETOPT -DNOATM"
+ export CC="c89"
+ export RPCGEN="rpcgen"
+ export LOADLIBES="-L/usr/local/lib/ -L$HOME/lib/$SYSTYPE -lhadesstd -L/usr/fore/lib -latm -lrt -ltk -lX11 -ltcl -lm"
+ export INCLUDES="-I/usr/local/include -I$HOME/include -I/usr/fore/include"
+ export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT -DHADESSTD_NGETOPT"
+elif test $HADAQ_CONF = "UNIX_NOATM"
+then
+ export CC="c89"
+ export RPCGEN="rpcgen"
+ export LOADLIBES="-L/usr/local/lib/ -L$HOME/lib/$SYSTYPE -lhadesstd -llvme -lrt -ltk -lX11 -ltcl -lm"
+ export INCLUDES="-I/usr/local/include -I$HOME/include"
+ export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT -DHADESSTD_NGETOPT -DNOATM"
elif test $HADAQ_CONF = "LINUX"
then
-export CC="gcc"
-export RPCGEN="rpcgen -k"
-export LOADLIBES="-L$HOME/lib/$SYSTYPE -lhadesstd -llvme"
-export INCLUDES="-I$HOME/include"
-export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT -DHADESSTD_NGETOPT -DNOATM"
+ export CC="gcc"
+ export RPCGEN="rpcgen"
+ export LOADLIBES="-L$HOME/lib/$SYSTYPE -lhadesstd -llvme -ltk -L/usr/X11R6/lib -lX11 -ltcl -lm -ldl"
+ export INCLUDES="-I$HOME/include"
+ export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT -DHADESSTD_NGETOPT -DNOATM"
elif test $HADAQ_CONF = "LYNXOS"
then
-export CC="gcc"
-export RPCGEN="rpcgen"
-export LOADLIBES="-L/usr/local/lib -L$HOME/lib/$SYSTYPE -lhadesstd -llvme -ltcl -lm -lrpc -lnetinet -L/usr/ATM/lib -latm -L/lib/ces -lvme -lbma -luio"
-export INCLUDES="-I/usr/local/include -I$HOME/include -I/usr/ATM/include"
-export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT"
+ export CC="gcc"
+ export RPCGEN="rpcgen"
+ export LOADLIBES="-L$HOME/lib/$SYSTYPE -lhadesstd -llvme -ltcl -lm -lrpc -lnetinet -L/usr/ATM/lib -latm -L/lib/ces -lvme -lbma -luio"
+ export INCLUDES="-I/usr/local/include -I$HOME/include -I/usr/ATM/include"
+ export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT"
elif test $HADAQ_CONF = "LYNXOS_E7"
then
-export CC="gcc"
-export RPCGEN="rpcgen"
-export LOADLIBES="-L/usr/local/lib -L$HOME/lib/$SYSTYPE -lhadesstd -llvme -ltcl -lm -lrpc -lnetinet ../*.o"
-export INCLUDES="-I/usr/local/include -I$HOME/include"
-export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT -DNOATM"
+ export CC="gcc"
+ export RPCGEN="rpcgen"
+ export LOADLIBES="-L$HOME/lib/$SYSTYPE -lhadesstd -llvme -ltcl -lm -lrpc -lnetinet ../*.o"
+ export INCLUDES="-I/usr/local/include -I$HOME/include"
+ export DEFINES="-UNDEBUG -DHADESSTD_NEXITSTAT -DNOATM"
fi
if test $HW_CONF = "SOFT"
then
-export HW_OBJS="hwsoft.o"
+ export HW_OBJS="hwsoft.o"
elif test $HW_CONF = "SEB"
then
-export HW_OBJS="hwtof.o hwv775.o hwv878.o hwv488.o hwdtu.o hwsis3801.o"
+ export HW_OBJS="hwtof.o hwv775.o hwv878.o hwv488.o hwdtu.o hwsis3801.o"
elif test $HW_CONF = "RICH"
then
-export HW_OBJS="hwrich.o hwrace.o rc.o"
+ export HW_OBJS="hwrich.o hwrace.o rc.o"
elif test $HW_CONF = "MDC"
then
-export HW_OBJS="hwmdc.o hwsam.o"
+ export HW_OBJS="hwmdc.o hwsam.o"
elif test $HW_CONF = "SHOW"
then
-export HW_OBJS="hwshow.o hwship.o"
+ export HW_OBJS="hwshow.o hwship.o"
elif test $HW_CONF = "TBUS"
then
-export HW_OBJS="hwtbus.o hwdtu.o"
+ export HW_OBJS="hwtbus.o hwdtu.o"
fi