$horizontalLayout->addWidget( $groupBox_4 );
+ my $groupBox_5 = Qt::GroupBox( $centralwidget );
+ $self->{groupBox_5} = $groupBox_5;
+ $groupBox_5->setObjectName( "groupBox_5" );
+ my $vl_gb5 = Qt::VBoxLayout( $groupBox_5 );
+ $self->{vl_gb5} = $vl_gb5;
+ $vl_gb5->setObjectName( "vl_gb5" );
+
+ $horizontalLayout->addWidget( $groupBox_5 );
+
+
my $vl_top = Qt::VBoxLayout( );
$self->{vl_top} = $vl_top;
$dir = "eb";
make_buttons($self, $dir, \$cur_button_number, $groupBox_3, $vl_gb3);
-
$dir = "expert";
make_buttons($self, $dir, \$cur_button_number, $groupBox_4, $vl_gb4);
+
+ $dir = "power";
+ make_buttons($self, $dir, \$cur_button_number, $groupBox_5, $vl_gb5);
#print "cur_button: $cur_button_number\n";
#$layoutWidget->updateGeometry();
$self->{groupBox_2}->setTitle( Qt::Application::translate( 'MainWindow', "Monitor Tools", undef, Qt::Application::UnicodeUTF8() ) );
$self->{groupBox_3}->setTitle( Qt::Application::translate( 'MainWindow', "Eventbuilder Tools", undef, Qt::Application::UnicodeUTF8() ) );
$self->{groupBox_4}->setTitle( Qt::Application::translate( 'MainWindow', "Expert Tools", undef, Qt::Application::UnicodeUTF8() ) );
+ $self->{groupBox_5}->setTitle( Qt::Application::translate( 'MainWindow', "Power Tools", undef, Qt::Application::UnicodeUTF8() ) );
# $self->{pushButton}->setText( Qt::Application::translate( 'MainWindow', "Quit DAQ-Control", undef, Qt::Application::UnicodeUTF8() ) );
$self->{checkBox}->setText( Qt::Application::translate( 'MainWindow', "Show Expert Tools", undef, Qt::Application::UnicodeUTF8() ) );
#!/bin/bash
cd /home/hadaq/trbsoft/hadesdaq/control/gui/
-./call_programs_wrapper.sh -geometry -0-0 &
-#/home/hadaq/trbsoft/hadesdaq/control/gui/call_programs_wrapper.sh -geometry -0-0 &
+/home/hadaq/trbsoft/daq/control/gui/call_programs2.pl -geometry -0-0 &
+#/home/hadaq/trbsoft/hadesdaq/control/gui/call_programs_wrapper.sh -geometry -0-0 &
#cd /home/hadaq/trbsoft/daq/control/gui/
#./call_programs2.pl -geometry -0-0
+++ /dev/null
-ssh -X lxhadeb06 "export PATH=\$PATH:\$HOME/bin; echo $PATH; cd /home/hadaq/trbsoft/hadesdaq/control/gui/; ./call_programs2.pl -geometry -0-0"
-#ssh -X lxhadeb06 ". .bashrc; export PATH=\$PATH:\$HOME/bin; echo $PATH; cd /home/hadaq/trbsoft/hadesdaq/control/gui/; ./call_programs2.pl -geometry -0-0"
-
-#cd /home/hadaq/trbsoft/daq/control/gui/
-#/home/hadaq/trbsoft/daq/control/gui/call_programs2.pl -geometry -0-0
--- /dev/null
+call_programs_local.sh
\ No newline at end of file
--- /dev/null
+ssh -X lxhadeb06 "export PATH=\$PATH:\$HOME/bin; echo $PATH; cd /home/hadaq/trbsoft/hadesdaq/control/gui/; ./call_programs2.pl -geometry -0-0"
+#ssh -X lxhadeb06 ". .bashrc; export PATH=\$PATH:\$HOME/bin; echo $PATH; cd /home/hadaq/trbsoft/hadesdaq/control/gui/; ./call_programs2.pl -geometry -0-0"
+
+#cd /home/hadaq/trbsoft/daq/control/gui/
+#/home/hadaq/trbsoft/daq/control/gui/call_programs2.pl -geometry -0-0
--- /dev/null
+ssh -X lxhadesdaq "export PATH=\$PATH:\$HOME/bin; echo $PATH; cd /home/hadaq/trbsoft/hadesdaq/control/gui/; ./call_programs2.pl -geometry -0-0"
+#ssh -X lxhadeb06 ". .bashrc; export PATH=\$PATH:\$HOME/bin; echo $PATH; cd /home/hadaq/trbsoft/hadesdaq/control/gui/; ./call_programs2.pl -geometry -0-0"
+
+#cd /home/hadaq/trbsoft/daq/control/gui/
+#/home/hadaq/trbsoft/daq/control/gui/call_programs2.pl -geometry -0-0
export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "restart the DAQ")
if [ $myvar == "256" ]; then exit; fi
-#notifyall.sh "DAQ" "<I> DAQ is going to be restarted." "STARTUP" &
+notifyall.sh "DAQ" "<I> DAQ is going to be restarted." "STARTUP" &
xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
- ssh hadaq@lxhadesdaq "
+ ssh hadaq@lxhadesdaqp "
source /home/hadaq/.bash_profile
echo \" <Startup> Connected to lxhadesdaq...\"
echo \" <Startup> Starting DAQ with default settings...\"
"
'
-#notifyall.sh "DAQ" "<I> DAQ has been started." "STARTUP" &
+notifyall.sh "DAQ" "<I> DAQ has been started." "STARTUP" &
notifyall.sh "DAQ" "<I> FPGA are being reprogrammed." "STARTUP" &
xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
- ssh -X hadaq@lxhadesdaq "
+ ssh -X hadaq@lxhadesdaqp "
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 \"First config run\"
export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl " reboot the MDC-OEPs")
if [ $myvar == "256" ]; then exit; fi
-
-ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
+ssh hadaq@lxhadesdaqp "
~/bin/rebootoep_x11.sh
-'
+sleep 2
"
+'
notifyall.sh "DAQ" "<I> OEPs rebooted" "MDC"&
export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl " reboot the MDC-Hubs")
if [ $myvar == "256" ]; then exit; fi
-ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
-trbcmd reset;
-trbcmd reload 0xfe11
-'";
+ trbcmd reset
+ trbcmd reload 0xfe11
+'
+
sleep 8;
notifyall.sh "DAQ" "<I> MDC-Hubs rebooted" "MDC"&
#!/bin/bash
-ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
+ssh hadaq@lxhadesdaqp "
+echo "reviveoep.pl"
reviveoep.pl
- '
- "
-
+sleep 10
+"
+'
+++ /dev/null
-#!/bin/bash
-#/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
-
-ssh -X hadaq@lxhadesdaq "
- xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Restarting Eventbuilder 1 - 16"
- stoptrigger.sh
- cd ~/trbsoft/hadesdaq/evtbuild/
- sleep 10 && starttrigger.sh &
- ./start_eb_gbe.sh
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted with last prefix" "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 2 BNET builder nodes"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 2
- sleep 2
- '
- "
-
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted using 2 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 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" &
-
#!/bin/bash
# 100Hz -> 2e6 pulservalue = 0x1E8480
-ssh -X hadaq@lxhadesdaq "
- xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "start the TDC calibration")
+if [ $myvar == "256" ]; then exit; fi
+
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> TDC calibration is starting." "EB" &
+
+xterm -geometry 80x24 -bg orange -fg black -e bash -c '
/home/hadaq/trbsoft/hadesdaq/evtbuild/tdc_calib_start.sh
sleep 20
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have started TDC-Calibration procedure." "EB" &
+'
+
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have started the calibration procedure." "EB" &
#!/bin/bash
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "stop the TDC calibration")
+if [ $myvar == "256" ]; then exit; fi
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> TDC calibration is stopping." "EB" &
-ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
/home/hadaq/trbsoft/hadesdaq/evtbuild/tdc_calib_stop.sh
sleep 30;
-
- '
- "
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have stopped TDC-Calibration procedure." "EB" &
+ '
+
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have stopped the TDC-Calibration procedure." "EB" &
# '
# "
-ssh -X hadaq@lxhadesdaq "
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "start the TDC calibration")
+if [ $myvar == "256" ]; then exit; fi
+
+$HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> TDC calibration is starting." "EB" &
+
+
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
echo "Setting file prefix be"
/usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb07:8099/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" &
+
+$HOME/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are writing beam files." "EB" &
ssh -X hadaq@lxhadesdaq "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Setting file prefix be"
+ echo "Setting file prefix te"
/usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb07:8099/Master/BNET/StartRun/execute?prefix=te&oninit=10\"
echo set prefix te on BNET master controller
sleep 2
+++ /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 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 Setting file prefix tc
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb07:8099/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" &
-
--- /dev/null
+#!/bin/bash
+
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "restart the Eventbuilders")
+if [ $myvar == "256" ]; then exit; fi
+
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
+
+xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+ssh -X hadaq@lxhadesdaq "
+ echo \"Restarting Eventbuilder 1 - 16\"
+ stoptrigger.sh
+ cd ~/trbsoft/hadesdaq/evtbuild/
+ sleep 12 && starttrigger.sh &
+ ./start_eb_gbe.sh
+ "
+'
+
+/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted with last prefix" "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 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 "Setting file prefix ri"
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb07:8099/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 are writing RICH files." "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 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 "Setting file prefix ec"
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb07:8099/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" &
-
+++ /dev/null
-#!/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 "Setting file prefix st"
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb07:8099/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" &
-
+++ /dev/null
-#!/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 "Setting file prefix md"
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb07:8099/Master/BNET/StartRun/execute?prefix=md&oninit=10\"
- 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" &
-
+++ /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 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 "Setting file prefix sh"
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb07:8099/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" &
-
+++ /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 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 "Setting file prefix pt"
- /usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt \"http://lxhadeb07:8099/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
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to reprogram the BLR-FPGA \(should not have an effect on other systems\) and reload the settings for the BLR")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+echo "reinit FPGA"
+command_client.pl -e etraxp107 -c "jam_trbv2 --trb -aRUN_XILINX_PROC /home/hadaq/rpc/fpga/20110301_rpc_a.stapl"
+sleep 1
+echo "reload the BLR settings"
+command_client.pl -e etraxp107 -c "spi_trbv2_7 /home/hadaq/cts/mult_thresholds/ctsblr_thresholds"
+sleep 4
+'
+
--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to reload the settings for the BLR")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+command_client.pl -e etraxp107 -c "spi_trbv2_7 /home/hadaq/cts/mult_thresholds/ctsblr_thresholds"
+sleep 4
+'
+
+#ssh hadaq@lxhadesdaq "command_client.pl -e etraxp107 -c \"spi_trbv2_7 /home/hadaq/cts/mult_thresholds/ctsblr_thresholds\" "
+++ /dev/null
-#!/bin/bash
-# JAM took from startup_briccolage.sh without starting everything
-xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
- ssh hadaq@hadesp31 "
- export DAQOPSERVER=hadesp31;
- echo \" <TrbNet> Pexor clean-up on hades31...\";
- pkill -USR1 trbnetd 2>/dev/null;
- killall trbcmd 2>/dev/null;
- trbcmdlocal W 0x703 0x20;
- trbcmdlocal f 3;
- trbcmdlocal W 0x702 2;
- echo \" <TrbNet> Doing Reset...\";
- tryreset.pl;
- pkill -USR2 trbnetd;
- pgrep trbnetd 1>/dev/null || trbnetd;
- #trbcmdlocal reset;
- echo \"Set default CTS setup\"
- # following from cts/startup.script:
- trbcmdlocal clearbit 0x0003 0xa0c0 0x20000000 #set profile B to start
- trbcmdlocal w 0x0003 0xA0E0 0xcccccccc
- trbcmdlocal w 0x0003 0xA0E1 0xcc
- trbcmdlocal loadbit 0x003 0xA0C1 0x0000000F 0x00000004
- trbcmdlocal setbit 0x0003 0xA0C2 0x01000000
- trbcmdlocal -f /home/hadaq/trbsoft/hadesdaq/cts/cts_settings_mon.trbcmd
- trbcmdlocal loadbit 0x0003 0xa0f0 0xffff0000 0xfff0000
- #All calib to EB1
- trbcmdlocal w 0x0003 0xa0f3 0xff1
-# turn off multi event queue, as these garble the data from the TRB2s
- stoptrigger.sh; trbcmdlocal w 0xff7f 0x8307 0 ; starttrigger.sh
- echo \"Repairing trbnetd and pexor done\"
- sleep 130;
- "
- '
+++ /dev/null
-#!/bin/bash
-export myvar=$(doyoureallywant.pl "to make a RICH powercycle?")
-if [ $myvar == "256" ]; then exit; fi
-
-export DAQOPSERVER=hadesp31
-trbcmd w 0xfffb 0x20 0x8000
-
+++ /dev/null
-#!/bin/bash
-export myvar=$(doyoureallywant.pl "to make a RICH powercycle?")
-if [ $myvar == "256" ]; then exit; fi
-
-export DAQOPSERVER=hadesp31
-trbcmd w 0xfffb 0x20 0x8000
-
--- /dev/null
+#!/bin/bash
+export myvar=$(doyoureallywant.pl "to Reload the RICH?")
+if [ $myvar == "256" ]; then exit; fi
+
+export DAQOPSERVER=hadesp31
+trbcmd reload 0xfe51
+trbcmd reload 0xfe52
+
cd /home/hadaq/JoF/HV_RICH/
. epics
./setCrate.sh 1
- ./setHV.sh gain_alignement_HV_1.5E+06_fifth.dat
-# ./setHV.sh gain_alignement_HV_1.5E+06.dat
+# ./setHV.sh gain_alignement_HV_1.5E+06_fifth.dat
+ ./setHV.sh gain_alignement_HV_1.5E+06.dat
# ./setHV.sh gain_alignement_HV_2.0E+06.dat
- ./setHVon_off.sh gain_alignement_HV_1.5E+06_fifth.dat 2
-# ./setHVon_off.sh gain_alignement_HV_1.5E+06.dat 2
+# ./setHVon_off.sh gain_alignement_HV_1.5E+06_fifth.dat 2
+ ./setHVon_off.sh gain_alignement_HV_1.5E+06.dat 2
# ./setHVon_off.sh gain_alignement_HV_2.0E+06.dat 2
echo \"Done\"
sleep 10
#if [ $myvar == "256" ]; then exit; fi
#notifyall.sh "DAQ" "<I> DAQ is going to be restarted." "STARTUP" &
+export DAQOPSERVER=hadesp31
+cd /home/hadaq/trbsoft/hadesdaq/control/ctsmon
+perl ./mon_cts.pl
+sleep 1
+exit
+
+
#xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
ssh -X hadaq@lxhadeb06 "
source /home/hadaq/.bashrc
--- /dev/null
+#!/bin/bash
+vncviewer-tigervnc -passwd /home/hadaq/.vnc/passwd_scs lxhaddcs03:44
#!/bin/bash
-vncviewer -passwd ~/.vnc/daqvncpasswd hadesdaq01:1 &
+vncviewer -passwd ~/.vnc/passwd hades30:1 &
--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to powercycle RICH,ECAL LV?")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -e bash --login -c '
+ ssh hadaq@lxhadesdaq "
+ source /home/hadaq/.bash_profile
+ echo \'Starting power cycle...\'
+
+ cd /home/hadaq/hadesdaq/utils;
+ export PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl
+ ./RICH_Powercycle.pl;
+ #./ECAL_5V_Entrance_Powercycle.sh;
+ #./ECAL_LV5_Powercycle;
+ #./HUB_Powercycle.pl;
+
+sleep 5
+"
--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to powercycle the RICH LV?")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -e bash --login -c '
+ ssh hadaq@lxhadesdaq "
+ source /home/hadaq/.bash_profile
+ echo \"Starting a RICH power cycle...\"
+ cd /home/hadaq/hadesdaq/utils;
+ PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./RICH_Powercycle.pl;
+ sleep 5
+ "
+'
--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to powercycle the RICH Fans?")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -e "
+cd ../../../../hadesdaq/utils;
+./odroid_HMP_Powercycle.sh odroid1 /dev/HAMEG_HAMEG_HO720_100030280929;
+sleep 5
+"
--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to make a ECAL 5V Entrance Rack powercycle? There will be no further warnings!")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -e "
+cd ../../../../hadesdaq/utils;
+./ECAL_5V_Entrance_Powercycle.sh
+"
--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to make a ECAL Padiwa 5V powercycle? There will be no further warnings!")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -e "
+cd ../../../../hadesdaq/utils;
+./ECAL_LV5_Powercycle.sh;
+"
#!/bin/bash
-export myvar=$(doyoureallywant.pl "to make a MDC powercycle? There will be no further warnings!")
+export myvar=$(doyoureallywant.pl "to make a Forward Wall powercycle? There will be no further warnings!")
if [ $myvar == "256" ]; then exit; fi
xterm -e "
--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to powercycle the RICH Fans?")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -e "
+cd ../../../../hadesdaq/utils;
+./odroid_HMP_Powercycle.sh odroid1 /dev/HAMEG_HAMEG_HO720_020546031;
+sleep 5
+"
--- /dev/null
+#!/bin/bash
+
+export myvar=$(doyoureallywant.pl "to powercycle the Hubs and Rich Sensor Board?")
+if [ $myvar == "256" ]; then exit; fi
+
+xterm -e "
+echo 'Starting power cycle...'
+cd ../../../../hadesdaq/utils;
+./HUB_Powercycle.pl;
+sleep 5
+"
#!/bin/bash
xterm -e "
-export myvar=$(doyoureallywant.pl 'to do a power cycle on Wall')
+export myvar=$(doyoureallywant.pl 'to do a power cycle on RPC')
if [ $myvar == '256' ]; then exit; fi
echo 'Sending power cycle request'
--- /dev/null
+/home/hadaq/trbsoft/dcs/archive/
\ No newline at end of file
--- /dev/null
+#!/usr/bin/perl -w
+
+use warnings;
+use strict;
+use Time::HiRes qw( gettimeofday usleep time );
+use Data::Dumper;
+use Hmon;
+use QA;
+use LWP::Simple;
+use JSON qw( decode_json );
+use POSIX qw/floor ceil strftime/;
+use lib '.';
+use getebjson;
+
+use DateTime;
+use DateTime::Format::ISO8601;
+
+#my $dt = DateTime::Format::ISO8601->parse_datetime('2019-02-12T13:02:03.795Z');
+#print "\n".($dt->epoch() - time());
+#print strftime("%H:%M:%S",gmtime());
+my $class;
+
+while(1){
+ my $data = getjsonhash('eb', 'Master/BNET/get.json');
+ unless($data->{Inputs}{value}) {sleep 5; next;}
+
+ my @datainp;
+ for my $i (1.. scalar @{$data->{Inputs}{value}}) {
+ $datainp[$i] = getjsonhash('eb',"BNET-IN-$i/FirstLevel/get.json");
+ }
+ my @databui;
+ for my $i (1.. scalar @{$data->{Builders}{value}}) {
+ $databui[$i] = getjsonhash('eb',"BNET-EB-$i/HadaqCombiner/get.json");
+ }
+
+ $data->{RunIdStr}{value} =~ /(\d\d)(\d\d)(\d\d)$/;
+ my $runstart = "--";
+ $runstart = "$1:$2:$3" if $3;
+
+ my $builders = scalar @{$data->{Builders}{value}};
+ my ($filesize,$totaldata,$totalevents) = (0,0,0);
+ for my $i (1 .. $builders){
+ $filesize += $databui[$i]->{RunFileSize}{value}//0;
+ $totaldata += $databui[$i]->{HadaqData}{value}//0;
+ $totalevents += $databui[$i]->{HadaqEvents}{value}//0;
+ }
+ $filesize *= 1E6;
+ $totaldata *= 1E6;
+ my $str = Hmon::MakeTitle(11, 8, "EB Summary",1);
+ $str .= "<div class=\"flex\">";
+ $str .= "<div style='margin:10px;background:#aaa;'>";
+ $str .= "<table><col><col style='width:150px;text-align:right;background:white;'> ";
+
+ $class = "bgn";
+ $class = "bor" if $data->{LostRate}{value} > 20;
+ $class = "brd" if $data->{LostRate}{value} > $data->{EventsRate}{value}/10 && $data->{LostRate}{value} > 20;
+ $class = "bye" if $data->{EventsRate}{value} < 2;
+
+ $str .= "<tr><th>Events/s<td class=\"$class\">".QA::SciNotation(ceil($data->{EventsRate}{value}));
+ $str .= "<tr><th>Data B/s<td>".QA::SciNotation($data->{DataRate}{value}*1E6)."B";
+
+ $class = "bgn";
+ $class = "bor" if $data->{LostRate}{value} > 20;
+ $class = "brd" if $data->{LostRate}{value} > $data->{EventsRate}{value}/10 && $data->{LostRate}{value} > 20;
+
+ $str .= "<tr><th>Lost Ev/s<td class=\"$class\">".QA::SciNotation(ceil($data->{LostRate}{value}//0));
+ $str .= "</table></div>";
+
+ $str .= "<div style='margin:10px;background:#aaa;'>";
+ $str .= "<table><col><col style='width:150px;text-align:right;background:white;'> ";
+
+ $class = "bgn";
+ $class = "bye" if $data->{RunPrefix}{value} eq 'te';
+ $class = "bor" if $filesize == 0;
+
+ $str .= "<tr><th>Run Start <td >".$runstart;
+ $str .= "<tr><th>Run Name <td class=\"$class\">".$data->{RunPrefix}{value}.$data->{RunIdStr}{value};
+ $str .= "<tr><th>File Size<td class=\"$class\">".QA::SciNotation($filesize)."B ($builders files)";
+ $str .= "</table></div>";
+
+ $str .= "<div style='margin:10px;background:#aaa;'>";
+ $str .= "<table><col><col style='width:150px;text-align:right;background:white;'> ";
+ $str .= "<tr><th>Calib Time<td>".strftime("%d.%m. %H:%M",localtime($data->{LastCalibr}{'time'}));
+ $str .= "<tr><th>Calib Success <td>".($data->{LastCalibr}{quality}*100)."%";
+ $str .= "<tr><th> <td> ";
+ $str .= "</table></div>";
+
+ $str .= "</div>";
+
+ $str .= "<div style='float:left;display:inline;margin:10px;background:#aaa;'>";
+ $str .= "<table><col style='width:70px;'><col style='width:80px'><col style='width:80px'><col style='width:80px'><col style='width:80px'> ";
+ $str .= "<tr><th colspan='5' style='background:white'>Input Nodes";
+ $str .= "<tr><td><th>Data B/s<th>Events/s<th colspan=\"2\">Dropped /s";
+ for my $i (1.. scalar @{$data->{Inputs}{value}}){
+
+
+ my $class = "bgn";
+ $class = "bye" if ($datainp[$i]->{HadaqEvents}{value}//0) < 2;
+ $class = "bor" if ($datainp[$i]->{HadaqLostEvents}{value}//0) > 10;
+ $class = "brd" if ($datainp[$i]->{HadaqLostEvents}{value}//0) > 100;
+
+ my $nodename = $data->{Inputs}{nodes}[$i-1];
+ $nodename =~ s%dabc://%%;
+ $nodename =~ s%:\d+$%%;
+
+ $str .= "<tr><th>$nodename".
+ "<td class=\"$class\">".QA::SciNotation(($datainp[$i]->{HadaqData}{value}//0)*1E6).
+ "<td class=\"$class\">".QA::SciNotation(ceil($datainp[$i]->{HadaqEvents}{value}//0)).
+ "<td class=\"$class\">".QA::SciNotation(ceil($datainp[$i]->{HadaqLostEvents}{value}//0))."Ev ".
+ "<td class=\"$class\">".QA::SciNotation(($datainp[$i]->{HadaqDroppedData}{value}//0)*1E6)."B "
+
+
+ ;
+
+# $str .= "<td class='ebinputs'>";
+# for my $j (0 .. (scalar @{$datainp[$i]->{hubs}}) - 1) {
+# my $inptext = sprintf("%04x",$datainp[$i]->{hubs}[$j]);
+# $str .= "<div title=\"$inptext\">$inptext</div>";
+# }
+ }
+ $str .= "</table></div>";
+
+
+ $str .= "<div style='float:right;display:inline;margin:10px;background:#aaa;'>";
+ $str .= "<table class=\"eb\"><col style='width:80px;'><col style='width:80px;text-align:right;background:white;'><col style='width:80px;text-align:right;background:white;'><col style='width:80px;text-align:right;background:white;'><col style='width:50px;text-align:right;background:white;'> ";
+ $str .= "<tr><th colspan='5' style='background:white'>Building Nodes";
+ $str .= "<tr><th><th>Data Rate<th>Event Rate<th>File Size<th>Lustre";
+ for my $i (1 .. $builders){
+ my $nodename = $data->{Builders}{nodes}[$i-1];
+ $nodename =~ s%dabc://%%;
+ $nodename =~ s%:\d+$%%;
+
+ $str .= "<tr><th>$nodename".
+ "<td>".QA::SciNotation(($databui[$i]->{HadaqData}{value}//0)*1E6).
+ "<td>".QA::SciNotation(ceil($databui[$i]->{HadaqEvents}{value}//0)).
+ "<td>".QA::SciNotation(($databui[$i]->{RunFileSize}{value}//0)*1E6).
+ "<td> ";
+ }
+# $str .= "<tr><th>Sum<td>".QA::SciNotation($totaldata)."<td>".QA::SciNotation($totalevents)."<td>".QA::SciNotation($filesize)."<td>";
+ $str .= "</table></div>";
+
+
+ $str .= Hmon::MakeFooter();
+ Hmon::WriteFile("EBSummary",$str);
+
+ sleep(1);
+ }
+
+
+ #HadaqData HadaqEvents HadaqLostEvents HadaqDroppedData