--- /dev/null
+#!/bin/bash
+
+# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+
+ssh -X hadaq@lxhadesdaq "
+ xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+ echo "Starting Eventbuilders with one BNET builder node"
+ cd ~/trbsoft/hadesdaq/evtbuild/
+ ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 1
+ sleep 2
+ '
+ "
+
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted using 1 BNET builder node" "EB" &
+
--- /dev/null
+#!/bin/bash
+
+# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+
+ssh -X hadaq@lxhadesdaq "
+ xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+ echo "Starting Eventbuilders with 3 BNET builder nodes"
+ cd ~/trbsoft/hadesdaq/evtbuild/
+ ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 3
+ sleep 2
+ '
+ "
+
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted using 3 BNET builder nodes" "EB" &
+
--- /dev/null
+#!/bin/bash
+
+# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+
+ssh -X hadaq@lxhadesdaq "
+ xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+ echo "Starting Eventbuilders with 6 BNET builder nodes"
+ cd ~/trbsoft/hadesdaq/evtbuild/
+ ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 6
+ sleep 2
+ '
+ "
+
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted using 6 BNET builder nodes" "EB" &
+
--- /dev/null
+#!/bin/bash
+
+# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+
+ssh -X hadaq@lxhadesdaq "
+ xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+ echo "Starting Eventbuilders with 9 BNET builder nodes"
+ cd ~/trbsoft/hadesdaq/evtbuild/
+ ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 9
+ sleep 2
+ '
+ "
+
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted using 9 BNET builder nodes" "EB" &
+
# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with file prefix be"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p be
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=be&oninit=10\"
+# echo set prefix te on BNET master controller
+# sleep 2
+# '
+# "
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with file prefix be"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p be
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=be&oninit=10\"
- echo set prefix te on BNET master controller
- sleep 2
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing beam files." "EB" &
+ echo "Setting file prefix be"
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=be&oninit=10\"
+ echo set prefix te on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing beam files." "EB" &
# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilder , writing NO FILES"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix='--'&oninit=10\"
+#
+# '
+# "
+# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. NO FILES are being written" "EB" &
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilder , writing NO FILES"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d off -p '--'
- '
-"
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. NO FILES are being written" "EB" &
+ echo "Setting file prefix be"
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix='--'&oninit=10\"
+ echo set prefix te on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing NO FILES." "EB" &
# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with prefix te"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=te&oninit=10\"
+# echo set prefix te on BNET master controller
+# sleep 2
+# '
+# "
+#
+# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing test files" "EB" &
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with prefix te"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=te&oninit=10\"
- echo set prefix te on BNET master controller
- sleep 2
- '
- "
-
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing test files" "EB" &
+ echo "Setting file prefix be"
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=te&oninit=10\"
+ echo set prefix te on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing test files." "EB" &
# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with prefix co"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p co
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=co&oninit=10\"
+# echo set prefix CO on BNET master controller
+# sleep 2
+#
+# '
+# "
+#/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing Cosmics Files" "EB" &
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with prefix co"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p co
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=co&oninit=10\"
- echo set prefix CO on BNET master controller
- sleep 2
-
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing Cosmics Files" "EB" &
+ echo "Setting file prefix co"
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=co&oninit=10\"
+ echo set prefix te on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing Cosmics Files." "EB" &
# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with prefix tc"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p tc
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=tc&oninit=10\"
+# echo set prefix TC on BNET master controller
+# sleep 2
+# '
+# "
+# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing TDC-Calibration Files" "EB" &
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with prefix tc"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p tc
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=tc&oninit=10\"
- echo set prefix TC on BNET master controller
- sleep 2
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing TDC-Calibration Files" "EB" &
+ echo Setting file prefix tc
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=tc&oninit=10\"
+ echo set prefix tc on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing TDC-Calibration Files." "EB" &
# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with prefix ri"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p ri
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=ri&oninit=10\"
+# echo set prefix RI on BNET master controller
+# sleep 2
+# '
+# "
+# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing RICH Files" "EB" &
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with prefix ri"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p ri
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=ri&oninit=10\"
- echo set prefix RI on BNET master controller
- sleep 2
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing RICH Files" "EB" &
+ echo "Setting file prefix ri"
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=te&oninit=10\"
+ echo set prefix ri on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing RICH files." "EB" &
# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with prefix ec"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p ec
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=ec&oninit=10\"
+# echo set prefix EC on BNET master controller
+# sleep 2
+# '
+# "
+# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing ECAL Files" "EB" &
+
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with prefix ec"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p ec
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=ec&oninit=10\"
- echo set prefix EC on BNET master controller
- sleep 2
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing ECAL Files" "EB" &
+ echo "Setting file prefix ec"
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=ec&oninit=10\"
+ echo set prefix ec on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing ECAL files." "EB" &
#!/bin/bash
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with prefix st"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p st
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=st&oninit=10\"
+# echo set prefix ST on BNET master controller
+# sleep 2
+# '
+# "
+# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing START Files" "EB"&
+
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with prefix st"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p st
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=st&oninit=10\"
- echo set prefix ST on BNET master controller
- sleep 2
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing START Files" "EB"&
+ echo "Setting file prefix st"
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=st&oninit=10\"
+ echo set prefix st on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing START files." "EB" &
#!/bin/bash
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with prefix md"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p md
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=md&oninit=10\"
+# echo set prefix MD on BNET master controller
+# sleep 2
+# '
+# "
+# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing MDC Files" "EB"&
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with prefix md"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p md
+ echo "Setting file prefix md"
/usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=md&oninit=10\"
- echo set prefix MD on BNET master controller
- sleep 2
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing MDC Files" "EB"&
+ echo set prefix te on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing MDC files." "EB" &
# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with prefix sh"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p sh
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=sh&oninit=10\"
+# echo set prefix SH on BNET master controller
+# sleep 2
+# '
+# "
+# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing Shower sh files" "EB" &
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with prefix sh"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p sh
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=sh&oninit=10\"
- echo set prefix SH on BNET master controller
- sleep 2
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing Shower sh files" "EB" &
+ echo "Setting file prefix sh"
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=sh&oninit=10\"
+ echo set prefix sh on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing shower files." "EB" &
# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+# ssh -X hadaq@lxhadesdaq "
+# xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+# echo "Starting Eventbuilders with prefix pt"
+# cd ~/trbsoft/hadesdaq/evtbuild/
+# ./start_eb_gbe.pl -e restart -n 1-16 -d on -p pt
+# /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=pt&oninit=10\"
+# echo set prefix PT on BNET master controller
+# sleep 2
+#
+# '
+# "
+# /home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing PionTracker pt files" "EB" &
+
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with prefix pt"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p pt
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=pt&oninit=10\"
- echo set prefix PT on BNET master controller
- sleep 2
-
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been started. Writing PionTracker pt files" "EB" &
+ echo "Setting file prefix pt"
+ /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=pt&oninit=10\"
+ echo set prefix pt on BNET master controller
+ sleep 2
+ '
+ "
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing PionTracker pt files." "EB" &
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 1500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch to DABC mode (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#DABC: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
-DABC: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-
-# Log the output of EB processes (log=1/dev-null=0)
-EB_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-#RFIO_PATH: rfiodaq:gstore:/hadesmay14raw/prod01
-RFIO_PATH: /hadesmay14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre/hera
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/may14
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 events
-RFIO_iMaxFile: 0
-RFIO_iPathConvention: 0
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 20
-RESNUMEVENTS: 2000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 1500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch to DABC mode (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#DABC: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
-#DABC: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-DABC: 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
-
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-# Log the output of EB processes (log=1/dev-null=0)
-EB_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-#RFIO_PATH: rfiodaq:gstore:/hadesmay14raw/prod01
-RFIO_PATH: /hadesmay14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre/hera
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/may14
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 events
-RFIO_iMaxFile: 0
-RFIO_iPathConvention: 0
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-G: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 2
-RESNUMEVENTS: 20000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch to DABC mode (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#DABC: 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
-#DABC: 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
-#DABC: 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-DABC: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-# Log the output of EB processes (log=1/dev-null=0) (at lxhadeb0j:/tmp/log_eb_i.txt and log_nm_i.txt)
-EB_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# switch on extended evtbuild debug output for logfile (at lxhadeb0j:/tmp/log_eb_i.txt)
-EB_DEBUG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-RFIO_PATH: /hadesaug14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre/hera
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/raw/aug14/default
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 files
-RFIO_iMaxFile: 0
-RFIO_iPathConvention: 0
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 20
-RESNUMEVENTS: 2000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 1500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-# Log the output of EB processes (log=1/dev-null=0)
-EB_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-RFIO_PATH: rfiodaq:gstore:/hadesmay14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/may14
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 events
-RFIO_iMaxFile: 0
-RFIO_iPathConvention: 0
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 20
-RESNUMEVENTS: 2000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 1500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch to DABC mode (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#DABC: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
-DABC: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-# Log the output of EB processes (log=1/dev-null=0)
-EB_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-#RFIO_PATH: rfiodaq:gstore:/hadesmay14raw/prod01
-RFIO_PATH: /hadesmay14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre/hera
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/may14
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 events
-RFIO_iMaxFile: 0
-RFIO_iPathConvention: 0
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-G: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 20
-RESNUMEVENTS: 2000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 1500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch to DABC mode (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-DABC: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
-#DABC: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-# Log the output of EB processes (log=1/dev-null=0)
-EB_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-#RFIO_PATH: rfiodaq:gstore:/hadesmay14raw/prod01
-RFIO_PATH: /hadesmay14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre/hera
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/may14/default
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 events
-RFIO_iMaxFile: 100
-RFIO_iPathConvention: 1
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 20
-RESNUMEVENTS: 2000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch to DABC mode (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#DABC: 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
-#DABC: 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
-#DABC: 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-DABC: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-# Log the output of EB processes (log=1/dev-null=0) (at lxhadeb0j:/tmp/log_eb_i.txt and log_nm_i.txt)
-EB_LOG: 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# switch on extended evtbuild debug output for logfile (at lxhadeb0j:/tmp/log_eb_i.txt)
-EB_DEBUG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-RFIO_PATH: /hadesnov14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre/hera
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/raw/nov14/default
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 files
-RFIO_iMaxFile: 0
-RFIO_iPathConvention: 0
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 20
-RESNUMEVENTS: 2000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch to DABC mode (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#DABC: 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
-#DABC: 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
-#DABC: 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-DABC: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-# Log the output of EB processes (log=1/dev-null=0) (at lxhadeb0j:/tmp/log_eb_i.txt and log_nm_i.txt)
-EB_LOG: 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# switch on extended evtbuild debug output for logfile (at lxhadeb0j:/tmp/log_eb_i.txt)
-EB_DEBUG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-RFIO_PATH: /hadesnov14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre/hera
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/raw/nov14/default
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 files
-RFIO_iMaxFile: 0
-RFIO_iPathConvention: 0
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 20
-RESNUMEVENTS: 2000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch to DABC mode (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#DABC: 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
-#DABC: 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
-#DABC: 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-DABC: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#DABC: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-# Log the output of EB processes (log=1/dev-null=0) (at lxhadeb0j:/tmp/log_eb_i.txt and log_nm_i.txt)
-EB_LOG: 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# switch on extended evtbuild debug output for logfile (at lxhadeb0j:/tmp/log_eb_i.txt)
-EB_DEBUG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-RFIO_PATH: /hadesnov14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre/hera
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/raw/nov14/default
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 files
-RFIO_iMaxFile: 0
-RFIO_iPathConvention: 0
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 20
-RESNUMEVENTS: 2000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
+++ /dev/null
-#
-# #Install: Run CPAN and install
-# perl -MCPAN -e shell
-#
-# #At CPAN shell prompt
-# install Config::Std
-
-#----------------------------------------------
-[Main]
-
-PORT_BASE: 11000
-WMARK: 60000
-
-EB_IP: 192.168.100.12
-EB_OUTDIR: /data/lxhadesdaq/tof_test
-
-# file/null
-EB_OUTDEV: null
-
-EB_EXT: te
-
-# file size in MBytes
-EB_FSIZE: 1500
-
-EB_EVTID: 1
-SHMEMNAME: test
-
-QUEUESIZE: 4000000
-
-# enable online server: --online
-# disable online server:
-ONLINESERVER: --online
-
-# buffer sizes for evtbuild and netmem (MB)
-BUF_SIZE_LOW: 8
-BUF_SIZE_MID: 16
-BUF_SIZE_HIGH: 32
-
-#----------------------------------------------
-[Parallel]
-
-# EB IPS NOT USED IF CONF_FROM_DB
-
-EB_IP_1: 192.168.100.15
-EB_IP_2: 192.168.100.12
-EB_IP_3: 192.168.100.13
-EB_IP_4: 192.168.100.14
-EB_IP_5: 192.168.100.11
-
-# Number of EB processes per server NOT USED IF CONF_FROM_DB
-EB_NUM_1: 1
-EB_NUM_2: 1
-EB_NUM_3: 1
-EB_NUM_4: 1
-EB_NUM_5: 1
-
-BASE_PORT: 20100
-SHIFT_PORT: 100
-NUM_OF_SOURCES: 1
-
-QUEUESIZE: 32
-
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
-EB_LIST: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# Switch to DABC mode (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-#DABC: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-DABC: 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
-
-
-# Switch multiple disk ctrl via daq_disks (1=on,0=off)
-MULTIDISK: 1
-WRITE_TO_DISK: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#WRITE_TO_DISK: 1 1 1 1 0 1 1 1 1 0 1 1 1 1 0 0
-
-
-# Log the output of EB processes (log=1/dev-null=0)
-EB_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-NM_LOG: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# Switch (on=1/off=0) EPICS Control of EB processes
-# IOC Master is by default the IOC for EB process 1
-EPICS_CTRL: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-
-# RFIO switch (on=1/off=0) for 16 EB processes
-# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-RFIO: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
-#RFIO: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-
-# RFIO default options for all EB processes
-#RFIO_PATH: rfiodaq:gstore:/hadesmay14raw/prod01
-RFIO_PATH: /hadesmay14raw/prod01
-RFIO_pcOptions: wb
-#### if LUSTRE fails, switch the following RFIO_iCopyMode to 0: #####
-# 0 no copy to Lustre/hera
-# 1 copy to Lustre after the file is in the write cash,
-# 2 copy in parallel to Lustre
-RFIO_iCopyMode: 1
-RFIO_pcCopyPath: /hera/hades/may14
-RFIO_iCopyFraction: 1
-# Maxfile 100, pathconvention 1 to create new subfolder on lustre after 100 events
-RFIO_iMaxFile: 0
-RFIO_iPathConvention: 0
-
-# Configure EBs based on info in DB files (1=yes,0=no)
-CONF_FROM_DB: 1
-
-# Table with active data sources
-
-DATA_SOURCES: ../main/data_sources.db
-GBE_CONF: ../hub/register_configgbe_ip.db
-CTS_CONF: ../cts/register_cts.db
-
-
-#
-# The following is the individual configuration of EBs
-#
-#----------------------------------------------
-[EB_PROC_1]
-
-OUTDIR: /data01/data/
-MULTIDISK: 1
-#RESDOWNSCALE: 20
-#RESNUMEVENTS: 2000
-#RESPATH: /data22/data/res
-#RESPATH: /data.local1/data/res
-#RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#----------------------------------------------
-[EB_PROC_2]
-
-ONLINESERVER: on
-
-OUTDIR: /data10/data/
-
-RESDOWNSCALE: 20
-RESNUMEVENTS: 2000
-RESPATH: /data.local1/data/res
-RESSIZELIMIT: 80
-
-#RFIO_pcFile:
-#RFIO_pcOptions:
-
-#MULTIDISK: 18
-
-#----------------------------------------------
-[EB_PROC_3]
-
-OUTDIR: /data10/data/
-
-#----------------------------------------------
-[EB_PROC_4]
-
-OUTDIR: /data10/data/
-MULTIDISK: 5
-
-
-#----------------------------------------------
-[EB_PROC_5]
-
-OUTDIR: /data02/data/
-MULTIDISK: 2
-#----------------------------------------------
-[EB_PROC_6]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_7]
-
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_8]
-OUTDIR: /data11/data/
-
-#----------------------------------------------
-[EB_PROC_9]
-
-OUTDIR: /data03/data/
-MULTIDISK: 3
-#----------------------------------------------
-[EB_PROC_10]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_11]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_12]
-
-OUTDIR: /data12/data/
-
-#----------------------------------------------
-[EB_PROC_13]
-
-OUTDIR: /data04/data/
-MULTIDISK: 4
-#----------------------------------------------
-[EB_PROC_14]
-
-OUTDIR: /data13/data/
-
-#----------------------------------------------
-[EB_PROC_15]
-
-OUTDIR: /data.local1/data
-
-#----------------------------------------------
-[EB_PROC_16]
-
-OUTDIR: /data.local1/data
# the following list configures BNET for each EB SERVER node:
# this will always imply DABC eventbuilder software.
# BNETINP gives number of input processes per server node
-# BNETBLD gives number of builder processes per node
+# BNETBLD gives maximum number of builder processes per node
# set BNETINP to 0 for conventional EB setup
# EB server 0 1 2 3
#BNETINP: 0 0 0 0
BNETINP: 1 1 1 1
-#BNETINP: 2 2 2 2
-#BNETBLD: 2 2 2 2
-#BNETBLD: 3 3 3 3
-BNETBLD: 1 1 1 0
+# JAM18 - following is default setup for the control button selection:
+BNETBLD: 3 3 3 0
+
+## below not enough ltsm connections
+#BNETBLD: 4 4 4 0
+
+# JAM - do not modify this anymore, please use control button "Restart BNET 1 Builder" instead
+#BNETBLD: 1 0 0 0
+##########################
# EB Nr 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#EB_LIST: 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
# LTSM default options for all EB processes
-LTSM_PATH: /lustre/hebe/hades/raw/jan18test/default/tsm
+LTSM_PATH: /lustre/hebe/hades/raw/jul18/default/tsm
#LTSM_Server: lxltsm01-tsm-server
LTSM_Server: lxltsm01
#LTSM_Node: LTSM_TEST01
#LTSM_Passwd: LTSM_TEST01
-LTSM_Node: hadestest
-LTSM_Passwd: hadestest
-
+#LTSM_Node: hadestest
+#LTSM_Passwd: hadestest
+LTSM_Node: hades
+LTSM_Passwd: wDhgcvFF7
LTSM_Filesystem: /lustre/hebe
+++ /dev/null
-#!/usr/bin/perl -w
-
-use English;
-use strict;
-use Getopt::Long;
-use Data::Dumper;
-use Config::Std;
-use FileHandle;
-use List::MoreUtils qw(any apply first_index);
-use File::Basename;
-use Cwd;
-
-#- Copy all the arguments because
-# later on the @ARGV becomes empty
-my @arg_list = @ARGV;
-
-#- the command line option flags
-my $opt_help = 0;
-my $opt_ebconf = "/home/hadaq/trbsoft/hadesdaq/evtbuild/eb.conf.withdabc";
-my $opt_ioc = "";
-my $opt_test = 0;
-my $opt_verb = 0;
-my $opt_eb = "";
-my @opt_ebrange = ();
-my $opt_rfio = 'undef';
-my $opt_disk = 'undef';
-my $opt_online = 'undef';
-my $opt_prefix;
-
-GetOptions ('h|help' => \$opt_help,
- 'c|conf=s' => \$opt_ebconf,
- 'e|eb=s' => \$opt_eb,
- 'i|ioc=s' => \$opt_ioc,
- 't|test' => \$opt_test,
- 'n|nr=s' => \@opt_ebrange,
- 'd|disk=s' => \$opt_disk,
- 'r|rfio=s' => \$opt_rfio,
- 'p|prefix=s' => \$opt_prefix,
- 'o|online=s' => \$opt_online,
- 'v|verb' => \$opt_verb);
-
-if( $opt_help ) {
- &help();
- exit(0);
-}
-
-#- List of EBs provided via command line options
-my $active_EBs_aref = &setArgs();
-
-#- Hash with status of CPU cores of EBs (used for 'taskset')
-my %EB_CPU_status;
-my $EB_CPU_status_href = \%EB_CPU_status;
-&init_CPU_status($EB_CPU_status_href);
-
-my $expect_ioc_script = "/tmp/ioc_exit.exp";
-my $log_path = "/tmp/log";
-
-my %temp_args;
-my $temp_args_href = \%temp_args;
-read_config $opt_ebconf => %$temp_args_href;
-#print Dumper $temp_args_href;
-#exit;
-
-my $numOfEBProcs = 0;
-my %EB_Args;
-my $EB_Args_href = \%EB_Args;
-
-my @EB_IP_list;
-
-&getEBArgs( $EB_Args_href );
-
-if($opt_ioc eq "start"){
- &killIOC();
- &startIOC();
-}
-elsif($opt_ioc eq "stop"){
- &killIOC();
-}
-elsif($opt_eb eq "start"){
- &writeArgs2file();
- &startEvtBuilders();
-}
-elsif($opt_eb eq "stop"){
- &stopEvtBuilders();
-}
-elsif($opt_eb eq "restart"){
- &stopEvtBuilders();
- sleep 1;
- &writeArgs2file();
- &startEvtBuilders();
-}
-
-exit(0);
-
-################### END OF MAIN ####################
-
-sub help()
-{
- print "\n";
- print << 'EOF';
-start_eb_gbe.pl
-
- This script starts parallel Event Building processes.
- The script also starts IOC processes for the run control.
-
-Usage:
-
- Command line: start_eb_gbe.pl
- [-h|--help] : Show this help.
- [-c|--conf <path/name>] : Path to the config file (default: ../evtbuild/eb.conf).
- [-e|--eb <start|stop|restart>] : Start or stop Event Builders (default: start).
- [-i|--ioc <start|stop>] : Start or stop IOCs (default: start).
- [-n|--nr <rangeOfEBs>] : Range of numbers of Event Bulders to be started.
- [-d|--disk <on|off>] : Switch writing to disk on|off.
- [-r|--rfio <on|off>] : Switch writing to tape on|off.
- [-p|--prefix <prefix>] : Prefix of hld file.
- [-o|--online <on|off>] : Switch RPC server on|off.
- [-t|--test] : Test without execution.
- [-v|--verb] : More verbouse.
-
-Examples:
-
- Start 6 EBs with the numbers 1,2,3,5,7 and prefix 'md':
- start_eb_gbe.pl -e start -n 1-3 -n 5 -n 7 -p md
-
- Start EBs and enable writing to disks but disable writing to tape for all EBs:
- start_eb_gbe.pl -e start --disk on --rfio off
-
-EOF
-}
-
-sub init_CPU_status()
-{
- my ($EB_CPU_status_href) = @_;
-
- # CPU affinity with 'taskset'
- #
- # CPU dec bin hex
- # 0 1 1
- # 1 10 2
- # 2 100 4
- # 3 1000 8
- # 4 10000 10
-
- #cores 0/1 reserved for system 02-05
- #cores 2/3 reserved for interrupts on 02-05
-
-#lxhadeb01 is gone
-# foreach my $core (0..7){
-# if($core == 1){
-# $EB_CPU_status_href->{'192.168.100.11'}->{$core} = "res"; #reserved
-# }
-# else{
-# $EB_CPU_status_href->{'192.168.100.11'}->{$core} = "free";
-# }
-# }
-
-#JAM adjust this to actual affinities for eth0 settings TODO
-
- foreach my $core (0..11){
- if($core < 4 ){
- $EB_CPU_status_href->{'192.168.100.12'}->{$core} = "res"; #reserved
- $EB_CPU_status_href->{'192.168.100.13'}->{$core} = "res"; #reserved
- $EB_CPU_status_href->{'192.168.100.14'}->{$core} = "res"; #reserved
- }
- else{
- $EB_CPU_status_href->{'192.168.100.12'}->{$core} = "free";
- $EB_CPU_status_href->{'192.168.100.13'}->{$core} = "free";
- $EB_CPU_status_href->{'192.168.100.14'}->{$core} = "free";
- }
- }
-
- foreach my $core (0..23){
- if($core < 4 ){
- $EB_CPU_status_href->{'192.168.100.15'}->{$core} = "res"; #reserved
- }
- else{
- $EB_CPU_status_href->{'192.168.100.15'}->{$core} = "free";
- }
- }
-
-}
-
-sub getCoreNr()
-{
- my ($ip) = @_;
-
- my $core_nr;
-
- foreach my $eb_ip (sort keys %$EB_CPU_status_href){
- next unless($ip eq $eb_ip);
-
- foreach my $core ( sort {$a <=> $b} keys %{$EB_CPU_status_href->{$eb_ip}} ){
- my $core_status = $EB_CPU_status_href->{$eb_ip}->{$core};
-
- next unless(lc($core_status) eq "free");
-
- $core_nr = $core;
- $EB_CPU_status_href->{$eb_ip}->{$core} = "busy";
- last;
- }
- }
-
- #- If no free cores left - take reserved cores
- unless( defined $core_nr ){
- foreach my $eb_ip (sort keys %$EB_CPU_status_href){
- next unless($ip eq $eb_ip);
-
- foreach my $core ( sort {$a <=> $b} keys %{$EB_CPU_status_href->{$eb_ip}} ){
- my $core_status = $EB_CPU_status_href->{$eb_ip}->{$core};
-
- if(lc($core_status) eq "res"){
- $core_nr = $core;
- $EB_CPU_status_href->{$eb_ip}->{$core} = "busy";
- last;
- }
- }
- }
- }
-
- unless( defined $core_nr ){
- print "No free cores left on CPU $ip. Exit.\n";
- exit(0);
- }
-
- return $core_nr;
-}
-
-sub setArgs()
-{
- my @active_EBs;
-
- if(@opt_ebrange){
- foreach my $range (@opt_ebrange){
- if($range =~ /(\d+)-(\d+)/){
- my $max = $1;
- my $min = $2;
-
- foreach my $eb ($max..$min){
- #- 1 must be subtracted to match
- # EB numbering in the register_configgbe_ip.db
- # which starts from zero
- &checkEB_nr($eb);
- push(@active_EBs, $eb-1);
- }
- }
- elsif($range =~ /(\d+)/){
- &checkEB_nr($1);
- push(@active_EBs, $1-1);
- }
- }
- }
-
- return \@active_EBs;
-}
-
-sub checkEB_nr()
-{
- my ($eb_nr) = @_;
-
- if( $eb_nr < 1 || $eb_nr > 16 ){
- print "ERROR: EB number should be in the range 1-16. Exit.";
- exit(0);
- }
-}
-
-sub getEBArgs()
-{
- my ($href) = @_;
-
- my $prefix = $temp_args_href->{'Main'}->{'EB_EXT'};
- $prefix = $opt_prefix if( defined $opt_prefix );
- my $filesize = $temp_args_href->{'Main'}->{'EB_FSIZE'};
-
- my $base_port = $temp_args_href->{'Parallel'}->{'BASE_PORT'};
- my $shift_port = $temp_args_href->{'Parallel'}->{'SHIFT_PORT'};
- my $source_num = $temp_args_href->{'Parallel'}->{'NUM_OF_SOURCES'};
- my $queuesize = $temp_args_href->{'Parallel'}->{'QUEUESIZE'};
-
- my $multidisk = $temp_args_href->{'Parallel'}->{'MULTIDISK'};
-
- #- Number of EB process
- my $ebproc = 0;
-
- #- List of BEs
- my $listOfEBs = $temp_args_href->{'Parallel'}->{'EB_LIST'};
- my @eb_list = split(/\s+/, $listOfEBs);
-
- #- DABC mode selection
- my $listOfDABC = $temp_args_href->{'Parallel'}->{'DABC'};
- my @dabc_list = split(/\s+/, $listOfDABC);
-
-
- #- Default RFIO settings
- my $rfio = $temp_args_href->{'Parallel'}->{'RFIO'};
- my $rfio_path = $temp_args_href->{'Parallel'}->{'RFIO_PATH'};
- my $rfio_pcOptions = $temp_args_href->{'Parallel'}->{'RFIO_pcOptions'};
- my $rfio_iCopyMode = $temp_args_href->{'Parallel'}->{'RFIO_iCopyMode'};
- my $rfio_pcCopyPath = $temp_args_href->{'Parallel'}->{'RFIO_pcCopyPath'};
- my $rfio_iCopyFrac = $temp_args_href->{'Parallel'}->{'RFIO_iCopyFraction'};
- my $rfio_iMaxFile = $temp_args_href->{'Parallel'}->{'RFIO_iMaxFile'};
- my $rfio_iPathConv = $temp_args_href->{'Parallel'}->{'RFIO_iPathConvention'};
-
- my @rfio_list = split(/\s+/, $rfio);
-
- #- EPICS Controled
- my $epics_ctrl = $temp_args_href->{'Parallel'}->{'EPICS_CTRL'};
-
- my @epics_list = split(/\s+/, $epics_ctrl);
-
- #- Logging the output of EBs
- my $eb_log = $temp_args_href->{'Parallel'}->{'EB_LOG'};
- my $nm_log = $temp_args_href->{'Parallel'}->{'NM_LOG'};
- my @eblog_list = split(/\s+/, $eb_log);
- my @nmlog_list = split(/\s+/, $nm_log);
-
- #- Write to disk
- my $write2disk = $temp_args_href->{'Parallel'}->{'WRITE_TO_DISK'};
- my @write2disk_list = split(/\s+/, $write2disk);
-
- #--- Read GbE configuration
- my %eb_ids_gbe_hash;
- my $eb_ids_gbe_href = \%eb_ids_gbe_hash;
-
- &getGbEconfig($eb_ids_gbe_href);
-
- #--- Loop over all EB processes
- #print Dumper $eb_ids_gbe_href;
- #exit;
- foreach my $ebproc ( sort keys %{$eb_ids_gbe_href} ){
-
- #- If there was a list of EBs provided via command line options
- # go to the next $ebproc if the current $ebproc is not in this list.
- #print "active EBs:\n";
- #print Dumper $active_EBs_aref;
-
- if(@$active_EBs_aref){
- next unless( any {$_ == $ebproc} @$active_EBs_aref ); #from command line args
- }
- else{
- next unless( $eb_list[$ebproc] ); #from eb.conf
- }
-
-
- my $eb_ip = $eb_ids_gbe_href->{$ebproc}->{'IP'};
-
- #- Save IP needed by other function to stop EBs.
- push(@EB_IP_list, $eb_ip) unless( any {$_ eq $eb_ip} @EB_IP_list );
-
- #- Some checks on number of EB processes
- die "Number of EB processes exceeds the number in RFIO setting! Exit." if($ebproc > $#rfio_list);
- die "Number of EB processes exceeds the number in EPICS_CTRL setting! Exit." if($ebproc > $#epics_list);
-
- #- Here we can overwrite default rfio settings with individual settings per EB processes
- my $procname = sprintf("EB_PROC_%d", 1+$ebproc);
- # $rfio_iCopyMode = $temp_args_href->{$procname}->{'RFIO_iCopyMode'};
-
- $href->{$ebproc}->{'IP'} = $eb_ip;
- $href->{$ebproc}->{'EBNUM'} = $ebproc+1;
- $href->{$ebproc}->{'BASEPORT'} = $base_port;
- $href->{$ebproc}->{'PORT_LIST'} = $eb_ids_gbe_href->{$ebproc}->{'port_list'};
- $href->{$ebproc}->{'SOURCENUM'} = scalar @{$eb_ids_gbe_href->{$ebproc}->{'port_list'}};
- $href->{$ebproc}->{'BUFSIZE_LIST'} = $eb_ids_gbe_href->{$ebproc}->{'bufsize_list'};
- $href->{$ebproc}->{'PREFIX'} = $prefix;
- $href->{$ebproc}->{'QUEUESIZE'} = $queuesize;
- $href->{$ebproc}->{'MULTIDISK'} = $multidisk;
- $href->{$ebproc}->{'FILESIZE'} = $filesize;
-
- if( defined $temp_args_href->{$procname}->{'MULTIDISK'} ){
- $href->{$ebproc}->{'MULTIDISK'} = $temp_args_href->{$procname}->{'MULTIDISK'};
- }
- elsif($multidisk){
- $href->{$ebproc}->{'MULTIDISK'} = $href->{$ebproc}->{'EBNUM'};
- }
- else{
- $href->{$ebproc}->{'MULTIDISK'} = $multidisk;
- }
-
- if( defined $temp_args_href->{$procname}->{'RESDOWNSCALE'} ){
- $href->{$ebproc}->{'RESDOWNSCALE'} = $temp_args_href->{$procname}->{'RESDOWNSCALE'};
- $href->{$ebproc}->{'RESNUMEVENTS'} = $temp_args_href->{$procname}->{'RESNUMEVENTS'};
- $href->{$ebproc}->{'RESPATH'} = $temp_args_href->{$procname}->{'RESPATH'};
- $href->{$ebproc}->{'RESSIZELIMIT'} = $temp_args_href->{$procname}->{'RESSIZELIMIT'};
- }
-
- if( defined $temp_args_href->{$procname}->{'ONLINESERVER'} ){
- if($opt_online eq "on"){
- $href->{$ebproc}->{'ONLINESERVER'} = "on";
- }
- elsif($opt_online eq "off"){
- $href->{$ebproc}->{'ONLINESERVER'} = "off";
- }
- else{
- $href->{$ebproc}->{'ONLINESERVER'} = $temp_args_href->{$procname}->{'ONLINESERVER'};
- }
- }
- else{
- $href->{$ebproc}->{'ONLINESERVER'} = "off";
- }
-
- $href->{$ebproc}->{'RFIO'} = $rfio_list[$ebproc] if(lc($opt_rfio) eq 'undef'); # 0|1
- $href->{$ebproc}->{'RFIO'} = 1 if(lc($opt_rfio) eq 'on'); # 0|1
- $href->{$ebproc}->{'RFIO'} = 0 if(lc($opt_rfio) eq 'off'); # 0|1
- $href->{$ebproc}->{'RFIO_PATH'} = $rfio_path;
- $href->{$ebproc}->{'RFIO_pcOptions'} = $rfio_pcOptions;
- $href->{$ebproc}->{'RFIO_iCopyMode'} = $rfio_iCopyMode;
- $href->{$ebproc}->{'RFIO_pcCopyPath'} = $rfio_pcCopyPath;
- $href->{$ebproc}->{'RFIO_iCopyFrac'} = $rfio_iCopyFrac;
- $href->{$ebproc}->{'RFIO_iMaxFile'} = $rfio_iMaxFile;
- $href->{$ebproc}->{'RFIO_iPathConv'} = $rfio_iPathConv;
-
- $href->{$ebproc}->{'EPICS_CTRL'} = $epics_list[$ebproc]; # 0|1
-
- $href->{$ebproc}->{'DABC'} = $dabc_list[$ebproc]; # 0|1
-
-
- $href->{$ebproc}->{'EB_LOG'} = $eblog_list[$ebproc]; # 0|1
- $href->{$ebproc}->{'NM_LOG'} = $nmlog_list[$ebproc]; # 0|1
-
- if( $write2disk_list[$ebproc] && lc($opt_disk) eq 'undef' ){
- if(&isVarDefined($temp_args_href->{$procname}->{'OUTDIR'}, "OUTDIR for $procname")){
- $href->{$ebproc}->{'OUTDIR'} = $temp_args_href->{$procname}->{'OUTDIR'};
- }
- }
- elsif( lc($opt_disk) eq 'on' ){
- if(&isVarDefined($temp_args_href->{$procname}->{'OUTDIR'}, "OUTDIR for $procname")){
- $href->{$ebproc}->{'OUTDIR'} = $temp_args_href->{$procname}->{'OUTDIR'};
- }
- }
- elsif( lc($opt_disk) eq 'off' ){
- #- do not do anything. If $href->{$ebproc}->{'OUTDIR'} is undefined,
- # the data will go to /dev/null
- }
- }
-
- $numOfEBProcs = $ebproc;
-}
-
-sub isVarDefined()
-{
- my ($var, $msg) = @_;
-
- my $retval = 1;
-
- unless( defined $var ){
- print "Undefined variable found: $msg\n";
- $retval = 0;
- }
-
- return $retval;
-}
-
-sub getVarSizeArg()
-{
- my ($ebproc) = @_;
-
- my $i = 0;
- my $arg = " ";
-
- foreach my $size (@{$EB_Args_href->{$ebproc}->{'BUFSIZE_LIST'}}){
-
- if($EB_Args_href->{$ebproc}->{'BUFSIZE_LIST'}->[$i] ==
- $EB_Args_href->{$ebproc}->{'QUEUESIZE'}){
- $i++;
- next;
- }
-
- $arg = $arg . " -Q " . $i . ":" . $EB_Args_href->{$ebproc}->{'BUFSIZE_LIST'}->[$i];
- $i++;
- }
-
- return $arg;
-}
-
-sub startEvtBuilders()
-{
-
- my $username = "hadaq";
-
- my (@process_list);
-
- foreach my $ebproc (sort {$a <=> $b} keys %$EB_Args_href){
-
- my $ebnum2print = $ebproc+1;
- print "EB process: $ebnum2print\n";
-
-
-# JAM first test if we should activate dabc eventbuilder or old one
-
- if( $EB_Args_href->{$ebproc}->{'DABC'} ){
- print "Starting DABC process..\n";
-# TODO: here evaluate parameters and code into dabc command execution
-
-#". /home/joern/dabcwork/head/dabclogin;cd /home/joern/dabcwork/head/plugins/hadaq/app; export EBNUM=1; export STREAMS=5; export UDP00=10101; export UDP01=10102; export UDP02=10103; export UDP03=10104; export UDP04=10105 export PREFIX=be; /home/joern/dabcwork/head/bin/dabc_exe EventBuilderHades.xml &" > /dev/null 2>&1 &
-
- my $cpu = $EB_Args_href->{$ebproc}->{'IP'};
- my $dabclogin = ". /home/hadaq/soft/dabc/head/dabclogin;";
- my $cdworkdir = "cd //home/hadaq/oper;";
-
- my $cmd_dabc = "/home/hadaq/soft/dabc/head/bin/dabc_exe ";
- my $conf_dabc = " EventBuilderHades.xml";
- my $exports = " export EBNUM=" . $EB_Args_href->{$ebproc}->{'EBNUM'} . "; " .
- " export STREAMS=" . $EB_Args_href->{$ebproc}->{'SOURCENUM'} . "; " .
- " export PREFIX=" . $EB_Args_href->{$ebproc}->{'PREFIX'}. "; " ;
-
- my @port_list = ();
-
- #- add ports
- my $ix =0;
- foreach my $port (@{$EB_Args_href->{$ebproc}->{'PORT_LIST'}}){
- #$cmd_nm = $cmd_nm . " -i UDP:0.0.0.0:" . $port;
- my $index=sprintf("%02d", $ix++);
- $exports = $exports . " export UDP". $index. "=" . $port . "; ";
- push(@port_list, $port);
- }
- &cpPortList2EB(\@port_list, $EB_Args_href->{$ebproc}->{'EBNUM'}, $cpu);
-
-
-
-
-
-
-# MULTIDISK
-
-#- add output type
-
- if($EB_Args_href->{$ebproc}->{'OUTDIR'} ){
- $exports = $exports . " export FILEOUTPUTS=2;";
- if($EB_Args_href->{$ebproc}->{'MULTIDISK'}){
- $exports = $exports . "export DAQDISK=1; export OUTDIR=/data01; ";
- }
- else{
- $exports = $exports . "export DAQDISK=0; export OUTDIR=" . $EB_Args_href->{$ebproc}->{'OUTDIR'} .";";
- }
- }
- else{
- $exports = $exports . " export FILEOUTPUTS=1;";
- # no output except for the stream server...
- }
-
-
-# additional exports for RFIO
-
- $exports = $exports . " export RFIOPATH=". $EB_Args_href->{$ebproc}->{'RFIO_PATH'} . ";";
- $exports = $exports . " export RFIOLUSTREPATH=". $EB_Args_href->{$ebproc}->{'RFIO_pcCopyPath'} . ";";
- $exports = $exports . " export RFIOCOPYMODE=". $EB_Args_href->{$ebproc}->{'RFIO_iCopyMode'} . ";";
- $exports = $exports . " export RFIOCOPYFRAC=". $EB_Args_href->{$ebproc}->{'RFIO_iCopyFrac'} . ";";
- $exports = $exports . " export RFIOMAXFILE=". $EB_Args_href->{$ebproc}->{'RFIO_iMaxFile'} . ";";
- $exports = $exports . " export RFIOPATHCONV=". $EB_Args_href->{$ebproc}->{'RFIO_iPathConv'} . ";";
-
-
-if( $EB_Args_href->{$ebproc}->{'RFIO'} ){
- $exports = $exports . " export FILEOUTPUTS=3;";
-
-# switch on by number of outputs
-}
-
-
-# my $rfio;
-# if( $EB_Args_href->{$ebproc}->{'RFIO'} ){
-# $rfio = " --rfio " . $EB_Args_href->{$ebproc}->{'RFIO_PATH'} .
-# " --rfiolustre " . $EB_Args_href->{$ebproc}->{'RFIO_pcCopyPath'} .
-# " --rfio_pcoption " . $EB_Args_href->{$ebproc}->{'RFIO_pcOptions'} .
-# " --rfio_icopymode " . $EB_Args_href->{$ebproc}->{'RFIO_iCopyMode'} .
-# " --rfio_icopyfrac " . $EB_Args_href->{$ebproc}->{'RFIO_iCopyFrac'} .
-# " --rfio_imaxfile " . $EB_Args_href->{$ebproc}->{'RFIO_iMaxFile'} .
-# " --rfio_ipathconv " . $EB_Args_href->{$ebproc}->{'RFIO_iPathConv'};
-# }
-
-
-# EPICSCONTROL ? always enabled for production
-# SMALLFILES for online monitoring node
-
-
- my $core_nr = &getCoreNr($cpu);
-
-# JAM use fixed core number for kp1pc092 tests:
-# my $core_nr = 1;
- my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports taskset -c $core_nr $cmd_dabc $conf_dabc &\"";
-
-
-
- my $log = $log_path . "/log_" . $ebproc . "_" . "startEB.txt";
- #my $log = "/dev/null 2>&1";
-
- print "Forking:" . $exe_dabc ."\n";
- forkMe($exe_dabc, $log, \@process_list) unless($opt_test);
-
-}
-
-else
-{
-# the standard EB processes mode:
- print "Starting evtbuild/netmem processes..\n";
-
- #--- Prepare execution of daq_evtbuild
- my $cmd_eb = "/home/hadaq/bin/daq_evtbuild" .
- " -m " . $EB_Args_href->{$ebproc}->{'SOURCENUM'} .
- " -q " . $EB_Args_href->{$ebproc}->{'QUEUESIZE'} .
- " -S " . $EB_Args_href->{$ebproc}->{'EBNUM'} .
- " --ebnum " . $EB_Args_href->{$ebproc}->{'EBNUM'} .
- " -x " . $EB_Args_href->{$ebproc}->{'PREFIX'};
-
- #- add queue variable size args
- my $varsize_arg = &getVarSizeArg($ebproc);
- $cmd_eb = $cmd_eb . $varsize_arg;
-
- #- add output type
- if( defined $EB_Args_href->{$ebproc}->{'OUTDIR'} ){
- if($EB_Args_href->{$ebproc}->{'MULTIDISK'}){
- $cmd_eb = $cmd_eb . " -d file -o " . "/data01/data";
- }
- else{
- $cmd_eb = $cmd_eb . " -d file -o " . $EB_Args_href->{$ebproc}->{'OUTDIR'};
- }
- }
- else{
- $cmd_eb = $cmd_eb . " -d null";
- }
-
- #- add file size
- $cmd_eb = $cmd_eb . " --filesize " . $EB_Args_href->{$ebproc}->{'FILESIZE'};
-
- #- add second output with small hdl files
- if( defined $EB_Args_href->{$ebproc}->{'RESDOWNSCALE'} ){
- $cmd_eb = $cmd_eb . " --resdownscale " . $EB_Args_href->{$ebproc}->{'RESDOWNSCALE'} .
- " --resnumevents " . $EB_Args_href->{$ebproc}->{'RESNUMEVENTS'} .
- " --respath " . $EB_Args_href->{$ebproc}->{'RESPATH'} .
- " --ressizelimit " . $EB_Args_href->{$ebproc}->{'RESSIZELIMIT'};
- }
-
- my $cpu = $EB_Args_href->{$ebproc}->{'IP'};
-
- #- add rfio args
- my $rfio;
- if( $EB_Args_href->{$ebproc}->{'RFIO'} ){
- $rfio = " --rfio rfiodaq:gstore:" . $EB_Args_href->{$ebproc}->{'RFIO_PATH'} .
- " --rfiolustre " . $EB_Args_href->{$ebproc}->{'RFIO_pcCopyPath'} .
- " --rfio_pcoption " . $EB_Args_href->{$ebproc}->{'RFIO_pcOptions'} .
- " --rfio_icopymode " . $EB_Args_href->{$ebproc}->{'RFIO_iCopyMode'} .
- " --rfio_icopyfrac " . $EB_Args_href->{$ebproc}->{'RFIO_iCopyFrac'} .
- " --rfio_imaxfile " . $EB_Args_href->{$ebproc}->{'RFIO_iMaxFile'} .
- " --rfio_ipathconv " . $EB_Args_href->{$ebproc}->{'RFIO_iPathConv'};
- }
-
- $cmd_eb = $cmd_eb . $rfio if( defined $rfio );
-
- #- add multiple disk arg (ctrl via daq_disks)
- if($EB_Args_href->{$ebproc}->{'MULTIDISK'} &&
- defined $EB_Args_href->{$ebproc}->{'OUTDIR'}){
- $cmd_eb = $cmd_eb . " --multidisk " . $EB_Args_href->{$ebproc}->{'MULTIDISK'};
- }
-
- #- add online RPC server
- if( $EB_Args_href->{$ebproc}->{'ONLINESERVER'} eq "on" ){
- $cmd_eb = $cmd_eb . " --online";
- }
-
- #- add epics controlled
- $cmd_eb = $cmd_eb . " --epicsctrl " if( $EB_Args_href->{$ebproc}->{'EPICS_CTRL'} );
-
- #- logging the output
- my $eblog_file = "/tmp/log_eb_" . $EB_Args_href->{$ebproc}->{'EBNUM'} . ".txt";
- my $eb_log = "1>$eblog_file 2>$eblog_file";
- $eb_log = "1>/dev/null 2>/dev/null" unless( $EB_Args_href->{$ebproc}->{'EB_LOG'} );
-
- my $time = 1. * $ebproc;
- my $sleep_cmd = "sleep " . $time;
-
- my $core_nr = &getCoreNr($cpu);
-
- my $exe_eb = "ssh -n $cpu -l $username \"cd /home/hadaq/oper; export DAQ_SETUP=/home/hadaq/oper/eb; taskset -c $core_nr $cmd_eb $eb_log &\"";
-
- #print "exec: $exe_eb\n";
-
- #--- Prepare execution of daq_netmem
- my $cmd_nm = "/home/hadaq/bin/daq_netmem" .
- " -m " . $EB_Args_href->{$ebproc}->{'SOURCENUM'} .
- " -q " . $EB_Args_href->{$ebproc}->{'QUEUESIZE'} .
- " -S " . $EB_Args_href->{$ebproc}->{'EBNUM'};
-
- #- add queue variable size args
- $cmd_nm = $cmd_nm . $varsize_arg;
-
- my @port_list = ();
-
- #- add ports
- foreach my $port (@{$EB_Args_href->{$ebproc}->{'PORT_LIST'}}){
- #$cmd_nm = $cmd_nm . " -i UDP:0.0.0.0:" . $port;
- $cmd_nm = $cmd_nm . " -i " . $port;
-
- push(@port_list, $port);
- }
-
- &cpPortList2EB(\@port_list, $EB_Args_href->{$ebproc}->{'EBNUM'}, $cpu);
-
- #- logging the output
- my $nmlog_file = "/tmp/log_nm_" . $EB_Args_href->{$ebproc}->{'EBNUM'} . ".txt";
- my $nm_log = "1>$nmlog_file 2>$nmlog_file";
- $nm_log = "1>/dev/null 2>/dev/null" unless( $EB_Args_href->{$ebproc}->{'NM_LOG'} );
-
- $core_nr = &getCoreNr($cpu);
-
- my $exe_nm = "ssh -n $cpu -l $username \"cd /home/hadaq/oper; export DAQ_SETUP=/home/hadaq/oper/eb; taskset -c $core_nr $cmd_nm $nm_log &\"";
-
- #print "exec: $exe_nm\n";
-
- #--- Open permissions for shared memory
- my $eb_shmem = "daq_evtbuild" . $EB_Args_href->{$ebproc}->{'EBNUM'} . ".shm";
- my $nm_shmem = "daq_netmem" . $EB_Args_href->{$ebproc}->{'EBNUM'} . ".shm";
- my $exe_open_eb = "ssh -n $cpu -l $username \"chmod 775 /dev/shm/$eb_shmem\"";
- my $exe_open_nm = "ssh -n $cpu -l $username \"chmod 775 /dev/shm/$nm_shmem\"";
-
- &forkEB($exe_eb, $exe_nm, $exe_open_eb, $exe_open_nm, \@process_list);
- }
-
-}
-# if dabc
-
- #- Wait for children
- foreach my $cur_child_pid (@process_list) {
- waitpid($cur_child_pid,0);
- }
-
-}
-# foreach
-
-sub stopEvtBuilders()
-{
- my $username = "hadaq";
-
- my @process_list = ();
-
- #--- Loop over server IPs
- foreach my $ip (@EB_IP_list){
-
- my $exe = "ssh -n $ip -l $username \"/home/hadaq/bin/cleanup_evtbuild.pl; /home/hadaq/bin/ipcrm.pl\"";
-
- if($opt_verb){
- print "Killing running EBs...\n";
- print "Exec: $exe\n";
- }
-
- my $log = $log_path . "/log_" . $ip . "_" . "stopEB.txt";
-
- forkMe($exe, $log, \@process_list) unless($opt_test);
- }
-
- #- Wait for children
- foreach my $cur_child_pid (@process_list) {
- print "wait for $cur_child_pid\n";
- waitpid($cur_child_pid,0);
- }
-}
-
-sub cpPortList2EB()
-{
- my ($port_list_aref, $ebnr, $cpu) = @_;
-
- my $tmpfile = "/tmp/eb" . $ebnr . "_" . $cpu . ".txt";
-
- #- First write ports to tmp file
- my $fh = new FileHandle(">$tmpfile");
-
- if(!$fh) {
- my $txt = "\nError! Could not open file \"$tmpfile\" for output. Exit.\n";
- print STDERR $txt;
- print $txt;
- exit(128);
- }
-
- foreach my $port (@$port_list_aref){
- print $fh "$port\n";
- }
-
- $fh->close();
-
- #- Copy this tmp file to EB
- my $exe_cp = "scp $tmpfile hadaq\@$cpu:/tmp/ 1>/dev/null 2>/dev/null";
- system($exe_cp);
-}
-
-sub startIOC()
-{
- my $ioc_dir = "/home/scs/ebctrl/ioc/iocBoot/iocebctrl";
-
- &writeIOC_stcmd( $ioc_dir );
-
- print "Starting IOCs...\n" if($opt_verb);
-
- foreach my $ebproc (keys %$EB_Args_href){
-
- my $stcmd = sprintf("st_eb%02d.cmd", 1 + $ebproc);
- my $screen_name = sprintf("ioc_eb%02d", 1 + $ebproc);
-
- my $cmd = "bash; . /home/scs/.bashrc; export HOSTNAME=\\\$(hostname); cd $ioc_dir; screen -dmS $screen_name ../../bin/linux-x86_64/ebctrl $stcmd";
- my $cpu = $EB_Args_href->{$ebproc}->{'IP'};
-
- my $exe = "ssh -n $cpu -l scs \"$cmd\"";
-
- print "Exec: $exe\n" if($opt_verb);
- system($exe) unless($opt_test);
- }
-}
-
-sub smallestEBProcNum()
-{
- my $smallest = 1000;
-
- foreach my $ebproc (keys %$EB_Args_href){
- $smallest = $ebproc if($smallest > $ebproc);
- }
-
- return $smallest;
-}
-
-sub writeIOC_stcmd()
-{
- my ($ioc_dir) = @_;
-
- print "Copying st.cmd files to servers...\n" if($opt_verb);
-
- my $smallest_ebproc = &smallestEBProcNum();
-
- foreach my $ebproc (keys %$EB_Args_href){
-
- my $ebNr = 1 + $ebproc;
- my $ebnum = sprintf("eb%02d", $ebNr);
-
- #- in MBytes
- my $maxFileSize = $EB_Args_href->{$ebproc}->{'FILESIZE'};
-
- my $ebtype = "slave";
- my $comment_genrunid = "#";
- my $comment_totalevt = "#";
-
- if($ebproc == $smallest_ebproc){
- $ebtype = "master";
- $comment_genrunid = "";
- $comment_totalevt = "";
- }
-
-# if($ebNr == 1){
-# $comment_totalevt = "";
-# }
-
- my $ioc_stcmd = <<EOF;
-#!../../bin/linux-x86_64/ebctrl
-
-## Set EPICS environment
-
-< envPaths
-
-epicsEnvSet(FILESIZE,"$maxFileSize")
-epicsEnvSet(EBTYPE,"$ebtype")
-epicsEnvSet(EBNUM,"$ebNr")
-epicsEnvSet(ERRBITLOG, "1")
-epicsEnvSet(ERRBITWAIT, "30")
-epicsEnvSet(EPICS_CA_ADDR_LIST,"192.168.103.255")
-epicsEnvSet(EPICS_CA_AUTO_ADDR_LIST,"NO")
-epicsEnvSet(PATH,"/home/scs/base-3-14-11/bin/linux-x86_64:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:.")
-
-cd \${TOP}
-
-## Register all support components
-dbLoadDatabase("dbd/ebctrl.dbd")
-ebctrl_registerRecordDeviceDriver(pdbbase)
-
-## Load record instances
-dbLoadRecords("db/stats.db", "PREFIX=HAD:IOC:,IOC=$ebnum")
-dbLoadRecords("db/evtbuild.db","eb=$ebnum")
-dbLoadRecords("db/netmem.db","eb=$ebnum")
-dbLoadRecords("db/errbit1.db","eb=$ebnum")
-dbLoadRecords("db/errbit2.db","eb=$ebnum")
-dbLoadRecords("db/trignr1.db","eb=$ebnum")
-dbLoadRecords("db/trignr2.db","eb=$ebnum")
-dbLoadRecords("db/portnr1.db","eb=$ebnum")
-dbLoadRecords("db/portnr2.db","eb=$ebnum")
-dbLoadRecords("db/trigtype.db","eb=$ebnum")
-dbLoadRecords("db/cpu.db","eb=$ebnum")
-dbLoadRecords("db/errbitstat.db","eb=$ebnum")
-$comment_totalevt dbLoadRecords("db/totalevtstat.db")
-$comment_genrunid dbLoadRecords("db/genrunid.db","eb=$ebnum")
-
-## Set this to see messages from mySub
-var evtbuildDebug 0
-var netmemDebug 0
-var genrunidDebug 0
-var writerunidDebug 0
-var errbit1Debug 0
-var errbit2Debug 0
-var trigtypeDebug 0
-var cpuDebug 0
-var errbitstatDebug 0
-$comment_totalevt var totalevtscompDebug 0
-cd \${TOP}/iocBoot/\${IOC}
-iocInit()
-
-## Start any sequence programs
-#seq sncExample,"user=scsHost"
-
-dbl > \${TOP}/iocBoot/\${IOC}/$ebnum.dbl
-
-EOF
-
- my $outfile = "/tmp/st_" . $ebnum . ".cmd";
- my $fh = new FileHandle(">$outfile");
-
- if(!$fh) {
- my $txt = "\nError! Could not open file \"$outfile\" for output. Exit.\n";
- print STDERR $txt;
- print $txt;
- exit(128);
- }
-
- print $fh $ioc_stcmd;
- $fh->close();
-
- my $ip = $EB_Args_href->{$ebproc}->{'IP'};
- my $cmd = "scp $outfile scs\@$ip:$ioc_dir/.";
-
- print "Exec: $cmd\n" if($opt_verb);
- system($cmd) unless($opt_test);
- }
-}
-
-sub killIOC()
-{
- my %ioc;
- my $ioc_href = \%ioc;
-
- print "Looking for running IOCs...\n" if($opt_verb);
-
- #--- Loop over server IPs
- foreach my $ip (@EB_IP_list){
-
- &findRunningIOC($ip, $ioc_href);
- }
-
- #print Dumper \%$ioc_href;
-
- &writeExpectIOC() if(%$ioc_href);
-
- if($opt_verb){
- print "Killing running IOCs...\n";
- print "No IOCs found - nothing to kill, continue...\n" unless(%$ioc_href);
- }
-
- my (@process_list);
-
- foreach my $ip ( %$ioc_href ){
- foreach my $ioc ( @{$ioc_href->{$ip}} ){
-
- my $cmd = $expect_ioc_script . " " . $ip . " " . $ioc;
- my $log = $log_path . "/log_" . $ip . "_" . $ioc . ".txt";
- print "cmd: $cmd\n" if($opt_verb);
- &forkMe($cmd, $log, \@process_list);
- }
- }
-
- #- Wait for children
- foreach my $cur_child_pid (@process_list) {
- waitpid($cur_child_pid,0);
- }
-}
-
-sub forkMe()
-{
- my ($cmd, $log, $proc_list) = @_;
-
- my $child = fork();
-
- if( $child ){ # parent
- push( @$proc_list, $child );
- }
- elsif( $child == 0 ) { # child
- system("$cmd > $log");
- exit(0);
- }
- else{
- print "Could not fork: $!\n";
- exit(1);
- }
-}
-
-sub forkEB()
-{
- my ($exe_eb, $exe_nm, $exe_open_eb, $exe_open_nm, $proc_list) = @_;
-
- my $child = fork();
-
- if( $child ){ # parent
- push( @$proc_list, $child );
- }
- elsif( $child == 0 ) { # child
- #--- Execute Event Builder
- print "Exec: $exe_eb\n" if($opt_verb);
- system($exe_eb) unless($opt_test);
-
- sleep(1);
-
- #--- Open permissions for EB shared memory
- # ! Permissions should be opened by EB process
- #print "Exec: $exe_open_eb\n" if($opt_verb);
- #system($exe_open_eb) unless($opt_test);
-
- sleep(2);
-
- #--- Execute Net-2-Memory
- print "Exec: $exe_nm\n" if($opt_verb);
- system($exe_nm) unless($opt_test);
-
- sleep(1);
-
- #--- Open permissions for NM shared memory
- # ! Permissions should be opened by EB process
- #print "Exec: $exe_open_nm\n" if($opt_verb);
- #system($exe_open_nm) unless($opt_test);
-
- exit(0);
- }
- else{
- print "Could not fork: $!\n";
- exit(1);
- }
-}
-
-sub findRunningIOC()
-{
- my ($cpu, $ioc_href) = @_;
-
- `ssh -n $cpu -l scs \"screen -wipe\"`;
- my $exe = "ssh -n $cpu -l scs \"screen -ls\"";
-
- my @output = `$exe`;
-
- foreach my $line (@output){
- if($line =~ /\d+\.(ioc_eb\d{2})\s+/){
- my $name = $1;
- push( @{$ioc_href->{$cpu}}, $name );
- print "Found IOC: $name on $cpu\n" if($opt_verb);
- }
- }
-}
-
-sub writeExpectIOC()
-{
- # This expect script can be executed to exit IOC.
-
- #! Look if /tmp dir exists
- my $tmp_dir = dirname("/tmp");
- if ( !(-d $tmp_dir) ){
- print "\nCannot access /tmp directory!\nExit.\n";
- exit(1);
- }
-
- my $expect_script_my = <<EOF;
-#!/usr/bin/expect -f
-
-# This script is automatically generated by startup.pl
-# Do not edit, the changes will be lost.
-
-# Print args
-send_user "\$argv0 [lrange \$argv 0 \$argc]\\n"
-
-# Get args
-#
-# ip : IP address of the server
-# iocname : name of IOC screen process (screen -ls)
-#
-if {\$argc>0} {
- set ip [lindex \$argv 0]
- set iocname [lindex \$argv 1]
-} else {
- send_user "Usage: \$argv0 ip iocname\\n"
-}
-
-spawn ssh scs@\$ip
-
-#expect {
-# "error" { exit; }
-# "login:" { exit; }
-# "Password:" { exit; }
-#}
-
-set timeout 20
-#240
-
-expect "~\$ "
-send "screen -r \$iocname\\r"
-expect "epics> "
-send "exit\\r"
-expect "~\$ "
-
-EOF
-
- my $fh = new FileHandle(">$expect_ioc_script");
-
- if(!$fh) {
- my $txt = "\nError! Could not open file \"$expect_ioc_script\" for output. Exit.\n";
- print STDERR $txt;
- print $txt;
- exit(128);
- }
-
- print $fh $expect_script_my;
- $fh->close();
-
- #- open permissions
- system("chmod 755 $expect_ioc_script");
-}
-
-sub getGbEconfig()
-{
- #
- # Read DB configurations of GbE and CTS,
- # look for active data sources as well as
- # for EB IPs and ports.
- #
-
- my ($eb_ids_href) = @_;
-
- my $data_sources = $temp_args_href->{'Parallel'}->{'DATA_SOURCES'};
- my $gbe_conf = $temp_args_href->{'Parallel'}->{'GBE_CONF'};
- #my $cts_conf = $temp_args_href->{'Parallel'}->{'CTS_CONF'};
-
- my %activeSources_hash;
- my $activeSources_href = \%activeSources_hash;
-
- &readActiveSources($data_sources, $activeSources_href);
-
- my @id_list;
- my $id_list_aref = \@id_list;
-
- #&readEBids($cts_conf, $id_list_aref);
-
- #- Overwrite array with EB numbers
- @id_list = (0 .. 15);
- #print Dumper $id_list_aref;
-
- &readEBports($gbe_conf, $activeSources_href, $id_list_aref, $eb_ids_href);
-}
-
-sub readEBids()
-{
- #
- # Read EB Ids
- #
-
- my ($file, $id_list_aref) = @_;
-
- my $nnn_table = 0;
- my $val_table = 0;
-
- my $SPACE = "";
-
- my $fh = new FileHandle("$file", "r");
-
- while(<$fh>){
-
- #- Remove all comments
- $_ =~ s{ # Substitue...
- \# # ...a literal octothorpe
- [^\n]* # ...followed by any number of non-newlines
- }
- {$SPACE}gxms; # Raplace it with a single space
-
- #- Skip line if it contains only whitespaces
- next unless(/\S/);
-
- if(/^(\s+)?!Value\stable/){
- $val_table = 1;
- $nnn_table = 0;
- next;
- }
- elsif(/^(\s+)?!\w+/){
- $val_table = 0;
- $nnn_table = 1;
- }
-
- if($val_table){
- my (@vals) = split(" ", $_);
- my @id_list1 = split("", $vals[12]);
- my @id_list2 = split("", $vals[13]);
- foreach my $id (@id_list1){
- push(@$id_list_aref, hex($id));
- }
- foreach my $id (@id_list2){
- push(@$id_list_aref, hex($id));
- }
- }
- elsif($nnn_table){
- }
- }
-
- $fh->close;
-}
-
-sub readEBports()
-{
- #
- # Read EB IPs and ports accoring to EB Id (type)
- # and TRB-Net addresses of active data sources.
- #
-
- my ($file, $activeSources_href, $id_list_aref, $ports_href) = @_;
-
- my $nnn_table = 0;
- my $val_table = 0;
-
- my $fh = new FileHandle("$file", "r");
-
- &isFileDefined($fh, $file);
-
- my %tmp;
- my $tmp_href = \%tmp;
-
- my $SPACE = "";
-
- while(<$fh>){
-
- #print $_;
- #- Remove all comments
- $_ =~ s{ # Substitue...
- \# # ...a literal octothorpe
- [^\n]* # ...followed by any number of non-newlines
- }
- {$SPACE}gxms; # Raplace it with a single space
-
- #- Skip line if it contains only whitespaces
- next unless(/\S/);
-
- #print $_;
- if(/^(\s+)?!Value\stable/){
- $val_table = 1;
- $nnn_table = 0;
- next;
- }
- elsif(/^(\s+)?!\w+/){
- $nnn_table = 1;
- $val_table = 0;
- }
-
- if($val_table){
- my (@vals) = split(" ", $_);
- my $id = $vals[1];
-
- #if($id <0 or $id >15) {
- # print "error: in $file there is a line with an eventbuilder number different than 0..15, the number given in the file is $id. please correct the config file.\n";
- # exit(128);
- #}
-
-
- #- Accept only EB Ids from CTS config file
- #print "value: $_";
- next unless( any {$_ eq $id} @$id_list_aref );
-
- #print Dumper \@vals;
- #print "active sources: "; print Dumper $activeSources_href->{'addr_list'};
- #exit;
-
- my $ip = &getIP_hex2dec($vals[6]);
- my $port = &getPort_hex2dec($vals[2]);
- my $addr = $vals[0];
-
- #print "got: ip: $ip, port: $port, addr: $addr\n";
- #- Accept only sources from active source list
- if( any {hex($_) == hex($addr)} @{$activeSources_href->{'addr_list'}} ){
- $tmp_href->{$id}->{'IP'} = $ip;
- push( @{$tmp_href->{$id}->{'port_list'}}, $port );
- push( @{$tmp_href->{$id}->{'addr_list'}}, $addr );
- }
- }
- }
-
- $fh->close;
-
- #print Dumper $tmp_href;
-
- #- Sort hash according to active data source list
- foreach my $id (keys %tmp){
- $ports_href->{$id}->{'IP'} = $tmp_href->{$id}->{'IP'};
-
- foreach my $addr (@{$activeSources_href->{'addr_list'}}){
-
- my $ind1 = first_index {$_ eq $addr} @{$tmp_href->{$id}->{'addr_list'}};
- my $ind2 = first_index {$_ eq $addr} @{$activeSources_href->{'addr_list'}};
-
- next if($ind1 == -1);
-
- push( @{$ports_href->{$id}->{'port_list'}}, $tmp_href->{$id}->{'port_list'}->[$ind1]);
- push( @{$ports_href->{$id}->{'addr_list'}}, $addr);
- push( @{$ports_href->{$id}->{'bufsize_list'}}, $activeSources_href->{'bufsize_list'}->[$ind2]);
- }
- }
-
- #print Dumper $ports_href;
-}
-
-sub readActiveSources()
-{
- #
- # Read TRB-Net addresses of active data sources
- #
-
- my ($file, $activeSources_href) = @_;
-
- my $fh = new FileHandle("$file", "r");
-
- &isFileDefined($fh, $file);
-
- my $SPACE = "";
-
- while(<$fh>){
-
- #- Remove all comments
- $_ =~ s{ # Substitue...
- \# # ...a literal octothorpe
- [^\n]* # ...followed by any number of non-newlines
- }
- {$SPACE}gxms; # Raplace it with a single space
-
- #- Skip line if it contains only whitespaces
- next unless(/\S/);
-
- my ($addr, $astat, $sys, $size) = split(" ", $_);
-
- next if($astat == 0);
-
- push( @{$activeSources_href->{'addr_list'}}, $addr);
- push( @{$activeSources_href->{'bufsize_list'}}, &getBufSize($size));
- }
-
- $fh->close;
-}
-
-sub getBufSize()
-{
- my ($bufSize) = @_;
-
- if(lc($bufSize) eq "low"){
- return $temp_args_href->{'Main'}->{'BUF_SIZE_LOW'};
- }
- elsif(lc($bufSize) eq "mid"){
- return $temp_args_href->{'Main'}->{'BUF_SIZE_MID'};
- }
- elsif(lc($bufSize) eq "high"){
- return $temp_args_href->{'Main'}->{'BUF_SIZE_HIGH'};
- }
- else{
- print "Cannot understand $bufSize from data_sources.db.\n";
- exit(0);
- }
-}
-
-sub getIP_hex2dec()
-{
- my ($ip_hex) = @_;
-
- my $ip_dec;
-
- if( $ip_hex =~ /0x(\w{2})(\w{2})(\w{2})(\w{2})/ ){
- $ip_dec = hex($1) . "." . hex($2) . "." . hex($3) . "." . hex($4);
- }
- else{
- print "getIP_hex2dec(): cannot extract ip address because of diferent format! Exit.";
- exit(0);
- }
-
- return $ip_dec;
-}
-
-sub getPort_hex2dec()
-{
- my ($port_hex) = @_;
-
- my $port_dec;
-
- if( $port_hex =~ /0x(\w+)/ ){
- $port_dec = hex($1);
- }
- else{
- print "getPort_hex2dec(): cannot extract port number because of diferent format! Exit.";
- exit(0);
- }
-
- return $port_dec;
-}
-
-sub isFileDefined()
-{
- my ($fh, $name) = @_;
-
- if(!$fh) {
- my $txt = "\nError! Could not open file \'$name\'. Exit.\n";
- print STDERR $txt;
- print $txt;
- exit(128);
- }
-
- return 0;
-}
-
-sub writeArgs2file()
-{
- my $fileName = $0;
-
- #- Replace .pl with .sh
- $fileName =~ s/\.pl/\.sh/;
-
- my $fh = new FileHandle(">./$fileName");
- if(!$fh) {
- my $txt = "\nError! Could not open file \"$fileName\" for output. Exit.\n";
- print STDERR $txt;
- print $txt;
- exit(128);
- }
-
- my $current_dir = cwd();
- my $ptogName = $0;
-
-
- #- Write to the file the script name itself
- print $fh $0;
-
- #- Write to the file the arguments
- foreach my $arg (@arg_list){
- print $fh " $arg";
- }
- print $fh "\n";
-
- $fh->close();
-
- system("chmod 755 ./$fileName");
-}
-
+++ /dev/null
-./start_eb_dabc.pl -e restart -n 1-16 -d on -p te
[-r|--rfio <on|off>] : Switch writing to tape on|off.
[-p|--prefix <prefix>] : Prefix of hld file.
[-o|--online <on|off>] : Switch RPC server on|off.
- [-b|--bnet <on|off>] : Specify number of bnet builder nodes (default: 3).
+ [-b|--bnet <on|off>] : Specify number of bnet builder nodes(default: 3).
[-t|--test] : Test without execution.
[-v|--verb] : More verbouse.
my $firstsnd = 1;
my $firstrcv = 1;
- my $maxbuildservers=3; # do not use lxhadeb05 for data writing
- if ($opt_bnet>0 && $opt_bnet <4) {
- $maxbuildservers=$opt_bnet;
+ my $maxbuilders=3; # do not use lxhadeb05 for data writing
+ if ($opt_bnet>0 && $opt_bnet <16) {
+ $maxbuilders=$opt_bnet;
}
- print "Using $maxbuildservers servers for builder nodes from option -b $opt_bnet\n";
-
+ print "Using $maxbuilders event builder nodes from option -b $opt_bnet\n";
+my $totalbuilders=0;
+my @localbuilders = (0,0,0,0);
+while($totalbuilders < $maxbuilders)
+{
+ my $lasttotalbuilders=$totalbuilders;
+ for ( my $ebserver=0; $ebserver<4; $ebserver=$ebserver+1){
+ my $bnet_numbuilders = $EB_Args_href->{$ebserver}->{'BNET_BLD'};
+ if($totalbuilders < $maxbuilders)
+ {
+ if($localbuilders[$ebserver] < $bnet_numbuilders)
+ {
+ $localbuilders[$ebserver]++;
+ $totalbuilders++;
+ # print "Added 1 builder on EB server: $ebserver\n";
+ }
+ }
+ }
+ if ($totalbuilders==$lasttotalbuilders){ last;} # more ebs demanded than configured
+}
+
+ for ( my $ebserver=0; $ebserver<4; $ebserver=$ebserver+1){
+ print "Found $localbuilders[$ebserver] builders on EB server: $ebserver\n";
+ }
+
my $rcvport = 12100;
for ( my $ebserver=0; $ebserver<4; $ebserver=$ebserver+1){
print "Gathering processes at EB server: $ebserver\n";
my $sendport = 12501;
my $ip = $bnetservers[$ebserver];
-############# old
- # here we use the fact that first 4 eb processes are assigned to first 4 servers.
- # so node ip is directly mapped from setup:
-# my $ip = $EB_Args_href->{$ebserver}->{'IP'};
-# #dirty workaround for bnet at eb0:
-# if ($ebserver == 0) {
-# $ip = '192.168.100.8';
-# }
-######################
# JAM2018 - need to transform HADES VLAN IPs into GSI VLAN for BNET!
my $gsi_ip = getIP_hades2gsi($ip);
# array of BNET values is already indexed with server id:
my $bnet_numsenders = $EB_Args_href->{$ebserver}->{'BNET_INP'};
- my $bnet_numbuilders = $EB_Args_href->{$ebserver}->{'BNET_BLD'};
+ #my $bnet_numbuilders = $EB_Args_href->{$ebserver}->{'BNET_BLD'};
for (my $six=0; $six<$bnet_numsenders; $six=$six+1)
{
$bnetsenders=$bnetsenders . "," unless ($firstsnd>0);
}
- # exclude builder nodes not specified by option:
- if($ebserver < $maxbuildservers)
- {
- for (my $rix=0; $rix<$bnet_numbuilders; $rix=$rix+1)
+ for (my $rix=0; $rix<$localbuilders[$ebserver]; $rix=$rix+1)
{
- $bnetrcvs=$bnetrcvs . "," unless ($firstrcv>0);
- $bnetrcvs=$bnetrcvs . $gsi_ip.":". $rcvport;
- $rcvport=$rcvport+1;
- $firstrcv=0 if($firstrcv>0);
- }
- }
+ $bnetrcvs=$bnetrcvs . "," unless ($firstrcv>0);
+ $bnetrcvs=$bnetrcvs . $gsi_ip.":". $rcvport;
+ $rcvport=$rcvport+1;
+ $firstrcv=0 if($firstrcv>0);
+ }
my $hadaqports = "[";
my $calibflags = "[";
my $subevents = "[";
} # end senders
# todo: loop over builders
-
- for ( my $ebserver=0; $ebserver<$maxbuildservers; $ebserver=$ebserver+1){
+ for ( my $ebserver=0; $ebserver<4; $ebserver=$ebserver+1){
print "Starting builder processes on EB server: $ebserver\n";
my $ebid=$ebserver + 1; # still need unique eventbuilder ids on cluster because of epics!
my $gsi_cpu = getIP_hades2gsi($cpu);
# in the following, the port and ip setup of the bnet is taken from ebproc 15 or 0 only!
- my $bnet_numbuilders = $EB_Args_href->{$ebserver}->{'BNET_BLD'};
+ #my $bnet_numbuilders = $EB_Args_href->{$ebserver}->{'BNET_BLD'};
- print "found $bnet_numbuilders builders on node $cpu \n";
+ print "start $localbuilders[$ebserver] builders on node $cpu \n";
- for(my $builder=0; $builder<$bnet_numbuilders; $builder=$builder+1)
+ for(my $builder=0; $builder<$localbuilders[$ebserver]; $builder=$builder+1)
{
-
-
my $exports = " export MYHOST=" . $gsi_cpu . ";" .
" export BNEBNUM=" . $ebid . ";" .
" export BNEBID=" . $portid . "; " .
-# if( $EB_Args_href->{$ebproc}->{'RFIO'} ){
-#
-# $exports = $exports . " export FILEOUTPUTS=3;";
-# # additional exports for RFIO
-#
-# $exports = $exports . " export RFIOPATH=". $EB_Args_href->{$ebproc}->{'RFIO_PATH'} . ";";
-# $exports = $exports . " export RFIOLUSTREPATH=". $EB_Args_href->{$ebproc}->{'RFIO_pcCopyPath'} . ";";
-# $exports = $exports . " export RFIOCOPYMODE=". $EB_Args_href->{$ebproc}->{'RFIO_iCopyMode'} . ";";
-# $exports = $exports . " export RFIOCOPYFRAC=". $EB_Args_href->{$ebproc}->{'RFIO_iCopyFrac'} . ";";
-# $exports = $exports . " export RFIOMAXFILE=". $EB_Args_href->{$ebproc}->{'RFIO_iMaxFile'} . ";";
-# $exports = $exports . " export RFIOPATHCONV=". $EB_Args_href->{$ebproc}->{'RFIO_iPathConv'} . ";";
-#
-# # switch on by number of outputs
+
# }
if( $EB_Args_href->{$ebproc}->{'LTSM'} ){
-./start_eb_gbe.pl -e restart -n 1-16 -d on -p co;
-/usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt "http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=co&oninit=10"
+./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 3;
+/usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt "http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=te&oninit=10"
my $longtext = '';
my $dirich1V;
my $dirich2V5;
+ my $dirich1V2;
foreach my $m (sort keys %{$ret->[1][0]}) {
HPlot::PlotAdd('DiRichVolt',$ret->[1][0]{$m}-3300,0);
HPlot::PlotAdd('DiRichVolt',$ret->[2][0]{$m}-3300,0);
HPlot::PlotAdd('DiRichVolt',$ret->[2][1]{$m}-2560,1);
HPlot::PlotAdd('DiRichVolt',$ret->[2][2]{$m}-1260,2);
+ my $sm = sprintf("0x%04x",$m);
+ $dirich1V2->{$sm} = $ret->[2][2]{$m};
}
HPlot::PlotLimitEntries('DiRichVolt',(scalar keys %{$ret->[1][0]}) + (scalar keys %{$ret->[2][0]}));
HPlot::PlotDraw('DiRichVolt');
$dirich1V->{min} = 1160;
- $dirich1V->{max} = 1350;
+ $dirich1V->{max} = 1300;
$dirich1V->{symbol} = 'mV';
$dirich1V->{title} = 'RICH 1.1V';
$dirich1V->{updatetime} = $updatetime;
print $fh encode_json($dirich2V5);
close $fh;
+ $dirich1V2->{min} = 1280;
+ $dirich1V2->{max} = 1400;
+ $dirich1V2->{symbol} = 'mV';
+ $dirich1V2->{title} = 'RICH 1.2V';
+
+ $dirich1V2->{updatetime} = $updatetime;
+
+ open($fh, ">", Hmon::HMONDIR."/files/rich1V2.json");
+ print $fh encode_json($dirich1V2);
+ close $fh;
sleep 10;
titles => ['Current'],
xlabel => "Channel",
ylabel => "mA",
- sizex => 950,
- sizey => 260,
+ sizex => 850,
+ sizey => 220,
xmin => 0,
xmax => 96,
ymin => '0',
curvewidth => 1};
HPlot::PlotInit($plot);
-# my $plot = {
-# name => "RichCurr",
-# file => "files/RichCurr",
-# entries => 240,
-# type => HPlot::TYPE_HISTORY,
-# output => HPlot::OUT_PNG,
-# titles => ["A1","A2","A3","A4","A5","A6"],
-# xlabel => "Seconds",
-# ylabel => "nA",
-# sizex => 950,
-# sizey => 260,
-# curves => 6,
-# xscale => 4,
-# storable=> 1,
-# colors => ["#333333","#00ff00","#ff0000","#0000ff","#dddd00","#dd00dd"]};
-# HPlot::PlotInit($plot);
-
my $plot2 = {
name => "RichVolt",
file => 'files/RichVolt',
titles => ['Voltage'],
xlabel => "Channel",
ylabel => "V",
- sizex => 950,
- sizey => 260,
+ sizex => 850,
+ sizey => 220,
xmin => 0,
xmax => 96,
ymin => '0',
titles => ["Resistance"],
xlabel => "Channel",
ylabel => 'Ohm',
- sizex => 950,
- sizey => 260,
+ sizex => 850,
+ sizey => 220,
xmin => -1,
xmax => 96,
ymin => '0',
my $cnt = ($i*16)+$j;
my $s = sprintf("HAD:RICH:HV:CR1:0:%i:%i:CurrentMeasure1",$i,$j);
Perl2Epics::Connect("I$cnt",$s);
- my $s1 = sprintf("HAD:RICH:HV:CR1:0:%i:%i:VoltageMeasure",$i,$j);
- Perl2Epics::Connect("U$cnt",$s1);
- my $s2 = sprintf("HAD:RICH:HV:CR1:0:%i:%i:Resistance",$i,$j);
- Perl2Epics::Connect("R$cnt",$s2);
+ $s = sprintf("HAD:RICH:HV:CR1:0:%i:%i:VoltageMeasure",$i,$j);
+ Perl2Epics::Connect("U$cnt",$s);
+ $s = sprintf("HAD:RICH:HV:CR1:0:%i:%i:Resistance",$i,$j);
+ Perl2Epics::Connect("R$cnt",$s);
+ $s = sprintf("HAD:RICH:HV:CR1:0:%i:%i:Control:setOn",$i,$j);
+ Perl2Epics::Connect("ChnlsOn$cnt",$s);
}
+ my $s1 = sprintf("HAD:RICH:HV:CR1:0:%i:isModuleGood",$i);
+ Perl2Epics::Connect("ModulesOk$i",$s1);
}
Perl2Epics::Connect("HVPowerOn","HAD:RICH:HV:CR1:0:1000:PowerOn");
my $min = 1E5;
my $max = 0;
my $data = Perl2Epics::GetAll();
- $str = Hmon::MakeTitle(12, 13, "RICH HV", 1, "");
-
- $str .= "<style>\n";
- $str .= ".dot:\n {\n height: 40px;\n width:40px border-radius:20px; }\n";
- $str .= "</style>\n";
- $str .= "<span class="circle"></span>"
+ #$str = "<!DOCTYPE html>\n\n<html>\n<head>\n";
+ #$str .= "<style>\n.dot {\n height: 25px;\n width:25px;\n border-radius: 50%;\n display: inline-block;\n}\n \n ";
+ #$str .= "</style>\n</head>\n<body>\n";
+ $str .= Hmon::MakeTitle(13, 17, "RICH HV", 1, "");
+ $str .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"files/styles.css\">";
+
+ $str .= "<div style=\"text-align:left; margin-top: 10px;\">";
if ($data->{"HVPowerOn"}->{val} == 0) {
- $str .= "<p>Main Switch HV: Off</p>";
+ $str .= "<div><div class=\"redbutton\" style=\"float:left\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> Main Switch HV: OFF</p></div>";
} else {
- $str .= "<p>Main Switch HV: On</p>";
+ $str .= "<div><div class=\"greenbutton\" style=\"float:left\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> Main Switch HV: ON</p></div>";
}
- $str .= "</div>";
- #$str .= "<table class=\"rates \">\n";
- #$str .= "<tr><th><th>1<th>2<th>3<th>4<th>5<th>6\n";
- #$str .= "<tr><th>Curr.";
- #for(my $v = 1; $v<=6; $v++) {
- # $str .= sprintf("<td> %i nA\n",$data->{"I$v"}->{val} || -1);
- # }
- #$str .= "<tr><th>Volt.";
- #for(my $v = 1; $v<=6; $v++) {
- # $str .= sprintf("<td> %i V\n",$data->{"U$v"}->{val} || -1);
- # $min = min($min,$data->{"U$v"}->{val}||-1);
- # $max = max($max,$data->{"U$v"}->{val}||-1);
- # }
- #$str .= "</table>\n";
- $str .= qq@<img src="%ADDPNG files/RichCurr.png%" type="image/png">\n@;
- $str .= qq@<img src="%ADDPNG files/RichVolt.png%" type="image/png">\n@;
- $str .= qq@<img src="%ADDPNG files/RichResist.png%" type="image/png">\n@;
-
- $str .= Hmon::MakeFooter();
-
- Hmon::WriteFile("RichHV", $str);
+
+ if ($data->{"HVPowerOn"}->{val} != 0) {
+ #$str .= "<br>";
+ my $ChnlsOn = 0;
+
+ for(my $i = 0; $i <=5; $i++) {
+ for(my $j = 0; $j<=15; $j++) {
+ my $cnt = ($i*16)+$j;
+ if ($data->{"ChnlsOn$cnt"}->{val} eq '1') {$ChnlsOn++;}
+ }
+ }
+ if ($ChnlsOn == 0) {
+ $str .= "<div><div class=\"redbutton\" style=\"float:left;\" title=\"channels off\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> channels off (";
+ } elsif ($ChnlsOn > 66) {
+ $str .= "<div><div class=\"greenbutton\" style=\"float:left; background-color: orange;\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> channels on (";
+ } else {
+ $str .= "<div><div class=\"greenbutton\" style=\"float:left\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> channels on (";
+ }
+ $str .= "$ChnlsOn";
+ $str .= "/66)</p></div>";
+
+ my $ModulesOk = 0;
+
+ for(my $i = 0; $i <=5; $i++) {
+ if ($data->{"ModulesOk$i"}->{val} == 1) {$ModulesOk++;}
+ }
+ if ($ModulesOk == 0) {
+ $str .= "<div><div class=\"redbutton\" style=\"float:left\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> Modules Err (";
+ } else {
+ $str .= "<div><div class=\"greenbutton\" style=\"float:left\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> Modules Ok (";
+ }
+ $str .= "$ModulesOk/6)</p> <br><br>";
+ $str .= "</div>\n\n";
- $timer++;
+ $str .= qq@<img src="%ADDPNG files/RichCurr.png%" type="image/png">\n@;
+ $str .= qq@<img src="%ADDPNG files/RichVolt.png%" type="image/png">\n@;
+ $str .= qq@<img src="%ADDPNG files/RichResist.png%" type="image/png">\n@;
+ }
+
+ if ($data->{"HVPowerOn"}->{val} == 0){
+
+
+ $str .= "<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>";
+ }
+ $str .= Hmon::MakeFooter();
+ # $str .= "</body>";
+ # $str .= "</html>";
+ Hmon::WriteFile("RichHV", $str);
+ $timer++;
+
# average over current in sector 1 and 6
$current_sum += $data->{"I1"}->{val} + $data->{"I6"}->{val} if(defined $data->{"I1"}->{val} && defined defined $data->{"I6"}->{val});
#printf "cur val: %d\n", $data->{"I5"}->{val};
if( $timer % (4*$OVERCURRENT_period) == 0) {
$value = sprintf("%.2f / %.2f kV",$min/1000,$max/1000);
$longtext = sprintf("Averaged current in RICH HV: %i uA",$current_average);
- $longtext.= sprintf("<br>HV settings: %i, %i, %i, %i, %i, %i V", $data->{"U1"}->{val}||-1, $data->{"U2"}->{val}||-1,
- $data->{"U3"}->{val}||-1, $data->{"U4"}->{val}||-1,
- $data->{"U5"}->{val}||-1, $data->{"U6"}->{val}||-1);
+ # $longtext.= sprintf("<br>HV settings: %i, %i, %i, %i, %i, %i V", $data->{"U1"}->{val}||-1, $data->{"U2"}->{val}||-1,
+ # $data->{"U3"}->{val}||-1, $data->{"U4"}->{val}||-1,
+ # $data->{"U5"}->{val}||-1, $data->{"U6"}->{val}||-1);
#print "current_average: $current_average, sum: $current_sum\n";
$current_sum = 0;
QA::WriteQALog($flog,"other","rich",30,$qastate,"RICH HV",$value,$longtext);
}
- for (my $i = 0; $i <= 5;$i++){
- for (my $j = 0; $j<=15; $j++) {
- my $cnt = ($i*16)+$j;
- HPlot::PlotAdd("RichCurr",$data->{"I$cnt"}->{val}||-1,);
- HPlot::PlotAdd("RichVolt",$data->{"U$cnt"}->{val}||-1,);
- HPlot::PlotAdd("RichResist",$data->{"R$cnt"}->{val}||-1,);
+
+ if ($data->{"HVPowerOn"}->{val} != 0) {
+ for (my $i = 0; $i <= 5;$i++){
+ for (my $j = 0; $j<=15; $j++) {
+ my $cnt = ($i*16)+$j;
+ HPlot::PlotAdd("RichCurr",$data->{"I$cnt"}->{val}||-1,);
+ HPlot::PlotAdd("RichVolt",$data->{"U$cnt"}->{val}||-1,);
+ HPlot::PlotAdd("RichResist",$data->{"R$cnt"}->{val}||-1,);
+ }
+ }
+
+ HPlot::PlotAdd("RichResist",1,); #to avoid error messages
+
+ #print Dumper $data;
+ if($timer%8 == 0) {
+ HPlot::PlotDraw("RichCurr");
+ HPlot::PlotDraw("RichVolt");
+ HPlot::PlotDraw("RichResist");
+ #for(my $i = 1; $i<=6;$i++) {
+ # HPlot::PlotAdd("RichCurrLong",$data->{"I$i"}->{val}||-1,$i-1);
+ # }
+ #HPlot::PlotDraw("RichCurrLong");
}
}
- HPlot::PlotAdd("RichResist",1,); #to avoid error messages
- #print Dumper $data;
- if($timer%8 == 0) {
- HPlot::PlotDraw("RichCurr");
- HPlot::PlotDraw("RichVolt");
- HPlot::PlotDraw("RichResist");
- #for(my $i = 1; $i<=6;$i++) {
- # HPlot::PlotAdd("RichCurrLong",$data->{"I$i"}->{val}||-1,$i-1);
- # }
- #HPlot::PlotDraw("RichCurrLong");
- }
-
usleep(250000);
}
0x8a01 1 ECal1 mid
0x8a02 1 ECal2 mid
0x8a03 1 ECal3 mid
-0x8a04 0 ECal4 mid
+0x8a04 1 ECal4 mid
0x8a05 1 ECal5 mid
0x83c0 0 RICH0 mid
0x83c1 0 RICH1 mid
-thresholds/register_thresholds_jul14.db
\ No newline at end of file
+thresholds/register_thresholds_ff.db
\ No newline at end of file
#- Read serials_db
#&readSerialsDB("../start/serials_start.db", "StartVeto");
&readSerialsDB("../start/serials_start_trb3.db", "StartTrb3");
- &readSerialsDB("../hub/serials_hub.db", "Hub-All");
+ # &readSerialsDB("../hub/serials_hub.db", "Hub-All");
# &readSerialsDB("../hub/serials_trb3sc.db", "Hub-AllTrb3");
-&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Hub-AllTrb3");
- &readSerialsDB("../cts/serials_cts.db", "CTS");
+#&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Hub-AllTrb3");
+&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Ecal-Hub");
+&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Rich-Hub");
+&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Central-Hub");
+&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "CTS-Hub");
+&readSerialsDB("../hub/serials_hub.db", "RPC-Hub");
+&readSerialsDB("../hub/serials_hub.db", "TOF-Hub");
+&readSerialsDB("../hub/serials_hub.db", "Wall-Hub");
+&readSerialsDB("../hub/serials_hub.db", "Pion-Hub");
+&readSerialsDB("../hub/serials_hub.db", "StartTrb3Hub");
+
+&readSerialsDB("../cts/serials_cts.db", "CTS");
&readSerialsDB("../mdc/serials_mdcaddon.db", "MDC-AddOn");
&readSerialsDB("../mdc/serials_oep.db", "MDC-OEP");
# &readSerialsDB("../ecal/serials_trb3sc.db", "ECal");
&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "ECal");
#&readSerialsDB("../pion/serials_pion.db", "Pion");
- #&readSerialsDB("../rich/serials_rich.db", "RICH-ADCM");
+&readSerialsDB("../rich/serials_dirich.db", "Rich");
+&readSerialsDB("../rich/serials_dirich_concentrator.db", "Rich-Comb");
&readSerialsDB("../rpc/serials_rpc.db", "RPC");
#&readSerialsDB("../shower/serials_shower.db", "Shw-AddOn");
&readSerialsDB("../tof/serials_tof.db", "TOF");
#- Read addresses_db
#&readAddressesDB("../start/addresses_start.db", "StartVeto");
&readAddressesDB("../start/addresses_start_trb3.db", "StartTrb3");
- &readAddressesDB("../hub/addresses_hub.db","Hub-All");
- &readAddressesDB("../hub/addresses_hub_trb3sc.db","Hub-AllTrb3");
+
+ # &readAddressesDB("../hub/addresses_hub.db","Hub-All");
+ #&readAddressesDB("../hub/addresses_hub_trb3sc.db","Hub-AllTrb3");
+ &readAddressesDB("../hub/addresses_hub_trb3sc.db","Ecal-Hub");
+ &readAddressesDB("../hub/addresses_hub_trb3sc.db","Rich-Hub");
+ &readAddressesDB("../hub/addresses_hub_trb3sc.db","Central-Hub");
+ &readAddressesDB("../hub/addresses_hub_trb3sc.db","CTS-Hub");
+ &readAddressesDB("../hub/addresses_hub.db","RPC-Hub");
+ &readAddressesDB("../hub/addresses_hub.db","TOF-Hub");
+ &readAddressesDB("../hub/addresses_hub.db","Wall-Hub");
+ &readAddressesDB("../hub/addresses_hub.db","Pion-Hub");
+ &readAddressesDB("../hub/addresses_hub.db","StartTrb3Hub");
+
&readAddressesDB("../cts/addresses_cts.db", "CTS");
&readAddressesDB("../mdc/addresses_mdcaddon.db", "MDC-AddOn");
&readAddressesDB("../mdc/addresses_oep.db", "MDC-OEP");
&readAddressesDB("../ecal/addresses_ecal.db", "ECal");
#&readAddressesDB("../pion/addresses_pion.db", "Pion");
#&readAddressesDB("../rich/addresses_trb3sc.db", "Rich-Hub");
+ &readAddressesDB("../rich/addresses_dirich.db", "Rich");
+ &readAddressesDB("../rich/addresses_dirich_concentrator.db", "Rich-Comb");
+
+
&readAddressesDB("../rpc/addresses_rpc.db", "RPC");
# &readAddressesDB("../shower/addresses_shower.db", "Shw-AddOn");
&readAddressesDB("../tof/addresses_tof.db", "TOF");
$addr_ranges_href->{$type}->{'type'};
}
else{
- print "Address $addr does not fit the board type $type! Exit\n";
- exit(1);
+ print "Address $addr does not fit the board type $type! Skip it\n" if ($opt_verb);
+ next;
+ #print "Address $addr does not fit the board type $type! Exit\n";
+ #exit(1);
}
}
}
}
unless( defined $serial || defined $id ){
- print "Not all serials or/and ids are defined in $file2read! Line: \"$_\". Exit\n";
- $fh->close;
- exit(1);
+ print "Skipping not defined serial or/and ids in $file2read \n" if ($opt_verb);
+ next;
+
+ # print "Not all serials or/and ids are defined in $file2read! Line: \"$_\". Exit\n";
+ # $fh->close;
+ # exit(1);
}
#print " serial:$serial, id:$id \n";
my $addr = $conf_db_href->{'addresses'}->{$type}->{$serial}->{'addr'};
unless( defined $addr ){
- print STDERR "ERROR: Address is not defined for type: $type serial: $serial.\n";
+ print STDERR "ERROR: Address is not defined for type: $type serial: $serial.\n" if( $opt_verb ) ;
next;
}
-
- print STDERR "Network address $netaddr does not fit the data base $addr!\n"
- unless( $netaddr eq $addr );
-
+ unless( $netaddr eq $addr ){
+ print STDERR "Network address $netaddr does not fit the data base $addr!\n" if( $opt_verb ) ;
+ }
}
}
}
if( $id eq $conf_db_href->{'serials'}->{$type}->{$serial} ){
my $addr = $conf_db_href->{'addresses'}->{$type}->{$serial}->{'addr'};
- print "Network address $netaddr does not fit the data base $addr!\n"
- unless($netaddr eq $addr);
-
+ unless($netaddr eq $addr){
+ print "Network address $netaddr does not fit the data base $addr!\n" if( $opt_verb );
+ }
if( any {$_ eq $addr} @subEvtId_list ){
print "$id $addr $addr\n";
}