oldlogs
oldscripts
*.sav*
+threshold
+thr_trb3
xterm -e bash --login -c '
ssh hadaq@lxhadesdaqp "
- source /home/hadaq/.bash_profile
+ source /home/hadaq/.bash_profile
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
echo \"Starting a ECal Padiwa Power-Cycle...\"
cd /home/hadaq/hadesdaq/utils;
PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./ECAL_LV5_Powercycle.sh;
#!/bin/bash
-export myvar=$(doyoureallywant.pl "to powercycle the RPC/ECAL LV?")
+export myvar=$(doyoureallywant.pl "to powercycle the RPC/ECAL LV" "WARNING: Turn off the beam request in the back of the counting house before!")
if [ $myvar == "256" ]; then exit; fi
xterm -e bash --login -c '
ssh hadaq@lxhadesdaqp "
- source /home/hadaq/.bash_profile
+ source /home/hadaq/.bash_profile
echo Switch off beam abort
ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
- sleep .1
+ sleep .1
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
echo \"Starting a RPC/ECAL power cycle...\"
cd /home/hadaq/hadesdaq/utils;
PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./ECAL_Powercycle.pl;
xterm -e bash --login -c '
ssh hadaq@lxhadesdaqp "
- source /home/hadaq/.bash_profile
+ source /home/hadaq/.bash_profile
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
echo \"Starting a HUB-Power-Cycle...\"
cd /home/hadaq/hadesdaq/utils;
PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./HUB_Powercycle.pl;
#!/bin/bash
export myvar=$(doyoureallywant.pl "to make a MDC powercycle? There will be no further warnings!")
+# export myvar=$(doyoureallywant.pl "to make a MDC powercycle? There will be no further warnings!" "WARNING: Stop Trigger before doing power cyclces!")
if [ $myvar == "256" ]; then exit; fi
xterm -e bash --login -c '
ssh hadaq@lxhadesdaqp "
source /home/hadaq/.bash_profile
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
echo \"Starting a RICH power cycle...\"
cd /home/hadaq/trbsoft/hadesdaq/utils;
PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./RICH_Powercycle.pl;
xterm -e bash --login -c '
ssh hadaq@lxhadesdaqp "
source /home/hadaq/.bash_profile
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
echo \"Starting a Start power cycle...\"
cd /home/hadaq/hadesdaq/utils;
bash Powercycle_Start.sh;
#!/bin/bash
-export myvar=$(doyoureallywant.pl "to powercycle the MDC/TOF/Central LV?")
+export myvar=$(doyoureallywant.pl "to powercycle the MDC/TOF/Central LV" "WARNING: Turn off the beam request in the back of the counting house before!")
if [ $myvar == "256" ]; then exit; fi
xterm -e bash --login -c '
ssh hadaq@lxhadesdaqp "
- source /home/hadaq/.bash_profile
+ source /home/hadaq/.bash_profile
echo Switch off beam abort
ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
- sleep .1
+ sleep .1
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
echo \"Starting a MDC/TOF/Central power cycle...\"
cd /home/hadaq/hadesdaq/utils;
PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./MdcTofCentral_Powercycle.pl;
#!/bin/bash
-export myvar=$(doyoureallywant.pl "to powercycle the Triggerbox and Beam Monitoring?")
+export myvar=$(doyoureallywant.pl "to powercycle the Triggerbox and Beam Monitoring" "WARNING: Turn off the beam request in the back of the counting house before!")
if [ $myvar == "256" ]; then exit; fi
+# export myvar=$(zenity --warning --title=\"Beam Control\" --text=\"Switch off beam first!\" --height=10 --width=100)
+# if [ $myvar == "256" ]; then exit; fi
+
+
xterm -e bash --login -c '
ssh hadaq@lxhadesdaqp "
- source /home/hadaq/.bash_profile
+ source /home/hadaq/.bash_profile
echo Switch off beam abort
ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
- sleep .1
+ sleep .1
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
echo \"Starting a power cycle of Triggerbox and Beam Monitoring...\"
cd /home/hadaq/hadesdaq/utils;
bash Powercycle_Trigger.sh;
xterm -e bash --login -c '
ssh hadaq@lxhadesdaqp "
source /home/hadaq/.bash_profile
+ echo Switch off trigger
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
echo \"Starting a Wall power cycle...\"
cd /home/hadaq/hadesdaq/utils;
PERLLIB=$EPICS_BASE/lib/perl ./Wall_Powercycle.pl;
#!/bin/bash
-export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TOF, FW, RICH, RPC, ECAL and Start boards ")
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TOF, FW, RICH, RPC, ECAL and Start boards") #"WARNING: Turn off the beam request in the back of the counting house before!")
if [ $myvar == "256" ]; then exit; fi
notifyall.sh "DAQ" "<I> The boards of TOF, FW, RICH, RPC, ECAL and Start are going to be rebooted." "STARTUP" &
source /home/hadaq/.bash_profile
echo Switch off trigger
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
+ echo Mute DAQi
+ ssh hadaq@hadesp33 \"killall -USR1 speakdaemon.pl\"
+# echo Switch off beam abort
+# ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
+# sleep .1
cd ~/trbsoft/trbnettools/binlocal
echo \"This does not include MDC, Extra Boards, Hubs, CTS!\"
-
-
+
+
echo TOF FW
for TRB3_SERVER in trbp088 trbp263 trbp006 trbp262 trbp265 trbp242 trbp074 trbp267 trbp266;
do
TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
done
-echo RICH
+echo RICH
for TRB3_SERVER in trb3sc136 trb3sc158 trb3sc144 trb3sc139 trb3sc163 trb3sc153 trb3sc164 trb3sc166 trb3sc137 trb3sc138 trb3sc162 trb3sc141;
do
ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
- TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xfe51 #to prevent a race condition between reset issued by combiner and Dirich not rebooting afterwards
- TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
+ TRB3_SERVER=\$TRB3_SERVER timeout 1s ./trbcmd reload 0xfe51 #to prevent a race condition between reset issued by combiner and Dirich not rebooting afterwards
+ TRB3_SERVER=\$TRB3_SERVER timeout 1s ./trbcmd reload 0xffff
sleep .3
done
-
+
echo RPC
- echo Switch off beam abort
- ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
- sleep .1
for TRB3_SERVER in trb3sc317 trb3sc319 trb3sc320 trb3sc315 trb3sc318 trb3sc316;
do
ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
sleep .3
- done
-
-sleep 2
-
+ done
+
+sleep 2
+
echo ECal
for TRB3_SERVER in trb3sc134 trb3sc009 trb3sc130 trb3sc128 trb3sc131 trb3sc129 ;
do
sleep .3
done
-
-
-echo Start
+
+
+echo Start
for TRB3_SERVER in trb3sc438;
do
ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
- done
-
-
+ done
+
+
echo \"Done - Check for Error messages above, then do a DAQ restart!\"
sleep 10
"
echo Switch off trigger
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
# trbcmd reload 0xfe71
- trbcmd reload 0x120
+ timeout 1s trbcmd reload 0x120
cd ~/trbsoft/trbnettools/binlocal
for TRB3_SERVER in trb3sc134 trb3sc009 trb3sc130 trb3sc128 trb3sc131 trb3sc129 ;
do
ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
- TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
+ TRB3_SERVER=\$TRB3_SERVER timeout 1s ./trbcmd reload 0xffff
sleep .6
done
#!/bin/bash
-export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot auxiliary boards in the system")
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot auxiliary boards in the system" "WARNING: Turn off the beam request in the back of the counting house before!")
if [ $myvar == "256" ]; then exit; fi
notifyall.sh "DAQ" "<I> Auxiliary boards are going to be rebooted." "STARTUP" &
source /home/hadaq/.bash_profile
echo Switch off trigger
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
+ echo Switch off beam abort
+ ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
+ sleep .1
# trbcmd reload 0x8d00
trbcmd reload 0x0010
echo Switch off trigger
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
# trbcmd reload 0xfffe
-
-trbcmd reload 0x8011
-trbcmd reload 0x8013
-trbcmd reload 0x8014
-trbcmd reload 0x8015
-trbcmd reload 0x8016
-trbcmd reload 0x8017
-trbcmd reload 0x8018
+# trbcmd reload 0x8011
+# trbcmd reload 0x8013
+# trbcmd reload 0x8014
+# trbcmd reload 0x8015
+# trbcmd reload 0x8016
+# trbcmd reload 0x8017
+# trbcmd reload 0x8018
trbcmd reload 0x8800
trbcmd reload 0x8810
+trbcmd reload 0xfe65
+
trbcmd reload 0x8000
echo Done
notifyall.sh "DAQ" "<I> OEPs are going to be rebooted." "STARTUP" &
xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
+ ssh hadaq@lxhadesdaqp "
+ source /home/hadaq/.bash_profile
echo Switch off trigger
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
~/bin/rebootoep_x11.sh
+ "
sleep 2
'
for TRB3_SERVER in trb3sc136 trb3sc158 trb3sc144 trb3sc139 trb3sc163 trb3sc153 trb3sc164 trb3sc166 trb3sc137 trb3sc138 trb3sc162 trb3sc141;
do
ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
- TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xfe51 #to prevent a race condition between reset issued by combiner and Dirich not rebooting afterwards
- TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
+ TRB3_SERVER=\$TRB3_SERVER timeout 1s ./trbcmd reload 0xfe51 #to prevent a race condition between reset issued by combiner and Dirich not rebooting afterwards
+ TRB3_SERVER=\$TRB3_SERVER timeout 1s ./trbcmd reload 0xffff
sleep .6
done
#!/bin/bash
-export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot RPC boards in the system")
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot RPC boards in the system") #"WARNING: Turn off the beam request in the back of the counting house before!")
if [ $myvar == "256" ]; then exit; fi
notifyall.sh "DAQ" "<I> The RPC boards are going to be rebooted." "STARTUP" &
ssh hadaq@lxhadesdaqp "
source /home/hadaq/.bash_profile
echo Switch off trigger
- timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
- echo Switch off beam abort
- ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
- sleep .1
+ timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
+# echo Switch off beam abort
+# ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
+# sleep .1
cd ~/trbsoft/trbnettools/binlocal
-
+
for TRB3_SERVER in trb3sc317 trb3sc319 trb3sc320 trb3sc315 trb3sc318 trb3sc316;
do
ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
- TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
+ TRB3_SERVER=\$TRB3_SERVER timeout 1s ./trbcmd reload 0xffff
sleep .6
- done
-
+ done
+
# TRB3_SERVER=trb3sc317 ./trbcmd reload 0xffff
# TRB3_SERVER=trb3sc319 ./trbcmd reload 0xffff
# TRB3_SERVER=trb3sc320 ./trbcmd reload 0xffff
for TRB3_SERVER in trb3sc438;
do
ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
- TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
+ TRB3_SERVER=\$TRB3_SERVER timeout 1s ./trbcmd reload 0xffff
done
echo \"Done - Check for Error messages above, then do a DAQ restart!\"
#!/bin/bash
-export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TOF and FW ")
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TOF and FW") #"WARNING: Turn off the beam request in the back of the counting house before!")
if [ $myvar == "256" ]; then exit; fi
notifyall.sh "DAQ" "<I> The boards of TOF and FW are going to be rebooted." "STARTUP" &
echo Switch off trigger
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
cd ~/trbsoft/trbnettools/binlocal
+# echo Switch off beam abort
+# ssh hadeswrp01 \"echo \"W3000000010\" >/dev/ttyUSB0\"
+# sleep .1
-
-
+# echo \"Trying reload via TrbNet\"
+# timeout .2s trbcmd reload 0xfe47
+# timeout .2s trbcmd reload 0xfe40
for TRB3_SERVER in trbp088 trbp263 trbp006 trbp262 trbp265 trbp242 trbp074 trbp267 trbp266;
do
ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
- TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
+ TRB3_SERVER=\$TRB3_SERVER timeout 1s ./trbcmd reload 0xffff
sleep .3
done
-
+
echo \"Done - Check for Error messages above, then do a DAQ restart!\"
sleep 10
notifyall.sh "DAQ" "<I> FPGA are being reprogrammed." "STARTUP" &
-timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400 # Switch off trigger
-
xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
ssh -X hadaq@lxhadesdaqp "
source /home/hadaq/.bash_profile
timeout 1s trbcmd setbit 0x0003 0xa0c0 0x400
cd ~/trbsoft/hadesdaq/main/
./startup.pl -f main_hades.script -o file -m TOF -m RPC -m WALL -m RICH -m STARTCTS -m MDC -m MDCDATASET --eb off
+ echo \"Done. Start DAQ!\"
#echo \"First config run\"
#bash startup_briccolage.sh
"
'
-notifyall.sh "DAQ" "<I> FPGA have been programmed and DAQ is started." "STARTUP" &
+notifyall.sh "DAQ" "<I> FPGA have been programmed." "STARTUP" &
export DAQOPSERVER=hadesp31
echo Reloading RPC thresholds
cd /home/hadaq/trbsoft/hadesdaq/rpc/
- /home/hadaq/trbsoft/daq/rpc/trb3sc/thresholds/resetThresholdAllJan.sh
+ /home/hadaq/trbsoft/daq/rpc/trb3sc/thresholds/setThresholdAllJan.sh
/home/hadaq/trbsoft/daq/rpc/setAllMultBoard.sh
- echo Reloading fRPC thresholds
- cd /home/hadaq/trbsoft/hadesdaq/frpc/
- /home/hadaq/trbsoft/daq/frpc/setThreshold.sh
+ #echo Reloading fRPC thresholds
+ #cd /home/hadaq/trbsoft/hadesdaq/frpc/
+ #/home/hadaq/trbsoft/daq/frpc/setThreshold.sh
echo Done
sleep 5
'
--- /dev/null
+<h3>VETO hit rate</h3>
+<p>
+This button shows the rate of hits on VETO.
+</p>
+<h4>Error Handling </h4>
+
+<dl>
+This button should not become red - If it does: RUN!
+</dl>