From: Michael Traxler Date: Sat, 22 Jun 2013 12:43:24 +0000 (+0200) Subject: instruction for analysis packages, mt X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=a440da21949e548c9f625d4bfd7a4a31305b093a;p=daqdocu.git instruction for analysis packages, mt --- diff --git a/trb3/main.pdf b/trb3/main.pdf index 4930931..759b4ae 100644 Binary files a/trb3/main.pdf and b/trb3/main.pdf differ diff --git a/trb3/main.tex b/trb3/main.tex index 66a61f5..341a9bc 100644 --- a/trb3/main.tex +++ b/trb3/main.tex @@ -91,6 +91,16 @@ \usepackage{remreset} \makeatletter\@removefromreset{footnote}{chapter}\makeatother +%\lstset{morecomment=[l]{//}, +%morecomment=[s]{/*}{*/}, +%morecomment=[n]{(*}{*)}, +%morestring=[b]'', +%morestring=[d]’} + + + +\lstset { language = bash, numbers = none, breaklines=true, stringstyle=\color{black}\ttfamily } + % \lstset{ language = bash, % numbers =left, % stepnumber =1, diff --git a/trb3/trb3qs_configuration.tex b/trb3/trb3qs_configuration.tex index 56028d4..c037e4c 100644 --- a/trb3/trb3qs_configuration.tex +++ b/trb3/trb3qs_configuration.tex @@ -26,7 +26,7 @@ servers. Check your system logs to see this requests. Here is example \begin{lstlisting}[label=dhcp-request,caption=Sample of DHCP request] # you must run following command as a root -\$ watch tail /var/log/messages # it may be different for your system, AYA +watch tail /var/log/messages # it may be different for your system, AYA # now restart your TRB3 and watch incoming messages, you should see something like this Nov 29 10:55:18 localhost dhcpd: DHCPDISCOVER from 02:00:be:d9:21:90 via eth0 # if there is another DHCP in the network then you will see its answer @@ -171,8 +171,8 @@ commands (see \verb+trbnetd+ command). Here is example how to start TRBnet and get IDs of all FPGAs on the TRB3 \begin{lstlisting}[label=,caption=Testing TRBnet for multi TRB3 system] -\$ TRB3_SERVER=trb033 trbnetd -i 1 -\$ DAQOPSERVER=localhost:1 trbcmd i 0xffff +TRB3_SERVER=trb033 trbnetd -i 1 +DAQOPSERVER=localhost:1 trbcmd i 0xffff 0xf3c0 0x7c0000039021d928 0x05 0xf306 0x9e00000390195f28 0x00 0xf306 0x5100000390195528 0x01 @@ -184,19 +184,19 @@ If we have several TRB3 and we don't know which TRBnets are assigned to them, we can easily find them with following commands \begin{lstlisting}[label=,caption=Identifying of TRBnet daemons] -\$ ps ax | grep trbnetd +ps ax | grep trbnetd 2556 ? S 1:15 trbnetd -i 33 21818 pts/21 S+ 0:00 /bin/grep trbnetd -\$ cat /proc/\$(pgrep -f "trbnetd -i 33")/environ | strings | grep TRB3 +cat /proc/\$(pgrep -f "trbnetd -i 33")/environ | strings | grep TRB3 TRB3_SERVER=trb033 \end{lstlisting} If you are using only one TRB3 then you can also export variables globally \begin{lstlisting}[label=lst:rawtrbnet,caption=Recommended way to run TRBnet for single TRB3 system] -\$ export TRB3_SERVER=trb033 -\$ trbnetd -i 1 -\$ export DAQOPSERVER=localhost:1 -\$ trbcmd i 0xffff +export TRB3_SERVER=trb033 +trbnetd -i 1 +export DAQOPSERVER=localhost:1 +trbcmd i 0xffff 0xf3c0 0x7c0000039021d928 0x05 0xf306 0x9e00000390195f28 0x00 0xf306 0x5100000390195528 0x01 @@ -227,11 +227,11 @@ system. The middle columns is the unique ID of the FPGA (temp sensor), the last column is the FPGA number (0x05 is the central FPGA). To set proper addresses execute following command \begin{lstlisting}[label=,caption=Updating addresses and serial numbers] -\$ ~/trbsoft/trb3/merge_serial_address.pl ~/trb3/base/serials_trb3.db ~/trb3/base/addresses_trb3.db > /dev/null +~/trbsoft/trb3/merge_serial_address.pl ~/trb3/base/serials_trb3.db ~/trb3/base/addresses_trb3.db > /dev/null \end{lstlisting} It will load proper configuration to your TRB3. After this we can check whether our changes made expected result. \begin{lstlisting}[label=,caption=Results of addresses changes] -\$ trbcmd i 0xffff +trbcmd i 0xffff 0x8000 0x7c0000039021d928 0x05 0x1000 0x9e00000390195f28 0x00 0x1001 0x5100000390195528 0x01 @@ -249,7 +249,7 @@ $\to$ AMT). After this your changes should be saved, for this commit changes to the repository (requires password). \begin{lstlisting}[label=,caption=Commiting changes to repository] -\$ cvs commit -m "Description of your changes" addresses_trb3.db +cvs commit -m "Description of your changes" addresses_trb3.db \end{lstlisting} \begin{warning} Be sure that everything is OK, your changes may break system of all diff --git a/trb3/trb3qs_daqstartup.tex b/trb3/trb3qs_daqstartup.tex index 2789c2a..6d1ee2c 100644 --- a/trb3/trb3qs_daqstartup.tex +++ b/trb3/trb3qs_daqstartup.tex @@ -32,8 +32,8 @@ disk location. What more, to allow them to communicate each other you need to set the same string key. So in the first terminal we run \begin{lstlisting}[label=,caption=Running Event Builder{,} part 1] -\$ cd ~ -\$ daq_evtbuild -m 1 -o /hldfiles -x te -I 1 --ebnum 1 -q 32 -S test -d file +cd ~ +daq_evtbuild -m 1 -o /hldfiles -x te -I 1 --ebnum 1 -q 32 -S test -d file # To generate small files with event builder you need to add these options to command above: # --resdownscale 20 --resnumevents 2000 --respath /shldfiles --ressizelimit 80 \end{lstlisting} @@ -56,7 +56,7 @@ files and should be adjusted to your system. When daq\_evtbuilder is working we need to run daq\_netmem to start capture data to file. For this run \begin{lstlisting}[label=,caption=Running Event Builder{,} part 2] -\$ daq_netmem -m 1 -i UDP:0.0.0.0:50000 -q 32 -d 1 -S test +daq_netmem -m 1 -i UDP:0.0.0.0:50000 -q 32 -d 1 -S test \end{lstlisting} where value for parameter \verb+-S+ should be the same like for diff --git a/trb3/trb3qs_part.tex b/trb3/trb3qs_part.tex index 55ad39b..1e9c116 100644 --- a/trb3/trb3qs_part.tex +++ b/trb3/trb3qs_part.tex @@ -20,6 +20,7 @@ Note that most set-ups use a openSUSE 64 Bit installation - on other distributio \input{trb3qs_software} \input{trb3qs_configuration} \input{trb3qs_daqstartup} +\input{trb3qs_analysis} \input{trb3qs_webinterface} %%% Local Variables: diff --git a/trb3/trb3qs_software.tex b/trb3/trb3qs_software.tex index e6498fa..7d26f42 100644 --- a/trb3/trb3qs_software.tex +++ b/trb3/trb3qs_software.tex @@ -13,14 +13,14 @@ containing software are listed in section \ref{sec:Repo:Software}. \begin{lstlisting}[label=,caption=Preparation of TRB3 tools] -$ cd ~/trbsoft/trbnettools -$ cat HOWTO_COMPILE.TXT # now you can see all posible ways to compile software +cd ~/trbsoft/trbnettools +cat HOWTO_COMPILE.TXT # now you can see all posible ways to compile software # we compile for TRB3 -$ make distclean -$ make TRB3=1 -$ sudo make TRB3=1 install # you need root to install the perl library part +make distclean +make TRB3=1 +sudo make TRB3=1 install # you need root to install the perl library part # now export your binaries to PATH -$ export PATH=${HOME}/trbnettools/bin:${PATH} +export PATH=${HOME}/trbnettools/bin:${PATH} # to make life easier add this line above to your profile to to env script \end{lstlisting} @@ -30,10 +30,10 @@ run the build script. At the end do not forget to export your new locations to % \begin{verbatim} \begin{lstlisting}[label=,caption=Preparation of Event Builder] -$ cd ~/ -$ git clone git://jspc29.x-matter.uni-frankfurt.de/projects/daqdata -$ ./make_script.pl -$ export PATH=${PATH}:${HOME}/daqdata/bin +cd ~/ +git clone git://jspc29.x-matter.uni-frankfurt.de/projects/daqdata +./make_script.pl +export PATH=${PATH}:${HOME}/daqdata/bin # this exports also can be added to profile or init script \end{lstlisting} % \end{verbatim} @@ -50,14 +50,14 @@ User can create his own or use already prepared user scripts. To get them he must run following \begin{lstlisting}[label=lst:trb3user,caption=User scripts preparation] -$ cd ~ -$ mkdir userscripts +cd ~ +mkdir userscripts \end{lstlisting} \begin{lstlisting}[label=,caption=~/userscripts/startup.sh - Variables to be adjusted] export TRB3_SERVER=trb046 -pkill -f ``trbnetd -i 11'' +pkill -f "trbnetd -i 11" $HOME/trbnettools/trbnetd/server/trbnetd -i 11 \end{lstlisting}