Beam Line PC Setup
Install CentOS7
Installed CERN CentOS 7 normally (see
http://linux.web.cern.ch/linux/centos7/ )
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
https://confluence.slac.stanford.edu/display/Atlas/Test+Beam+Server+Box+Setup 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 - http://rceprojectportal.web.cern.ch/RceProjectPortal/software/SDK/V0.11.1.tar.gz | sudo tar xfz -
curl --socks5-hostname 127.0.0.1:1080 http://rceprojectportal.web.cern.ch/RceProjectPortal/software/SDK/V0.11.1.tar.gz | tar xvfz
git clone --recurse-submodules https://:@gitlab.cern.ch:8443/rce/pixelrce.git
cd pixelrce/rce
source /opt/rh/devtoolset-4/enable
source scripts/setup-dev.sh
(cd build.rce ; make -j4 ) && ( cd build.host; 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);}
private:
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 https://gitlab.cern.ch/YARR/YARR-FW.git YARR-FW
git clone https://gitlab.cern.ch/YARR/YARR.git YARR
cd YARR
git checkout devel
source /opt/rh/devtoolset-7/enable
cd src/kernel
make
sudo make install
sudo depmod
sudo rmmod specDriver
sudo modprobe specDriver
cd ../
make -j4
#####
# see https://gitlab.cern.ch/YARR/YarrEudaqProducer
cd ~/work/yarr_rd53a
git clone https://gitlab.cern.ch/YARR/YarrEudaqProducer.git YarrEudaqProducer_20180704
cd YarrEudaqProducer_20180704
cmake3 .
make -j5
--
Koji Nakamura - 2018-07-07