TRB3 Centos-7 instructions: Difference between revisions
Line 3: | Line 3: | ||
See [https://www.triumf.info/wiki/DAQwiki/index.php/GSI_TRB3 main TRB3 document] for introductory material. | See [https://www.triumf.info/wiki/DAQwiki/index.php/GSI_TRB3 main TRB3 document] for introductory material. | ||
== Centos-7 Setup == | == Centos-7 Software Setup == | ||
The TRB3 software and associated analysis packages are developed on newer operating systems than Centos-7. So a certain amount of work is needed to get the software to work on Centos-7. | The TRB3 software and associated analysis packages are developed on newer operating systems than Centos-7 (namely Opensuse). So a certain amount of work is needed to get the software to work on Centos-7. | ||
1) I started by copying over the software in trbsoft from an existing installation. | 1) I started by copying over the software in trbsoft from an existing installation. |
Revision as of 10:43, 9 April 2018
Introduction
See main TRB3 document for introductory material.
Centos-7 Software Setup
The TRB3 software and associated analysis packages are developed on newer operating systems than Centos-7 (namely Opensuse). So a certain amount of work is needed to get the software to work on Centos-7.
1) I started by copying over the software in trbsoft from an existing installation.
scp trbsoft_backup.tar.gz trb3@ladd00:/data0/trb3/.
2) The main problem is with the TRB3 code requiring a newer version of perl. I used perlbrew to setup a newer version of perl than Centos-7 supports:
Following the instructions on website:
source ~/perl5/perlbrew/etc/bashrc perlbrew init perlbrew install perl-5.24.0
and then add this line to login script
rm -f /home/trb3/.perlbrew/init source ~/perl5/perlbrew/etc/bashrc perlbrew switch perl-5.24.0
3) Rebuild libtrbnet with different perl
cd ~/trbsoft/trbnettools/libtrbnet_perl perl Makefile.PL cd /home/trb3/trbsoft/trbnettools make TRB3=1 clean make TRB3=1 make TRB3=1 install <pre> 4) Modify <pre> ~/trbsoft/daqtools/merge_serial_address.pl
to use the perlbrew version of perl, rather than the system default.
5) Rebuild DABC
Make sure you have ROOT (ie ROOTSYS) setup properly
svn co https://subversion.gsi.de/dabc/trb3 trb3 cd trb3 make
This seems to build dabc and stream successfully. go4 doesn't compile cleanly, but this doesn't matter for the MIDAS frontend readout.
TRB3 MIDAS implementation
We have a working MIDAS readout of the TRB3 TDC data. Currently this readout uses a lot of the original GSI tools for setting up the TRB3 before the readout can start. At this time you need to do steps 1 and 2 described in "Start up instructions" in order to setup the TRB3 before starting the MIDAS frontend. Eventually we will try to remove as many as possible of the original GSI tools.
MIDAS frontend code is available here:
https://bitbucket.org/ttriumfdaq/trb3_frontend
The MIDAS frontend is setup to read events from the DABC event builder, which makes the events available on port 6789. You can see a running MIDAS TRB3 frontend here:
(midas/midas) I added simple decoder and histograming classes to rootana. Currently I have only implemented the crude TDC calibration into the TRB3 bank decoders. In the long run we may want to integrate the fine TDC calibration directly into the frontend. You can see the TDC difference between a pulser split into two channels here
Look for the histogram TRB3_diff_0_3.