Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The online reconstruction run scripts should now be installed to the /scratch/bin directory, and you should be ready to test the client and server.

Running the Client and Server

Starting the Server 

Info
titleET Software
The server cannot startup without connecting to an ET ring. If you are testing the tools outside of the counting house where this is not provided, then follow the instructions below for installing and running the ET software, along with a data producer.

The connection parameters for your local ET ring need to be an accessible and running ET ring present.The important ET connection parameters for this can be specified in an initial server config file like this:

Code Block
languagebash
themeMidnight
titlemy.cfg
et.buffer=/tmp/ETBuffer
et.host=localhost
et.port=11111

These are settings provide the hostname where the ET ring is running, the port it is using for connections, and the name of the buffer file. They These need to exactly match either the actual running ET ring in Hall B or one started by the user on their machine.your machine or the server will fail to startup.

Once you have confirmed that the ET ring is running, you may You can launch the server now using a command likesuch as::

Code Block
languagebash
themeMidnight
hps-recon-server --host localhost --port 22222 -w $PWD/stations -c my.cfg &

The --host switch should specify specifies a valid network hostname or IP address for the server to use.. For testing and development, it is preferable to use the generic localhost but this is not provided as a default. Otherwise, this should be a valid system (DNS) name, or leave it blank to use the actual system name (usually equivalent to the output from the uname command on Linux).

The The --port switch can be used to set an alternate designate a specific port for the TCP/IP socket to listen on (by default it is actually 2222222222 already).

The -w switch gives the directory where station data will be written. By default, this is the directory where the server was started.

Finally, the -c option gives the location of the server's initial configuration file, which most importantly contains the parameters for connecting to the ET systemFor testing and development, it is preferable to use the generic localhost but this is not provided as a default. Otherwise, this should be a valid system (DNS?) name, or leave it blank to use the actual system name.

Instead of writing its printed output to your terminal, the server will create a log file at logs/server.log log,which you can tail to check the server's log messages using a command like tail -f logs/server.log in order to see the server logs from its handling of client requests.You can leave out the --host to have the server and client use the actual system name (usually equivalent to the result of the uname command on Linux).

Client Command Line

Now you can connect to the running server using the online recon client:

...