From: Michael Traxler Date: Sat, 22 Jun 2013 12:59:35 +0000 (+0200) Subject: instruction for analysis packages, mt X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=baff54ca9e340a8ba352a615a788f0236e932b07;p=daqdocu.git instruction for analysis packages, mt --- diff --git a/trb3/main.pdf b/trb3/main.pdf deleted file mode 100644 index 759b4ae..0000000 Binary files a/trb3/main.pdf and /dev/null differ diff --git a/trb3/trb3qs_analysis.tex b/trb3/trb3qs_analysis.tex new file mode 100644 index 0000000..c247e54 --- /dev/null +++ b/trb3/trb3qs_analysis.tex @@ -0,0 +1,119 @@ +\section{Analysis Software} +\label{sec:analysis_software} + +Now you can control your DAQ system and take data. +To analyse the data different groups prepared software packages. +All tools need root as a prerequsite the root package from cern. +To install do the following: + +\begin{lstlisting}[label=,caption=Install ROOT] +sudo mkdir /opt/root/ +sudo chown hadaq.users /opt/root/ +cd /opt/root +wget ftp://root.cern.ch/root/root_v5.34.08.source.tar.gz +tar -xvf root_v5.34.08.source.tar.gz +cd root-v5-34-00-patches +./configure linuxx8664gcc +make -j8 +\end{lstlisting} +Needs quite some time to compile. +All the following tools need the root environment, so you have to set the +environment variables with: +\begin{lstlisting} +cd /opt/root/root-v5-34-00-patches/ +. bin/thisroot.sh +cd - +\end{lstlisting} + +\subsection{Mainz Unpacker} + +\begin{lstlisting}[label=,caption=Mainz Unpacker] + +cd ~/trbsoft +git clone https://github.com/neiser/mz-unpacker.git +cd mz-unpacker +make +\end{lstlisting} + +The most important point for using this software is the macro to start the +analysis. + +%\lstset { +%inputencoding=ansinew, +%extendedchars=true +%} + + +%\begin{lstlisting}[upquote=true,caption=Mainz Unpacker: Macro] +\begin{lstlisting}[caption=Mainz unpacker: Example Macro,breaklines=false] +void analyze_macro () { + gROOT->ProcessLine(".x BuildTrbUnpacker.cpp"); + TTrbUnpacker a("/tmp/xx13120123415.hld" , 0x8000, 0x8000, "", + "TDC_Addresses_test.txt", 0, kFALSE); + a.Decode(0); + + gROOT->ProcessLine(".x BuildTrbCalibration.cpp"); + TTrbCalibration b("/tmp/xx13120123415.hld.root",1,0,kFALSE); + b.DoTdcCalibration(); + + gROOT->ProcessLine(".x BuildTrbAnalysis.cpp"); + TTrbAnalysis c("/tmp/xx13120123415.hld.root_calibrated.root", + "TDC_Addresses_test.txt",kFALSE); + c.Analyse("/tmp/xx13120123415.hld.anal.root",0x200,0); + TBrowser* t = new TBrowser; +} +\end{lstlisting} + +\subsection{DABC and go4} + +This tool allows a live view to the data. This is *very* useful if you want to +find effects while tampering with your setup and see the time precision online. + +A manual how to use the software can be obtained here: + +\begin{lstlisting} +wget https://subversion.gsi.de/dabc/trb3/Readme.txt +\end{lstlisting} + +In the end the whole building process can be reduced to: + +\begin{lstlisting} +cd ~/trbsoft/ +svn co https://subversion.gsi.de/dabc/trb3 trb3 +cd trb3 +make -j4 +cd .. +\end{lstlisting} + +For DABC (data readout) one need a configuration file: + +\begin{lstlisting} +cd ~/trbsoft/trb3/dabc +wget https://subversion.gsi.de/dabc/trunk/plugins/hadaq/app/EventBuilder.xml +\end{lstlisting} +This config file has to be edited. + +Then the specific analysis part has to be installed. + +\begin{lstlisting} +cd ~/trbsoft/trb3 + +wget https://subversion.gsi.de/go4/app/stream/include/hadaq/ +wget https://subversion.gsi.de/go4/app/stream/framework/hadaq/ +wget https://subversion.gsi.de/go4/app/stream/applications/trb3tdc/first.C + +\end{lstlisting} + +Then continue as described in the Readme.txt. + + + +%\begin{figure}[!ht] +% \centering +% \includegraphics[width=1.0\textwidth]{trb3qs_img/CTS} +% \caption{Screenshot of the CTS window. In this example the Pulser \#0 with +%frequency 1~MHz is used as a trigger source.} +%\end{figure} + + +