Beam Line PC Setup

Install CentOS7

Installed CERN CentOS 7 normally (see )

yum -y install !ImageMagick aspell aspell-en finger
chkconfig psacct on
service psacct start
yum install -y centos-release-scl
yum install -y devtoolset-4
yum install -y devtoolset-7

Install HSIO2 software with eudaq v1.7

see for more instruction

emacs -nw /etc/sysconfig/selinux
### SELINUX=permissive
echo 0 >> /etc/selinux/enable
systemctl disable firewalld

source /opt/rh/devtoolset-4/enable 
yum install -y python-paramiko python-scp 
yum install -y root root-physics
mkdir -p /opt/AtlasRceSdk/
cd /opt/AtlasRceSdk/
#wget -O - | sudo tar xfz -
curl  --socks5-hostname | tar xvfz

git clone --recurse-submodules
cd pixelrce/rce
source /opt/rh/devtoolset-4/enable
source scripts/ 
(cd build.rce ; make -j4  ) && ( cd; make -j4 )

Note : need to modify following code for eudaq v1.7

diff --git a/main/include/eudaq/DataSender.hh b/main/include/eudaq/DataSender.hh
index 6d5a5dc..05d65f4 100644
--- a/main/include/eudaq/DataSender.hh
+++ b/main/include/eudaq/DataSender.hh
@@ -2,11 +2,12 @@
 #define EUDAQ_INCLUDED_DataSender
 #include "eudaq/Platform.hh"
+#include <eudaq/TransportClient.hh>
 #include <string>
 namespace eudaq {
-  class TransportClient;
+  //  class TransportClient;
   class Event;
   class AidaPacket;
@@ -17,7 +18,7 @@ namespace eudaq {
     void Connect(const std::string &server);
     void SendEvent(const Event &);
     void SendPacket(const AidaPacket &);
+    void SendPacket(unsigned char *data,int size) {m_dataclient->SendPacket(data,size);}
     std::string m_type, m_name;
     TransportClient *m_dataclient;

Install Yarr software with eudaq v1.7

mkdir ~/work/yarr_rd53a
cd ~/work/yarr_rd53a 
git clone YARR-FW
git clone YARR
git checkout devel
source /opt/rh/devtoolset-7/enable
cd src/kernel
sudo make install 

sudo depmod
sudo rmmod specDriver
sudo modprobe  specDriver

cd ../
make -j4

# see
cd ~/work/yarr_rd53a 
git clone YarrEudaqProducer_20180704 
cd YarrEudaqProducer_20180704 
cmake3 .
make -j5

-- Koji Nakamura - 2018-07-07

Topic revision: r1 - 2018-07-07 - KojiNakamura
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback