Utils in HepLib
There are several useful utils installed to the directory <INSTALL PATH>/bin.
heplib++ - HepLib g++
The basic uage:
heplib++ -o prog prog.cppThe content in this script
g++ -I'<INSTALL PATH>/include' -Wl,-rpath,. -Wl,-rpath,'<INSTALL PATH>/lib' -L'<INSTALL PATH>/lib' -lHepLib -lcln -lginac -lMinuit2 -lcubaq -lqhullstatic -lquadmath $@ -lHepLib -lcln -lginac -lMinuit2 -lcubaq -lqhullstatic -lquadmathheplib-config - parameters
Genernal information of heplib-config from heplib-config --help
Usage: heplib-config [--prefix|--cflags|--ldflags|--help]heplib-config --prefixto get the<INSTALL PATH>heplib-config --cflagsto get the-I’<INSTALL PATH>/include’heplib-config --ldflagsto get the-Wl,-rpath,. -Wl,-rpath,’<INSTALL PATH>/lib’ -L’<INSTALL PATH>/lib’
sc - Server / Clients
Genernal information of sc from sc --help
A simple Server/Client, bypass with [i].log
Supported Options:
--total: total elements @server.
--port: server port @server/@client.
--server: server ip or hostname @client.
--command: command with [i] replaced @client.
--round: round to be cycled @server.One can run the following command on the master node
One will get the message as follows:
The server is ready to dispatch item (from 0 to 99) to the connected slave node.
Now one can run the following command on each slave node
one will see the slave node will repleatly get the item from the server, and exceute the command echo [i], note that [i] will replaced by the actual index (form 0 to 99).
Note that to prevent the command to run multiple times on the same [i], one can generate a [i].log from the command, e.g.,
sc will skip the item [i] when there is a file named [i].log.
Last updated