]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
Update GUI scripts
authorhadaq <jan@lxhadeb07>
Thu, 28 Jan 2021 09:29:11 +0000 (10:29 +0100)
committerhadaq <jan@lxhadeb07>
Thu, 28 Jan 2021 09:29:11 +0000 (10:29 +0100)
control/gui/expert/Reload_RPC_Thresholds [deleted file]
control/gui/expert/Thresholds_ECAL [moved from control/gui/expert/Set_ECAL_Thr with 100% similarity]
control/gui/expert/Thresholds_RICH [moved from control/gui/expert/Set_RICH_Thr with 100% similarity]
control/gui/expert/Thresholds_RPC [new file with mode: 0755]
control/gui/expert/Thresholds_STS [new file with mode: 0755]
control/gui/expert/Thresholds_TOF [moved from control/gui/expert/Set_TOF_Thr with 100% similarity]

diff --git a/control/gui/expert/Reload_RPC_Thresholds b/control/gui/expert/Reload_RPC_Thresholds
deleted file mode 100755 (executable)
index f41d2fd..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-
-xterm -geometry 80x24 -bg orange -fg black -e bash -c '
-  echo Reloading RPC thresholds
-  cd /home/hadaq/trbsoft/hadesdaq/rpc/utilities/
-  ./setTriggerBoardSX.sh
-  ./setThresholdsAll.sh
-  sleep 5
-'
-
-notifyall.sh "DAQ" "<I> RPC-Thresholds have been reloaded." "RPC" &
diff --git a/control/gui/expert/Thresholds_RPC b/control/gui/expert/Thresholds_RPC
new file mode 100755 (executable)
index 0000000..0674468
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+
+xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+  echo Reloading RPC thresholds
+  cd /home/hadaq/trbsoft/hadesdaq/rpc/
+  /home/hadaq/trbsoft/daq/rpc/trb3sc/thresholds/resetThresholdAllJan.sh
+  /home/hadaq/trbsoft/daq/rpc/setAllMultBoard.sh
+
+#  ./setTriggerBoardSX.sh
+#  ./setThresholdsAll.sh
+  sleep 5
+'
+
+notifyall.sh "DAQ" "<I> RPC-Thresholds have been reloaded." "RPC" &
diff --git a/control/gui/expert/Thresholds_STS b/control/gui/expert/Thresholds_STS
new file mode 100755 (executable)
index 0000000..de0aacb
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+export myvar=$(doyoureallywant.pl "to reset the STS thresholds?")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
+  ssh hadaq@hadesp33 "
+  export DAQOPSERVER=hadesp31
+  echo \"  <STS_Thr> Connected to hades33...\"
+  echo \"  <STS_Thr> Setting Thresholds...\"
+  cd /home/hadaq/trbsoft/hadesdaq/sts 
+  
+  /home/hadaq/trbsoft/hadesdaq/sts/settings/reset_asics_sts1.sh
+  /home/hadaq/trbsoft/hadesdaq/sts/settings/reset_asics_sts2.sh
+  /home/hadaq/trbsoft/hadesdaq/sts/settings/set_config_sts1.sh
+  /home/hadaq/trbsoft/hadesdaq/sts/settings/set_config_sts2.sh
+  
+  echo \"Loading STS Pasttrec settings finished\"
+  sleep 10
+"
+'
+