my ( $state) = @_;
if($state == Qt::Unchecked()) {
- this->{self}->{groupBox_4}->hide();
+ this->{self}->{groupBox_5}->hide();
}
else {
- this->{self}->{groupBox_4}->show();
+ this->{self}->{groupBox_5}->show();
}
}
$horizontalLayout->addWidget( $groupBox_1 );
- my $groupBox_2 = Qt::GroupBox( $centralwidget );
- $self->{groupBox_2} = $groupBox_2;
- $groupBox_2->setObjectName( "groupBox_2" );
- my $vl_gb2 = Qt::VBoxLayout( $groupBox_2 );
- $self->{vl_gb2} = $vl_gb2;
- $vl_gb2->setObjectName( "vl_gb2" );
- $horizontalLayout->addWidget( $groupBox_2 );
-
-
- my $groupBox_3 = Qt::GroupBox( $centralwidget );
- $self->{groupBox_3} = $groupBox_3;
- $groupBox_3->setObjectName( "groupBox_3" );
- my $vl_gb3 = Qt::VBoxLayout( $groupBox_3 );
- $self->{vl_gb3} = $vl_gb3;
- $vl_gb3->setObjectName( "vl_gb3" );
- $horizontalLayout->addWidget( $groupBox_3 );
-
-
my $groupBox_6 = Qt::GroupBox( $centralwidget );
$self->{groupBox_6} = $groupBox_6;
$groupBox_6->setObjectName( "groupBox_6" );
$self->{vl_gb6} = $vl_gb6;
$vl_gb6->setObjectName( "vl_gb6" );
$horizontalLayout->addWidget( $groupBox_6 );
+ $groupBox_6->setStyleSheet("background-color:#7c7;font-weight:bold;");
my $groupBox_7 = Qt::GroupBox( $centralwidget );
$self->{groupBox_7} = $groupBox_7;
$self->{vl_gb7} = $vl_gb7;
$vl_gb7->setObjectName( "vl_gb7" );
$horizontalLayout->addWidget( $groupBox_7 );
+ $groupBox_7->setStyleSheet("background-color:#cc7;font-weight:bold;");
my $groupBox_4 = Qt::GroupBox( $centralwidget );
$self->{groupBox_4} = $groupBox_4;
$groupBox_4->setObjectName( "groupBox_4" );
#$groupBox_3->setCheckable(1);
#$groupBox_3->setChecked(0);
- #$groupBox_4->hide();
my $vl_gb4 = Qt::VBoxLayout( $groupBox_4 );
$self->{vl_gb4} = $vl_gb4;
$vl_gb4->setObjectName( "vl_gb4" );
$horizontalLayout->addWidget( $groupBox_4 );
+ $groupBox_4->setStyleSheet("background-color:#ca7;font-weight:bold;");
+
+
+ my $groupBox_2 = Qt::GroupBox( $centralwidget );
+ $self->{groupBox_2} = $groupBox_2;
+ $groupBox_2->setObjectName( "groupBox_2" );
+ my $vl_gb2 = Qt::VBoxLayout( $groupBox_2 );
+ $self->{vl_gb2} = $vl_gb2;
+ $vl_gb2->setObjectName( "vl_gb2" );
+ $horizontalLayout->addWidget( $groupBox_2 );
+
+ my $groupBox_3 = Qt::GroupBox( $centralwidget );
+ $self->{groupBox_3} = $groupBox_3;
+ $groupBox_3->setObjectName( "groupBox_3" );
+ my $vl_gb3 = Qt::VBoxLayout( $groupBox_3 );
+ $self->{vl_gb3} = $vl_gb3;
+ $vl_gb3->setObjectName( "vl_gb3" );
+ $horizontalLayout->addWidget( $groupBox_3 );
+
+
my $groupBox_5 = Qt::GroupBox( $centralwidget );
$self->{groupBox_5} = $groupBox_5;
$groupBox_5->setObjectName( "groupBox_5" );
my $vl_gb5 = Qt::VBoxLayout( $groupBox_5 );
+ $groupBox_5->hide();
$self->{vl_gb5} = $vl_gb5;
$vl_gb5->setObjectName( "vl_gb5" );
$horizontalLayout->addWidget( $groupBox_5 );
# $vl_top->addWidget( $pushButton );
- # my $checkBox = Qt::CheckBox( $centralwidget );
- # $self->{checkBox} = $checkBox;
- # $checkBox->setObjectName( "checkBox" );
+ my $checkBox = Qt::CheckBox( $centralwidget );
+ $self->{checkBox} = $checkBox;
+ $checkBox->setObjectName( "checkBox" );
- # $vl_top->addWidget( $checkBox );
+ $vl_top->addWidget( $checkBox );
$mainWindow->setCentralWidget( $centralwidget );
my $menubar = Qt::MenuBar( $mainWindow );
# Qt::Object::connect($pushButton, SIGNAL 'clicked()' , $mainWindow, SLOT 'close()' );
-# Qt::Object::connect($checkBox, SIGNAL 'stateChanged(int)' ,
-# this, SLOT 'hide_expert_checked(int)' );
+ Qt::Object::connect($checkBox, SIGNAL 'stateChanged(int)' ,
+ this, SLOT 'hide_expert_checked(int)' );
Qt::MetaObject::connectSlotsByName( $mainWindow );
$self->{groupBox_1}->setTitle( Qt::Application::translate( 'MainWindow', "DAQ Operation", undef, Qt::Application::UnicodeUTF8() ) );
$self->{groupBox_2}->setTitle( Qt::Application::translate( 'MainWindow', "Monitoring", undef, Qt::Application::UnicodeUTF8() ) );
$self->{groupBox_3}->setTitle( Qt::Application::translate( 'MainWindow', "Eventbuilder", undef, Qt::Application::UnicodeUTF8() ) );
- $self->{groupBox_4}->setTitle( Qt::Application::translate( 'MainWindow', "Power", undef, Qt::Application::UnicodeUTF8() ) );
+ $self->{groupBox_4}->setTitle( Qt::Application::translate( 'MainWindow', "Powercycle", undef, Qt::Application::UnicodeUTF8() ) );
$self->{groupBox_5}->setTitle( Qt::Application::translate( 'MainWindow', "Expert", undef, Qt::Application::UnicodeUTF8() ) );
$self->{groupBox_6}->setTitle( Qt::Application::translate( 'MainWindow', "Settings", undef, Qt::Application::UnicodeUTF8() ) );
$self->{groupBox_7}->setTitle( Qt::Application::translate( 'MainWindow', "Reboot", 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() ) );
+ $self->{checkBox}->setText( Qt::Application::translate( 'MainWindow', "Show Expert Tools", undef, Qt::Application::UnicodeUTF8() ) );
} # retranslateUi
\$pb$i->setIcon( \$icon$i );
\$pb$i->setIconSize( Qt::Size(32, 32) );
+ \$pb$i->setStyleSheet("background-color:#ccc;font-weight:normal;");
|;
-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 lxhadesdaqp "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/
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
ssh hadaq@lxhadesdaqp "
- echo "Starting Eventbuilders with 10 BNET builder nodes"
+ echo "Starting Eventbuilders with 8 BNET builder nodes"
cd ~/trbsoft/hadesdaq/evtbuild/
./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 8
sleep 2
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- ssh hadaq@lxhadeb12p "
+ ssh hadaq@lxhadeb12 "
/home/hadaq/bin/restart_bnetmaster.sh
echo Done
sleep 5
#!/bin/bash
# 100Hz -> 2e6 pulservalue = 0x1E8480
-
+# JAM 6-11-2023: also restart raw data monitor process during calibration to init all channels there
export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "start the TDC calibration process")
if [ $myvar == "256" ]; then exit; fi
ssh hadaq@lxhadesdaqp "
/home/hadaq/trbsoft/hadesdaq/evtbuild/tdc_calib_start.sh
"
+
'
/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have started TDC-Calibration procedure." "EB" &
+# JAM 8-12-23: removed automatic restart of rawmon again, due to TIME_WAIT problems of http server
+#sleep 5
+# ssh hadaq@lxhadeb12 "
+# /home/hadaq/bin/restart_rawmon.sh
+# "
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
ssh hadaq@lxhadesdaqp "
/home/hadaq/trbsoft/hadesdaq/evtbuild/tdc_test_start.sh
- "
+ echo "Running for 30 seconds"
+ sleep 10;
+ echo "Running for 20 seconds more"
+ sleep 10;
+ echo "Running for 10 seconds more"
+ sleep 10;
+# echo "Give it another 10 seconds more"
+# sleep 10;
+
+ /home/hadaq/trbsoft/hadesdaq/evtbuild/tdc_test_stop.sh
+ echo "Caltest stopped, analysis ongoing"
+ ";
+ sleep 10;
+ ssh hadaq@hades33 "
+ source ~/.bashrc
+ cd /home/hadaq/trbsoft/daq/hmon/
+ bash -c \"perl permanent/hmon_tdcchanerrors_testmonitor.pl 1>/dev/null 2>>/home/hadaq/trbsoft/hadesdaq/hmon/logs/perlerror_hmon_tdcchanerrors_testmonitor.pl\" &
+ ";
+ sleep 10;
'
/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have started TDC-Calibration test file." "EB" &
--- /dev/null
+#!/bin/bash
+
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "restart the main EPICS IOC? This will interrupt the detector controls for several minutes. INFORM DETECTOR OPERATORS!")
+if [ $myvar == "256" ]; then exit; fi
+
+notifyall.sh "EPICS" "<I> Main IOC is being restarted." "EPICS" &
+
+
+
+xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+ ssh scs@lxhaddcs11 "
+ echo Re-starting Sequencers
+ echo -en \"\x18\"| netcat -w 1 localhost 4813
+ echo Done
+ sleep 5
+ "
+'
+
+
+ # | netcat -w 1 localhost 4813
+
+
+++ /dev/null
-#!/bin/bash
-
-xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- ssh scs@lxhadeb06 "
- echo Re-starting Sequencers
- echo -en \"\x18\"| netcat -w 1 localhost 4813
- echo Done
- sleep 5
- "
-'
-
-
- # | netcat -w 1 localhost 4813
-
-
# below lxhadeb12:
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- ssh hadaq@lxhadeb12p "
+ ssh hadaq@lxhadeb12 "
/home/hadaq/bin/restart_rawmon.sh
echo Done
sleep 5
-
#xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
- ssh -X hadaq@lxhadesdaqp "
- source /home/hadaq/.bashrc
+# ssh -X hadaq@lxhadesdaqp " # JAM 11-2023 moved to hades33 due to changed lxhadesdaq installation
+ssh -X hadaq@hades33 "
+ source /home/hadaq/.bashrc
export DAQOPSERVER=hadesp31
cd /home/hadaq/trbsoft/hadesdaq/control/ctsmon
perl ./mon_cts.pl
#!/bin/bash
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "open the DAQ VNC? Don't run this on the VNC itself!")
+if [ $myvar == "256" ]; then exit; fi
+
+
vncviewer --shared -passwd ~/.vnc/passwd hades70:1 &
#!/bin/bash
+!/bin/bash
-export myvar=$(doyoureallywant.pl "to make a Forward Wall powercycle? There will be no further warnings!")
+export myvar=$(doyoureallywant.pl "to powercycle the Wall LV?")
if [ $myvar == "256" ]; then exit; fi
-xterm -e "
-echo 'Sending power cycle request'
-wget -O /dev/null --http-password kaese --http-user admin -d http://haepcp06/RESET.CGI?a=0\&bi=5\&t=0\&b=1
-sleep 5
-echo 'waiting a minute until boards are rebooted'
-sleep 60
-echo 'Done'
-sleep 5
-"
+xterm -e bash --login -c '
+ ssh hadaq@lxhadesdaqp "
+ source /home/hadaq/.bash_profile
+ echo \"Starting a Wall power cycle...\"
+ cd /home/hadaq/hadesdaq/utils;
+ PERLLIB=$EPICS_BASE/lib/perl ./Wall_Powercycle.pl;
+# PERLLIB=/home/hadaq/EPICS/EPICS-3.15.6/base/lib/perl ./Wall_Powercycle.pl;
+ echo Done
+ sleep 5
+ "
+'
--- /dev/null
+#!/bin/bash
+
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot many boards ")
+if [ $myvar == "256" ]; then exit; fi
+
+notifyall.sh "DAQ" "<I> The boards of TOF and FW are going to be rebooted." "STARTUP" &
+
+
+xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
+ ssh hadaq@lxhadesdaqp "
+ 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
+ ping \$TRB3_SERVER -c 1 -w 1 >/dev/null 2>&1 || echo \"ERROR contacting \$TRB3_SERVER\"
+ TRB3_SERVER=\$TRB3_SERVER ./trbcmd reload 0xffff
+ done
+
+echo RICH
+trbcmd reload 0xfe51 #to prevent a race condition between reset issued by combiner and Dirich not rebooting afterwards
+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 0xffff
+ sleep .3
+ done
+
+
+echo RPC
+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
+
+echo ECal
+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
+ sleep .3
+ done
+
+
+
+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
+
+
+ echo \"Done - Check for Error messages above, then do a DAQ restart!\"
+ sleep 10
+ "
+'
+
+
trbcmd reload 0x120
cd ~/trbsoft/trbnettools/binlocal
-TRB3_SERVER=trb3sc134 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc009 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc130 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc128 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc131 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc129 ./trbcmd reload 0xffff
-
- echo Done
+
+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
+ sleep .3
+ done
+
+ echo \"Done - Check for Error messages above, then do a DAQ restart!\"
sleep 10
"
xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
ssh hadaq@lxhadesdaqp "
- source /home/hadaq/.bash_profile
-cd ~/trbsoft/trbnettools/binlocal
-
-TRB3_SERVER=trb3sc136 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc158 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc144 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc139 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc163 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc153 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc164 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc166 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc137 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc138 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc162 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc141 ./trbcmd reload 0xffff
-
- echo "Done - Do a DAQ restart!"
+ cd ~/trbsoft/trbnettools/binlocal
+
+
+
+
+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
+ sleep .3
+ done
+
+
+
+#TRB3_SERVER=trb3sc136 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc158 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc144 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc139 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc163 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc153 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc164 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc166 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc137 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc138 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc162 ./trbcmd reload 0xffff
+#TRB3_SERVER=trb3sc141 ./trbcmd reload 0xffff
+
+ echo \"Done - Check for Error messages above, then do a DAQ restart!\"
sleep 10
"
'
xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
ssh hadaq@lxhadesdaqp "
source /home/hadaq/.bash_profile
-
-
-cd ~/trbsoft/trbnettools/binlocal
-TRB3_SERVER=trb3sc317 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc319 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc320 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc315 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc318 ./trbcmd reload 0xffff
-TRB3_SERVER=trb3sc316 ./trbcmd reload 0xffff
-
-
-
- echo Done
+ 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
+ sleep .3
+ done
+
+# TRB3_SERVER=trb3sc317 ./trbcmd reload 0xffff
+# TRB3_SERVER=trb3sc319 ./trbcmd reload 0xffff
+# TRB3_SERVER=trb3sc320 ./trbcmd reload 0xffff
+# TRB3_SERVER=trb3sc315 ./trbcmd reload 0xffff
+# TRB3_SERVER=trb3sc318 ./trbcmd reload 0xffff
+# TRB3_SERVER=trb3sc316 ./trbcmd reload 0xffff
+
+
+
+ echo \"Done - Check for Error messages above, then do a DAQ restart!\"
sleep 10
"
#!/bin/bash
-export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TDCs of Start iTOF in the system")
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot boards of Start in the system")
if [ $myvar == "256" ]; then exit; fi
-notifyall.sh "DAQ" "<I> The TDCs of Start iTOF are going to be rebooted." "STARTUP" &
+notifyall.sh "DAQ" "<I> The Start boards 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
- trbcmd reload 0xfe74
-# trbcmd reload 0xfe76
- trbcmd reload 0x8880
-# trbcmd reload 0x8d00
- echo Done
+
+
+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
+
+ echo \"Done - Check for Error messages above, then do a DAQ restart!\"
sleep 10
"
+++ /dev/null
-#!/bin/bash
-
-export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TOF and FW ")
-if [ $myvar == "256" ]; then exit; fi
-
-notifyall.sh "DAQ" "<I> The boards of TOF and FW 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
-# trbcmd reload 0xfe47
-# trbcmd reload 0x86c0
-# trbcmd reload 0x86c1
-# trbcmd reload 0x86c2
-# trbcmd reload 0x86c3
-# trbcmd reload 0x86c4
-# trbcmd reload 0x86c5
-# trbcmd reload 0x8c00
-# trbcmd reload 0x8c10
-# trbcmd reload 0x8c20
-cd ~/trbsoft/trbnettools/binlocal
-
-TRB3_SERVER=trbp088 ./trbcmd reload 0xffff
-TRB3_SERVER=trbp263 ./trbcmd reload 0xffff
-TRB3_SERVER=trbp006 ./trbcmd reload 0xffff
-TRB3_SERVER=trbp262 ./trbcmd reload 0xffff
-TRB3_SERVER=trbp265 ./trbcmd reload 0xffff
-TRB3_SERVER=trbp242 ./trbcmd reload 0xffff
-TRB3_SERVER=trbp074 ./trbcmd reload 0xffff
-TRB3_SERVER=trbp267 ./trbcmd reload 0xffff
-TRB3_SERVER=trbp266 ./trbcmd reload 0xffff
-
- echo "Done - Do a DAQ restart!"
- sleep 10
- "
-'
-
-
--- /dev/null
+#!/bin/bash
+
+export myvar=$(/home/hadaq/trbsoft/hadesdaq/utils/doyoureallywant.pl "reboot TOF and FW ")
+if [ $myvar == "256" ]; then exit; fi
+
+notifyall.sh "DAQ" "<I> The boards of TOF and FW are going to be rebooted." "STARTUP" &
+
+
+xterm -geometry 80x24 -bg orange -fg black -e bash --login -c '
+ ssh hadaq@lxhadesdaqp "
+ cd ~/trbsoft/trbnettools/binlocal
+
+
+
+
+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
+ sleep .3
+ done
+
+
+
+ echo \"Done - Check for Error messages above, then do a DAQ restart!\"
+ sleep 10
+ "
+'
+
+
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
ssh hadaq@hadesp33 "
echo \"Toggle beam abort system.\"
- ssh hadeswrp02 /home/hadaq/bin/toggle_beam_abort.sh
+ ssh hadeswrp01 /home/hadaq/bin/toggle_beam_abort.sh
echo Done
sleep 2
"
'
-
-
+# JAM 22-11-2023: use this for spare machine
+#ssh hadeswrp02 /home/hadaq/bin/toggle_beam_abort.sh
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
ssh hadaq@hadesp33 "
echo Removing Error Flag
- ssh hadeswrp02 /home/hadaq/bin/reset_beamabort_error.sh
+ ssh hadeswrp01 /home/hadaq/bin/reset_beamabort_error.sh
echo Done
- sleep 5
+ sleep 2
"
'
+# JAM 22-11-2023: use this for spare machine
+#ssh hadeswrp02 /home/hadaq/bin/toggle_beam_abort.sh
xterm -geometry 80x24 -bg orange -fg black -e bash -c '
+ export DAQOPSERVER=hadesp31
echo Reloading RPC thresholds
cd /home/hadaq/trbsoft/hadesdaq/rpc/
/home/hadaq/trbsoft/daq/rpc/trb3sc/thresholds/resetThresholdAllJan.sh
#$entries->{'padiwa'} = ['ecal','start','sts','itof','hodo'];
$entries->{'hv'} = ['richhv','ecalhv','rpchv','fwhv','tofhv'];
#$entries->{'hv2'} = ['mdchv','stshv','frpchv','itofhv','valve'];
-$entries->{'hv2'} = ['mdchv','','','','valve'];
-$entries->{'misc'} = ['seu','calib','magnet','env','sequencer'];
-$entries->{'misc2'} = ['ecal','m1','m2','m3','m4'];
+$entries->{'hv2'} = ['mdchv','','','','sequencer'];
+$entries->{'misc'} = ['seu','calib','magnet','env','valve'];
+$entries->{'misc2'} = ['ecal','tdctot','m1','m2','m3'];
$entries->{'pion'} = ['nxstatus', 'HV', 'HVcurr', 'cooling','seu'];
###############################################################################
# Switched off systems
###############################################################################
-our $MdcHvOff = 1;
-our $RichHvOff = 1;
-our $RichGasOff = 1;
-our $TofHvOff = 1;
-our $RpcHvOff = 1;
+our $MdcHvOff = 0;
+our $RichHvOff = 0;
+our $RichGasOff = 0;
+our $TofHvOff = 0;
+our $RpcHvOff = 0;
our $FwHvOff = 0;
our $MagnetOff = 1;
our $StsHvOff = 1;
our $StartHvOff = 1;
our $ItofHvOff = 1;
our $FrpcHvOff = 1;
-our $EcalHvOff = 1;
+our $EcalHvOff = 0;
-our $QAServerOff = 1;
+our $QAServerOff = 0;
###############################################################################
# Missing Boards
<h4>Error Handling</h4>
<ul>
-<li>If there is a "sync" error reported at the same time, look there.
+<li>If there is a "sync" error reported at the same time, look there (two fields right).
-<li>If there is "readout waiting" reported, look there.
+<li>If there is "readout waiting" reported, look there (one field right).
-<li>If there is a "FEE Error" reported, look there.
+<li>If there is a "FEE Error" reported, look there (in the middle left).
<li>Do a DAQ Restart
-<li>Note that the board shown here is often not the actual problem. Do a reload of DiRich, DiRich combiner first (plus DAQ restart), then try to solve a possible problem with the board listed here.
+<li>Note that the board shown here is usually not the actual problem. Do a reload of Rich first (plus DAQ restart), then try to solve a possible problem with the board listed here.
</ul>
<h3>DAQ Timeouts</h3>
<p>
-This button gives information about not responding front-ends.
+This button gives information about not responding front-ends. These are mainly the boards delivering the detector signals to the processing and readout boards.
+<br>The list shows entries like "8292-0008 (7856 DiRICH)" - 7856 is the address of the missing board (decoded as DiRICH), 8292 the address of the hub it is connected to, 8 the port on this hub.
</p>
<h4>Error Handling</h4>
<ul>
-<li>If all addresses start with '2' (from MDC), try "Resync missing OEPs"
-<li>If all addresses start with '7' (from RICH), try "Resync DiRich"
+<li>If all addresses are MDC OEP, try "Resync missing OEPs"
+<li>If all addresses are DiRICH, try "Resync DiRich"
<li>Do a DAQ restart
<li>If the same board shows errors repeatingly, try a reboot or power cycle of this subsystem.
</ul>
-
-<h4>Additional Notes</h4>
-<ul>
-<li>If the board is from MDC, and there is a "FEE Error" at the same time, an MDC LV power-cycle is needed.
<h4>Error Handling</h4>
-This error typically pops up in combination with many other boxes showing errors. Follow the normal DAQ restart guidelines.
+This error typically pops up in combination with many other boxes showing errors. Do a DAQ restart.
-<dl><dt>Error: RPC connection failed<dd>Restart the interface to the DAQ network, i.e. trbnetd. Then restart DAQ
+<dl><dt>Error: RPC connection failed<dd>Check if the interface computer hadesp31 is still running. Then restart DAQ
(Note that "RPC" refers to "Remote Procedure Call", not our detector!)
<dt>Error: Timeout<dd>The network failed to answer within the given amount of time. Try to restart the DAQ.
<dt>Warning: One endpoint didn't react<dd>Restart DAQ
<dt>Other Errors<dd> A DAQ restart should cure it.
<dt>OK<dd>Don't touch a running system.
-</dl>
\ No newline at end of file
+</dl>
-Just a monitor - if it's read, it's in the responsibility of the ECal operator
+A simple monitor to check the HV settings in ECal. If some part is off / too low not all parts of the detector are active and data is lost.
+<br>Talk to the detector expert. In case of larger problems is might be advisable to stop data taking for a while until the problem is solved.
-Just a monitor - if it's red, it's in the responsibility of the FW operator, please inform them.
+A simple monitor to check the HV settings in Forward Wall. If some part is off / too low not all parts of the detector are active and data is lost.
+<br>Talk to the detector expert. In case of larger problems is might be advisable to stop data taking for a while until the problem is solved.
-<h3>RICH High Voltage</h3>
-<p>
-This button gives you the minimum and maximum Voltage of the HV of the RICH detector.
-If this is off, the MAPMTs are not in measuring condition!
-<h4>Error Handling if the button is not <font color="gree">Green</font></h4>
-
-<ul>
-<li>HV is not in right condition. Are all channels on?
-<li>Check <a href="monitor.cgi?2-RichHV">HV status</a>. Are all values in the target region? See reference Plot
-in operator manual
-<li>Call an expert immediately!
-</ul>
-
-
-
-
-
+A simple monitor to check the HV settings in RICH. If some part is off / too low not all parts of the detector are active and data is lost.
+<br>Talk to the detector expert. In case of larger problems is might be advisable to stop data taking for a while until the problem is solved.
-Just a monitor - if it's red, it's in the responsibility of the RPC operator, please inform them.
+A simple monitor to check the HV settings in RPC. If some part is off / too low not all parts of the detector are active and data is lost.
+<br>Talk to the detector expert. In case of larger problems is might be advisable to stop data taking for a while until the problem is solved.
-Just a monitor - if it's red, it's in the responsibility of the TOF operator. Please inform them.
+A simple monitor to check the HV settings in TOF. If some part is off / too low not all parts of the detector are active and data is lost.
+<br>Talk to the detector expert. In case of larger problems is might be advisable to stop data taking for a while until the problem is solved.
+A simple monitor to check the HV settings in f-RPC. If some part is off / too low not all parts of the detector are active and data is lost.
+<br>Talk to the detector expert. In case of larger problems is might be advisable to stop data taking for a while until the problem is solved.
-Just a monitor - if it's red, it's in the responsibility of the MDC operator
+A simple monitor to check the HV settings in MDC. If some part is off / too low not all parts of the detector are active and data is lost.
+<br>Talk to the detector expert. In case of larger problems is might be advisable to stop data taking for a while until the problem is solved.
+A simple monitor to check the HV settings in Start. If some part is off / too low not all parts of the detector are active and data is lost.
+<br>Talk to the detector expert. In case of larger problems is might be advisable to stop data taking for a while until the problem is solved.
+A simple monitor to check the HV settings in STS. If some part is off / too low not all parts of the detector are active and data is lost.
+<br>Talk to the detector expert. In case of larger problems is might be advisable to stop data taking for a while until the problem is solved.
<h3>CTS Current Rate</h3>
-The current rate at which triggers are sent by the CTS. The rate should be constant, depending on the beam intensity and spill shape!
+The current rate at which triggers are sent by the CTS. The rate should be constant (apart from changes due to spill shape), depending on the beam intensity.
+<br>200 Hz are common for a cosmics run, peaks of around 15 kHz are expected for AuAu, modulated by the spill shape every 12 seconds.
+<br>Try to remember common numbers / changes to notice if something behaves differently later on.
<h4>Error Handling</h4>
<dl>
<dt>Rate is 0<dd>
+DAQ is not running.
<ul><li>If a red 'sync' error is shown (second row, right), the problem can be found there.
<li>If a red 'readout' error is shown (second row, right half), the problem can be found there.
<li>Check the "Busy Boards" to see if a front-end has stopped working and is blocking the trigger.
</ul>
-Follow the usual <a href="doc/restartdaqguideline.htm">restart DAQ guidelines</a> to get the DAQ running again.
-<dt>Rate is 2-5 Hz<dd>Typically this happens when only calibration triggers are sent and no additional triggers are generated. Make sure this is desired and trigger settings are right.
-<dt>Unusual Value<dd>Check the CTS settings if the right trigger source is selected. Check the beam detectors to see if there is an accelerator problem.
+<dt>Rate is 2-5 Hz<dd>Typically this happens when only calibration triggers are sent and no additional triggers are generated. Make sure this is desired and trigger settings are right. Check if beam intensity is correct.
+<br>Consult the Eventrate Monitor and Spill Structure (Start X) monitoring to differentiate between an accelerator problem or a problem on the HADES side. Check the "Beam Abort" box to see if our system triggered the accelerator to switch off.
+
+<dt>Unusual Value<dd>The rate might be much lower or higher than seen during other spills. Check the CTS settings if the right trigger source is selected. Check the beam detectors to see if there is an accelerator problem. Check the HV if it is on on all detectors. Check the rate monitors to see if some channels are very noisy and block the DAQ.
+<br>Do a DAQ restart to see if anything changes.
</dl>