w 0x0130 0xe01e 0x000003e8 #Indiv_Timewindow.30
w 0x0130 0xe01f 0x000003e8 #Indiv_Timewindow.31
-w 0x0130 0xe100 600000
-w 0x0130 0xe101 600000
-w 0x0130 0xe102 600000
-w 0x0130 0xe103 600000
-w 0x0130 0xe104 600000
-w 0x0130 0xe105 600000
+w 0x0130 0xe100 10000
+w 0x0130 0xe101 10000
+w 0x0130 0xe102 10000
+w 0x0130 0xe103 10000
+w 0x0130 0xe104 10000
+w 0x0130 0xe105 10000
w 0x0130 0xe106 0x00000000 #Indiv_Limit.6
w 0x0130 0xe107 0x00000000 #Indiv_Limit.7
-w 0x0130 0xe108 600000
-w 0x0130 0xe109 600000
-w 0x0130 0xe10a 600000
-w 0x0130 0xe10b 600000
+w 0x0130 0xe108 10000
+w 0x0130 0xe109 10000
+w 0x0130 0xe10a 10000
+w 0x0130 0xe10b 10000
w 0x0130 0xe10c 0x00000000 #Indiv_Limit.12
-w 0x0130 0xe10d 600000
-w 0x0130 0xe10e 600000
+w 0x0130 0xe10d 10000
+w 0x0130 0xe10e 10000
w 0x0130 0xe10f 0x00000000 #Indiv_Limit.15
w 0x0130 0xe110 0x00000000 #Indiv_Limit.16
w 0x0130 0xe111 0x00000000 #Indiv_Limit.17
--- /dev/null
+w 0x0130 0xe000 0x000003e8 #Indiv_Timewindow.0
+w 0x0130 0xe001 0x000003e8 #Indiv_Timewindow.1
+w 0x0130 0xe002 0x000003e8 #Indiv_Timewindow.2
+w 0x0130 0xe003 0x000003e8 #Indiv_Timewindow.3
+w 0x0130 0xe004 0x000003e8 #Indiv_Timewindow.4
+w 0x0130 0xe005 0x000003e8 #Indiv_Timewindow.5
+w 0x0130 0xe006 0x000003e8 #Indiv_Timewindow.6
+w 0x0130 0xe007 0x000003e8 #Indiv_Timewindow.7
+w 0x0130 0xe008 0x000003e8 #Indiv_Timewindow.8
+w 0x0130 0xe009 0x000003e8 #Indiv_Timewindow.9
+w 0x0130 0xe00a 0x000003e8 #Indiv_Timewindow.10
+w 0x0130 0xe00b 0x000003e8 #Indiv_Timewindow.11
+w 0x0130 0xe00c 0x000003e8 #Indiv_Timewindow.12
+w 0x0130 0xe00d 0x000003e8 #Indiv_Timewindow.13
+w 0x0130 0xe00e 0x000003e8 #Indiv_Timewindow.14
+w 0x0130 0xe00f 0x000003e8 #Indiv_Timewindow.15
+w 0x0130 0xe010 0x000003e8 #Indiv_Timewindow.16
+w 0x0130 0xe011 0x000003e8 #Indiv_Timewindow.17
+w 0x0130 0xe012 0x000003e8 #Indiv_Timewindow.18
+w 0x0130 0xe013 0x000003e8 #Indiv_Timewindow.19
+w 0x0130 0xe014 0x000003e8 #Indiv_Timewindow.20
+w 0x0130 0xe015 0x000003e8 #Indiv_Timewindow.21
+w 0x0130 0xe016 0x000003e8 #Indiv_Timewindow.22
+w 0x0130 0xe017 0x000003e8 #Indiv_Timewindow.23
+w 0x0130 0xe018 0x000003e8 #Indiv_Timewindow.24
+w 0x0130 0xe019 0x000003e8 #Indiv_Timewindow.25
+w 0x0130 0xe01a 0x000003e8 #Indiv_Timewindow.26
+w 0x0130 0xe01b 0x000003e8 #Indiv_Timewindow.27
+w 0x0130 0xe01c 0x000003e8 #Indiv_Timewindow.28
+w 0x0130 0xe01d 0x000003e8 #Indiv_Timewindow.29
+w 0x0130 0xe01e 0x000003e8 #Indiv_Timewindow.30
+w 0x0130 0xe01f 0x000003e8 #Indiv_Timewindow.31
+
+w 0x0130 0xe100 600000
+w 0x0130 0xe101 600000
+w 0x0130 0xe102 600000
+w 0x0130 0xe103 600000
+w 0x0130 0xe104 600000
+w 0x0130 0xe105 600000
+w 0x0130 0xe106 0x00000000 #Indiv_Limit.6
+w 0x0130 0xe107 0x00000000 #Indiv_Limit.7
+w 0x0130 0xe108 600000
+w 0x0130 0xe109 600000
+w 0x0130 0xe10a 600000
+w 0x0130 0xe10b 600000
+w 0x0130 0xe10c 0x00000000 #Indiv_Limit.12
+w 0x0130 0xe10d 600000
+w 0x0130 0xe10e 600000
+w 0x0130 0xe10f 0x00000000 #Indiv_Limit.15
+w 0x0130 0xe110 0x00000000 #Indiv_Limit.16
+w 0x0130 0xe111 0x00000000 #Indiv_Limit.17
+w 0x0130 0xe112 0x00000000 #Indiv_Limit.18
+w 0x0130 0xe113 0x00000000 #Indiv_Limit.19
+w 0x0130 0xe114 0x00000000 #Indiv_Limit.20
+w 0x0130 0xe115 0x00000000 #Indiv_Limit.21
+w 0x0130 0xe116 0x00000000 #Indiv_Limit.22
+w 0x0130 0xe117 0x00000000 #Indiv_Limit.23
+w 0x0130 0xe118 0x00000000 #Indiv_Limit.24
+w 0x0130 0xe119 0x00000000 #Indiv_Limit.25
+w 0x0130 0xe11a 0x00000000 #Indiv_Limit.26
+w 0x0130 0xe11b 0x00000000 #Indiv_Limit.27
+w 0x0130 0xe11c 0x00000000 #Indiv_Limit.28
+w 0x0130 0xe11d 0x00000000 #Indiv_Limit.29
+w 0x0130 0xe11e 0x00000000 #Indiv_Limit.30
+w 0x0130 0xe11f 0x00000000 #Indiv_Limit.31
+
+w 0x0130 0xe200 0x00000003 #Combined_max.0
+
+
+w 0x0130 0xe610 0x00000000 #Plot_Binsize.0
+
+w 0x0130 0xe620 0x00000000 #Failsave_Binsize.0
+
+w 0x0130 0xe300 0xffff0000 #Channel_Disable.0
+
+#must be at the end
+w 0x0130 0xe600 0x00000001 #ONOFF_Switch.0, Bit 0..0: ONSwitch
+
#!/bin/bash
-perl -e '$cmd = q|LANG=C zenity --question --title "Automatic Restart of DAQ?" --text "During the cosmic beam time an additional question is asked:\nDo you want to enable automatic restart of DAQ if a failure happens?"|; $r=system($cmd); print "r: $r\n"; if($r==0) {$answer="yes"} else {$answer="no"}; $c2=qq!echo $answer | ssh hadesp33 "cat >/tmp/enable_automatic_restart"!; $r=qx($c2); print $r '
+#perl -e '$cmd = q|LANG=C zenity --question --title "Automatic Restart of DAQ?" --text "During the cosmic beam time an additional question is asked:\nDo you want to enable automatic restart of DAQ if a failure happens?"|; $r=system($cmd); print "r: $r\n"; if($r==0) {$answer="yes"} else {$answer="no"}; $c2=qq!echo $answer | ssh hadesp33 "cat >/tmp/enable_automatic_restart"!; $r=qx($c2); print $r '
#echo \"set thresholds for sec2 and sec4\"
#./ecal_set_thresholds_sec2_sec4.pl
echo \"Done\"
- tmux new-session -d -s \"ecal_recover_dead_channels\" \"cd ~/trbsoft/hadesdaq/hmon/; export PERL5LIB=.; ./hmon_ecal_recover_dead_slow_channels.pl\"
+ ssh hadesp33 \"tmux new-session -d -s ecal_recover_dead_channels \\\". \\\$HOME/.zshrc; cd ~/trbsoft/hadesdaq/hmon/; export PERL5LIB=.; ./hmon_ecal_recover_dead_slow_channels.pl; sleep 1m\\\" \"
sleep 10
"
'
#Load TDC settings
load_register register_tdc_ecal.db
-# set lower thresholds for sec2 and sec4
-exec_cmd{local} /home/hadaq/trbsoft/daq/ecal/ecal_set_thresholds_sec2_sec4.pl
echo " <Logger> Killing log-scripts"
ssh hadesp33 "cd /home/hadaq/trbsoft/hadesdaq/hmon; ./stop.sh" &
# ssh hadesp57 "killall -USR1 speakdaemon.pl" 2>/dev/null &
-# ssh hadesp33 "killall -USR1 speakdaemon.pl" 2>/dev/null &
+ ssh hadesp33 "killall -USR1 speakdaemon.pl" 2>/dev/null &
ssh hadesp33 "killall mdc_calibration_masks.pl" 2>/dev/null &
fi
nohup ssh hadesp33 "cd /home/hadaq/trbsoft/hadesdaq/hmon; ./start.sh &" </dev/null &>/dev/null &
nohup ssh hadesp33 "/home/hadaq/trbsoft/daq/utils/mdc_calibration_masks.pl" &>/dev/null &
# nohup ssh hadesp57 "sleep 20; killall -USR2 speakdaemon.pl" &>/dev/null &
-# nohup ssh hadesp33 "sleep 20; killall -USR2 speakdaemon.pl" &>/dev/null &
+ nohup ssh hadesp33 "sleep 10; killall -USR2 speakdaemon.pl" &>/dev/null &
echo " <Startup> Everything done."
fi
0x2034 206 1 12 0
0x2035 497 1 12 0
0x2036 191 1 12 0 # 29.1.2019 289 (unstable) --> 191 // 289 20110713 017 just "place holder", not existing! 20111215 467
-0x2037 240 1 12 0
+0x2037 092 1 12 0 # 12.2.2024 OEP change from 240 to 092
0x2038 153 1 12 0
0x2039 445 1 12 0
0x203a 262 1 12 0
0x234a 283 1 12 0
0x234b 474 1 12 0 #AT (29.06.11) exchange OEPB 279->092 // 14.02.12 092->474
0x234c 488 1 12 0 ## 30.8.2018 OEP switch with 0x2154 due to many faults there, (old #197 now at 0x2154)
-0x234d 092 1 12 0 ## 11.1.2019 OEP exchange, old 189
+0x234d 155 1 12 0 ## 12.2.2024 oep swith from 092 to 155 ; 11.1.2019 OEP exchange, old 189
0x234e 133 1 12 0 ## 11.1.2019 OEP exchange, old 190
0x234f 232 1 12 0 ## 11.1.2019 OEP exchange, old 191
###################################################
$ENV{EPICS_CA_AUTO_ADDR_LIST} = 'NO';
#JoF2022: updated during beamtime
-$ENV{EPICS_CA_ADDR_LIST} = "cryo1.hades.gsi.de frpcpid1 lxhaddcs10p lxhaddcs11 lxhaddcs12p lxhaddcs13p gas.hades.gsi.de richhvcrate";
+$ENV{EPICS_CA_ADDR_LIST} = "cryo1.hades.gsi.de lxhadesmcs01p frpcpid1 lxhaddcs10p lxhaddcs11 lxhaddcs12p lxhaddcs13p gas.hades.gsi.de richhvcrate";
# $ENV{EPICS_CA_ADDR_LIST} = "192.168.111.255"; lxhadeb07p lxhaddcs05p lxhaddcs06p
#$ENV{EPICS_CA_ADDR_LIST} = "192.168.103.182 192.168.100.235 192.168.100.236 192.168.97.10 192.168.97.11 192.168.97.14 192.168.97.15 192.168.100.17 192.168.97.4 192.168.100.216";
TRB3sc 1591 7200000940939d28 6014
TRB3sc 1651 ce0000094117f228 6011
TRB3sc 3051 b600000a63054c28 6051
+ TRB3sc 3061 3a00000a627d8628 6001
TRB3sc 3091 0a00000a63061828 6045
TRB3sc 3111 5100000a63052328 6030
TRB3sc 3121 2a00000a63051a28 6031
TRB3sc 3131 9900000a627d9d28 6032
+ TRB3sc 3141 2d00000a62955728 6000
TRB3sc 3211 6e00000a62959328 6036
TRB3sc 3221 a000000a624b3128 6035
TRB3sc 3231 8900000a63050128 6034
TRB3sc 3241 2200000a625a1628 6033
+ TRB3sc 4231 4d00000348095928 6002
+ TRB3sc 4251 ce000003482a4b28 6006
+ TRB3sc 4271 9a00000347ef8328 6005
+ TRB3sc 4451 6300000347fe9d28 6004
+ TRB3sc 4541 7800000347ef4f28 6003
TRB3sc 4631 d7000003480c4728 6046
TRB3sc 91 f1000006e919a128 8a01
TRB3sc 1281 0d00000940876f28 8a03
MDC-OEP 199 bf000001fc320228 2201
MDC-OEP 200 9f000001fc322b28 224a
MDC-OEP 201 f5000001fc44cd28 2300
+ MDC-OEP 202 67000001fc44e228 204c
MDC-OEP 203 08000001fc33be28 2221
MDC-OEP 204 0b000001fc346728 2229
MDC-OEP 205 fb000001fc42e228 2249
MDC-OEP 216 90000001fc29bd28 212b
MDC-OEP 217 61000001fc297f28 223e
MDC-OEP 218 42000001fc29c028 2048
- MDC-OEP 219 9c000001fc74fd28 2135
MDC-OEP 220 c7000001fc29c728 2207
MDC-OEP 221 c2000001fc530a28 2018
MDC-OEP 223 62000001fc54c828 2307
MDC-OEP 344 cc000001fc4d6428 2008
MDC-OEP 345 3c000001fc365428 2058
MDC-OEP 346 bb000001fc364028 2001
- MDC-OEP 347 7900000124057b28 204c
MDC-OEP 348 13000001fc404328 2011
MDC-OEP 350 7c000001fc4d7128 2306
MDC-OEP 351 42000001fc423e28 2127
MDC-OEP 377 3b000001fc7b4728 2123
MDC-OEP 378 7c000001fc41dd28 230d
MDC-OEP 380 65000001fc7aed28 2206
+ MDC-OEP 381 54000001fc6c0628 2135
MDC-OEP 382 0d000001fc721228 2112
MDC-OEP 383 88000001fc6a5428 2304
MDC-OEP 384 d1000001fc6a5728 2012
TRB3 1545 9e0000070ee47628 8b15
TRB3 1555 360000070f366e28 8b11
TRB3 1575 b90000070f3dd528 8b14
- TRB3sc 3341 b4000005b75b9428 5007
- TRB3sc 3401 83000005b75b9528 5001
- TRB3sc 3421 f2000005b7bd9428 5002
- TRB3sc 3441 55000005b7bda928 5003
- TRB3sc 4241 8e000003480c4428 5004
- TRB3sc 4331 8a00000347f33e28 5005
- TRB3sc 4341 e600000347fe9a28 5006
- TRB3sc 4411 5900000347efe328 5000
- TRB3sc 4121 3e000003480c5128 8880
+ Dirich5d 31 7100000e5bf17f28 5004
+ Dirich5d 41 1700000e5cb29d28 5000
+ Dirich5d 51 0d00000e5ca1f828 5001
+ Dirich5d 61 2200000e5cb28f28 5002
+ Dirich5d 71 d000000e5bf17728 5003
+ TRB3sc 4381 54000003480e4728 8880
TRB3 60 b5000003482d3d28 5c20
TRB3 61 d5000003481eef28 5c21
TRB3 62 ec00000348284328 5c22
TRB3 881 8e0000031321c228 5c01
TRB3 882 e1000003133e4b28 5c02
TRB3 883 ef000003133e3228 5c03
- TRB3 940 05000004f9db9b28 5c50
- TRB3 941 4e000004fa20a028 5c51
- TRB3 942 a5000004fa24c128 5c52
- TRB3 943 c7000004fa24a928 5c53
TRB3 2420 dd0000081361fb28 5c30
TRB3 2421 6500000812740e28 5c31
TRB3 2422 d2000008135a6628 5c32
TRB3 2621 ec0000094176cc28 5c11
TRB3 2622 3400000941728a28 5c12
TRB3 2623 070000094176c928 5c13
+ TRB3 2630 ac000009438a3a28 5c50
+ TRB3 2631 88000009438a3528 5c51
+ TRB3 2632 4400000943a98928 5c52
+ TRB3 2633 2b000009438a2e28 5c53
TRB3 2650 e900000943803128 5c40
TRB3 2651 a700000943801a28 5c41
TRB3 2652 3700000943802628 5c42
TRB3 2653 c700000941998928 5c43
TRB3 65 c4000003481ef228 86c2
TRB3 885 650000031321c728 86c0
- TRB3 945 81000004fa286228 86c5
TRB3 2425 22000008135a2128 86c3
TRB3 2625 3c000009416b9e28 86c1
+ TRB3 2635 0e00000943a98428 86c5
TRB3 2655 6e00000943802528 86c4
TRB3 1275 9c000005ed716028 8890
TRB3 740 6800000313245528 6710
TRB3sc 3411 56000005b7be1428 5d01
TRB3sc 3461 64000005b7bd9d28 5d05
TRB3sc 4101 810000034809c528 5d03
- TRB3sc 3071 1c00000a62956328 8d00
#&readSerialsDB("../start/serials_start.db", "StartVeto");
#&readSerialsDB("../start/serials_start_trb3.db", "StartTrb3",0);
# JAM2021: serial number logic has changed! need to modify treatment here (drop trailing number)
- &readSerialsDB("../start/serials_trb3sc.db", "Start",1);
+ #&readSerialsDB("../start/serials_trb3sc.db", "Start",1);
+
+ # JAM 29-11-2023: new setup for start using dirich:
+ &readSerialsDB("../start/serials_dirich5d.db", "Start",2);
+
&readSerialsDB("../start/serials_trb3sc.db", "iTOF",1);
# &readSerialsDB("../start/serials_trb3.db", "Veto",0);
# &readSerialsDB("../hub/serials_hub.db", "Hub-All");
#- Read addresses_db
#&readAddressesDB("../start/addresses_start.db", "StartVeto");
#&readAddressesDB("../start/addresses_start_trb3.db", "StartTrb3");
- &readAddressesDB("../start/addresses_trb3sc.db", "Start");
+ #&readAddressesDB("../start/addresses_trb3sc.db", "Start");
+ # JAM nov-2023: new start setup uses dirich now
+ &readAddressesDB("../start/addresses_dirich5d.db", "Start");
+
&readAddressesDB("../start/addresses_trb3sc.db", "iTOF");
# &readAddressesDB("../start/addresses_start_trb3.db", "Veto");
# &readAddressesDB("../hub/addresses_hub.db","Hub-All");
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
cd /home/hadaq/oper/postgres2ora/
-/home/hadaq/trbsoft/daq/oracle/postgres2ora.pl -opass hades -ppass yyyyyy -o >> postgres2oraFeb22.log 2>&1
+#/home/hadaq/trbsoft/daq/oracle/postgres2ora.pl -opass hades -ppass yyyyyy -o >> postgres2oraFeb24.log 2>&1
+/home/hadaq/trbsoft/daq/oracle/postgres2ora.pl -opass hades -ppass '$report' -o >> postgres2oraFeb24.log 2>&1
## start script for separate runinfo2ora processes
# JAM feb-2012
# JAM added ld_library_path in feb-2014
+# JAM 13-05-2023: back to 4 builder servers again
# for icinga restart handler, we need to kill old processes first:
#echo "killing old processes:" /bin/pidof -x runinfo2ora.pl
sleep 1
/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb09/eb_runinfo2ora_2.txt > /home/hadaq/log/runinfo2ora_2_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb14/eb_runinfo2ora_3.txt > /home/hadaq/log/runinfo2ora_3_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb10/eb_runinfo2ora_3.txt > /home/hadaq/log/runinfo2ora_3_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb15/eb_runinfo2ora_4.txt > /home/hadaq/log/runinfo2ora_4_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb11/eb_runinfo2ora_4.txt > /home/hadaq/log/runinfo2ora_4_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb16/eb_runinfo2ora_5.txt > /home/hadaq/log/runinfo2ora_5_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb08/eb_runinfo2ora_5.txt > /home/hadaq/log/runinfo2ora_5_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb08/eb_runinfo2ora_6.txt > /home/hadaq/log/runinfo2ora_6_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb09/eb_runinfo2ora_6.txt > /home/hadaq/log/runinfo2ora_6_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb09/eb_runinfo2ora_7.txt > /home/hadaq/log/runinfo2ora_7_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb10/eb_runinfo2ora_7.txt > /home/hadaq/log/runinfo2ora_7_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb14/eb_runinfo2ora_8.txt > /home/hadaq/log/runinfo2ora_8_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb11/eb_runinfo2ora_8.txt > /home/hadaq/log/runinfo2ora_8_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb15/eb_runinfo2ora_9.txt > /home/hadaq/log/runinfo2ora_9_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb08/eb_runinfo2ora_9.txt > /home/hadaq/log/runinfo2ora_9_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb16/eb_runinfo2ora_10.txt > /home/hadaq/log/runinfo2ora_10_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb09/eb_runinfo2ora_10.txt > /home/hadaq/log/runinfo2ora_10_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb08/eb_runinfo2ora_11.txt > /home/hadaq/log/runinfo2ora_11_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb10/eb_runinfo2ora_11.txt > /home/hadaq/log/runinfo2ora_11_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb09/eb_runinfo2ora_12.txt > /home/hadaq/log/runinfo2ora_12_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb11/eb_runinfo2ora_12.txt > /home/hadaq/log/runinfo2ora_12_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb14/eb_runinfo2ora_13.txt > /home/hadaq/log/runinfo2ora_13_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb08/eb_runinfo2ora_13.txt > /home/hadaq/log/runinfo2ora_13_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb15/eb_runinfo2ora_14.txt > /home/hadaq/log/runinfo2ora_14_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb09/eb_runinfo2ora_14.txt > /home/hadaq/log/runinfo2ora_14_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb16/eb_runinfo2ora_15.txt > /home/hadaq/log/runinfo2ora_15_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb10/eb_runinfo2ora_15.txt > /home/hadaq/log/runinfo2ora_15_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb08/eb_runinfo2ora_16.txt > /home/hadaq/log/runinfo2ora_16_log.txt 2>&1 &
-# last is just dummy to get number of processes right
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb11/eb_runinfo2ora_16.txt > /home/hadaq/log/runinfo2ora_16_log.txt 2>&1 &
# v0.1 on 28-feb-2019 (j.adamczewski@gsi.de)
# v0.1b on 9-dec-2020 for beamtime feb21 JAM
# v0.1c on 10-jan-2022 for feb22 JAM
+# v0.1d on 5-oct-2023 for feb24 JAM
use English;
use strict;
-my $summary_file = "/home/hadaq/oper/oraruns/runs_feb22.txt";
-my $latest_file = "/home/hadaq/oper/oraruns/current_feb22.txt";
+my $summary_file = "/home/hadaq/oper/oraruns/runs_feb24.txt";
+my $latest_file = "/home/hadaq/oper/oraruns/current_feb24.txt";
#exit(0);
# test only connection up to here
-my $beamtime = 'FEB22';
+my $beamtime = 'FEB24';
my $runtype = 'BEAM';
# this one is for testing
#my $runBegin = '2019-02-20 00:00:00';
-my $runBegin = '2022-02-01 00:00:00';
+my $runBegin = '2024-01-01 00:00:00';
# default is begin of beam time with real beam
# will be replaced by last timestamp from summary file.
# $(date -d @$((1551679200+offset)) "+%Y-%m-%d %H:%M:%S") $(($offset*25/3600)) $(($offset*20/3600))
# JAM 12-02-2021: adjusted this for feb21 first be run time
# JAM 10-01-2022: TODO for feb22
+# JAM 08-01-24 for feb24
-
-start=1643950800 #4.2. 6h
-breakstart=1645509600
-breakend=1646028000
-end=1646802000
+start=1707260400 # 7-feb-24
+breakstart=1707433200 # 9-feb-24
+breakend=1709161200 # 29-feb-24
+end=1711234800 # 24-mar-24
cat <<EOF > /tmp/beam_trend.txt
# timestamp real propaganda
$(date -d @$(($end+25000)) "+%Y-%m-%d %H:%M:%S") $((($end-$start+$breakstart-$breakend)*1650/86400)) $((($end-$start+$breakstart-$breakend)*1450/86400))
EOF
#1.6 million per day nominal + 10% due to PT2
+# TODO: adjust expected rates, different for first period and second
-start=1643778000 #2.2. 6h
+#start=1643778000 #2.2. 6h
cat <<EOF > /tmp/beamtime.txt
# timestamp real propaganda
set key left top
-#set title "HADES Accumulated Statistics 2022"
-set xlabel "Feb/Mar 2022"
+#set title "HADES Accumulated Statistics 2024"
+set xlabel "Feb/Mar 2024"
set ylabel "Million Events"
#set y2label "Recorded Data [Gbyte]"
#set y2tics
set format x "%d"
#set timefmt "%H:%M:%S"
#set format x "%H:%M"
-set xrange ["2022-02-01 00:00":"2022-03-09 23:00"]
+set xrange ["2024-02-01 00:00":"2024-03-24 00:00"]
#set xtics 3600*24*4
set xtics 7200*24
plot '/tmp/beamtime.txt' using 1.2:3:4 title "Beamtime" ls 4 w filledcu, \
'/tmp/beam_trend.txt' using 1.2:3:4 title 'Anticipated Events'ls 3 w filledcu, \
- '/home/hadaq/oper/oraruns/runs_feb22.txt' using 2.3:(\$6/1100) title 'Recorded Events' ls 1 with lines
-
-#plot '/home/hadaq/oper/oraruns/runs_feb22.txt' using 2.3:(\$6/1000) title 'Recorded Events' ls 1 with lines
+ '/home/hadaq/oper/oraruns/runs_feb24.txt' using 2.3:(\$6/1100) title 'Recorded Events' ls 1 with lines
-# '/home/hadaq/oper/oraruns/runs_feb22.txt' using 2.3:7 ls 2 with lines axes x1y2
ENDS
scp /tmp/runstats.png hades33:/home/hadaq/trbsoft/daq/hmon/files/runstatscompare.png
-scp /tmp/runstats.png lxi100:/u/webhades/web-docs/media/logbook/feb22/
+#scp /tmp/runstats.png lxpool:/u/webhades/web-docs/media/logbook/feb24/
+scp /tmp/runstats.png lxi098:/u/webhades/web-docs/media/logbook/feb24/
#scp /tmp/runstats.png lxi001:/u/webhades/web-docs/onlineMon/feb22/
# Gnl Conf Trg Window Ch En 1-32 Ch En 33-64 RingBufSize Invert
# TDC # Type # C0 # C1 # C2 # C3 # C4 # C5 #
#################################################################################################
-#0xfe51 0 0x50003000 0x802800c8 0xFFFFFFFF 0x00000000 0x00000010 0x00000000 # dirich TDC
-#0xfe51 0 0x50003000 0x802800c8 0xFFFFFFFF 0x00000000 0x0000000a 0xffffffff # dirich TDC # Trigger Window active from -1000 to +200
- 0xfe51 0 0x50003000 0x87d800a0 0xFFFFFFFF 0x00000000 0x0000000a 0xffffffff # dirich TDC # Trigger Window active from - 800 to -200
+# 0xfe51 0 0x50003000 0x802800c8 0xFFFFFFFF 0x00000000 0x00000010 0x00000000 # dirich TDC
+# 0xfe51 0 0x50003000 0x802800c8 0xFFFFFFFF 0x00000000 0x0000000a 0xffffffff # dirich TDC # Trigger Window active from -1000 to +200
+0xfe51 0 0x50003000 0x87d800a0 0xFFFFFFFF 0x00000000 0x0000000a 0xffffffff # dirich TDC # Trigger Window active from - 800 to -200
# 0xfe51 0 0x50003000 0x87d800f0 0xFFFFFFFF 0x00000000 0x0000000a 0xffffffff # dirich TDC # Trigger Window active from - 1200 to -200
# 0xfe51 0 0x50003000 0x87d80118 0xFFFFFFFF 0x00000000 0x0000000a 0xffffffff # dirich TDC # Trigger Window active from - 1400 to -200
0xfe58 0 0x50003000 0x80640096 0x000000ff 0x00000000 0x00000010 0x00000000 0x00000000
-0x5000 0 0x50003000 0x80640096 0x000000ff 0x00000000 0x00000010 0x000000ff 0x00000000
-0x5001 0 0x50003000 0x80640096 0x000000ff 0x00000000 0x00000010 0x00000000 0x00000000
-0x5002 0 0x50003000 0x80640096 0x000000ff 0x00000000 0x00000010 0x000000ff 0x00000000
-0x5003 0 0x50003000 0x80640096 0x000000ff 0x00000000 0x00000010 0x00000000 0x00000000
-0x5004 0 0x50003000 0x80640096 0x000000ff 0x00000000 0x00000010 0x000000ff 0x00000000
+0x5000 0 0x50003000 0x80d20190 0x000000ff 0x00000000 0x00000010 0x000000ff 0x00000000
+0x5001 0 0x50003000 0x80d20190 0x000000ff 0x00000000 0x00000010 0x00000000 0x00000000
+0x5002 0 0x50003000 0x80d20190 0x000000ff 0x00000000 0x00000010 0x000000ff 0x00000000
+0x5003 0 0x50003000 0x80d20190 0x000000ff 0x00000000 0x00000010 0x00000000 0x00000000
+0x5004 0 0x50003000 0x80d20190 0x000000ff 0x00000000 0x00000010 0x000000ff 0x00000000
#0xfe76 0 0x50003000 0x87C40096 0xffffffff 0x0000ffff 0x00000010 0 0
trbcmd w 0x5004 0xe011 0x1fe #invert 8 channels
# set the LV of preamp of DiRich5d1
-exec_cmd{local} ~/hadesdaq/start/dirich5d_amplifier_voltage 0x5000 0xff # min Gain - start
+# 0xff about 2 times smaller then 0x00 !
+# Important! After changing it new threshold scan is needed !!
+exec_cmd{local} ~/hadesdaq/start/dirich5d_amplifier_voltage 0x5000 0x00 # min Gain - start
exec_cmd{local} ~/hadesdaq/start/dirich5d_amplifier_voltage 0x5001 0xff # min Gain - start
-exec_cmd{local} ~/hadesdaq/start/dirich5d_amplifier_voltage 0x5002 0xff # min Gain - start
+exec_cmd{local} ~/hadesdaq/start/dirich5d_amplifier_voltage 0x5002 0x00 # min Gain - start
exec_cmd{local} ~/hadesdaq/start/dirich5d_amplifier_voltage 0x5003 0xff # min Gain - Start
exec_cmd{local} ~/hadesdaq/start/dirich5d_amplifier_voltage 0x5004 0x00 # set max gain (Veto det !)
-2024/02/01 14:19:38 endpoint: 0x5000, chain: 00, channel: 0 threshold: 0x616d, uid: 0
-2024/02/01 14:19:38 endpoint: 0x5000, chain: 00, channel: 1 threshold: 0x6063, uid: 0
-2024/02/01 14:19:38 endpoint: 0x5000, chain: 00, channel: 2 threshold: 0xfffa, uid: 0
-2024/02/01 14:19:38 endpoint: 0x5000, chain: 00, channel: 3 threshold: 0x5fb3, uid: 0
-2024/02/01 14:19:38 endpoint: 0x5000, chain: 00, channel: 4 threshold: 0x6009, uid: 0
-2024/02/01 14:19:38 endpoint: 0x5000, chain: 00, channel: 5 threshold: 0xfffa, uid: 0
-2024/02/01 14:19:38 endpoint: 0x5000, chain: 00, channel: 6 threshold: 0x6145, uid: 0
-2024/02/01 14:19:38 endpoint: 0x5000, chain: 00, channel: 7 threshold: 0x60d5, uid: 0
-2024/02/01 14:19:52 endpoint: 0x5001, chain: 00, channel: 0 threshold: 0x54d5, uid: 0
-2024/02/01 14:19:52 endpoint: 0x5001, chain: 00, channel: 1 threshold: 0x5600, uid: 0
-2024/02/01 14:19:52 endpoint: 0x5001, chain: 00, channel: 2 threshold: 0x000f, uid: 0
-2024/02/01 14:19:52 endpoint: 0x5001, chain: 00, channel: 3 threshold: 0x583e, uid: 0
-2024/02/01 14:19:52 endpoint: 0x5001, chain: 00, channel: 4 threshold: 0x5706, uid: 0
-2024/02/01 14:19:52 endpoint: 0x5001, chain: 00, channel: 5 threshold: 0x000f, uid: 0
-2024/02/01 14:19:52 endpoint: 0x5001, chain: 00, channel: 6 threshold: 0x5401, uid: 0
-2024/02/01 14:19:52 endpoint: 0x5001, chain: 00, channel: 7 threshold: 0x5943, uid: 0
-2024/02/01 14:20:07 endpoint: 0x5002, chain: 00, channel: 0 threshold: 0x5f89, uid: 0
-2024/02/01 14:20:07 endpoint: 0x5002, chain: 00, channel: 1 threshold: 0x61eb, uid: 0
-2024/02/01 14:20:07 endpoint: 0x5002, chain: 00, channel: 2 threshold: 0xfffa, uid: 0
-2024/02/01 14:20:07 endpoint: 0x5002, chain: 00, channel: 3 threshold: 0x6191, uid: 0
-2024/02/01 14:20:07 endpoint: 0x5002, chain: 00, channel: 4 threshold: 0x5e9b, uid: 0
-2024/02/01 14:20:07 endpoint: 0x5002, chain: 00, channel: 5 threshold: 0xfffa, uid: 0
-2024/02/01 14:20:07 endpoint: 0x5002, chain: 00, channel: 6 threshold: 0x5e7b, uid: 0
-2024/02/01 14:20:07 endpoint: 0x5002, chain: 00, channel: 7 threshold: 0x5fc7, uid: 0
-2024/02/01 14:20:21 endpoint: 0x5003, chain: 00, channel: 0 threshold: 0x54cd, uid: 0
-2024/02/01 14:20:21 endpoint: 0x5003, chain: 00, channel: 1 threshold: 0x5913, uid: 0
-2024/02/01 14:20:21 endpoint: 0x5003, chain: 00, channel: 2 threshold: 0x000f, uid: 0
-2024/02/01 14:20:21 endpoint: 0x5003, chain: 00, channel: 3 threshold: 0x5833, uid: 0
-2024/02/01 14:20:21 endpoint: 0x5003, chain: 00, channel: 4 threshold: 0x575a, uid: 0
-2024/02/01 14:20:21 endpoint: 0x5003, chain: 00, channel: 5 threshold: 0x000f, uid: 0
-2024/02/01 14:20:21 endpoint: 0x5003, chain: 00, channel: 6 threshold: 0x5657, uid: 0
-2024/02/01 14:20:21 endpoint: 0x5003, chain: 00, channel: 7 threshold: 0x58e2, uid: 0
-2024/02/01 14:20:36 endpoint: 0x5004, chain: 00, channel: 0 threshold: 0x7cf9, uid: 0
-2024/02/01 14:20:36 endpoint: 0x5004, chain: 00, channel: 1 threshold: 0x7d79, uid: 0
-2024/02/01 14:20:36 endpoint: 0x5004, chain: 00, channel: 2 threshold: 0x7d85, uid: 0
-2024/02/01 14:20:36 endpoint: 0x5004, chain: 00, channel: 3 threshold: 0x7bd1, uid: 0
-2024/02/01 14:20:36 endpoint: 0x5004, chain: 00, channel: 4 threshold: 0x7c01, uid: 0
-2024/02/01 14:20:36 endpoint: 0x5004, chain: 00, channel: 5 threshold: 0x7c6d, uid: 0
-2024/02/01 14:20:36 endpoint: 0x5004, chain: 00, channel: 6 threshold: 0x7b2f, uid: 0
-2024/02/01 14:20:36 endpoint: 0x5004, chain: 00, channel: 7 threshold: 0x7cdb, uid: 0
+2024/02/07 06:46:15 endpoint: 0x5000, chain: 00, channel: 0 threshold: 0xa699, uid: 0
+2024/02/07 06:46:15 endpoint: 0x5000, chain: 00, channel: 1 threshold: 0xa851, uid: 0
+2024/02/07 06:46:15 endpoint: 0x5000, chain: 00, channel: 2 threshold: 0xfffa, uid: 0
+2024/02/07 06:46:15 endpoint: 0x5000, chain: 00, channel: 3 threshold: 0xa519, uid: 0
+2024/02/07 06:46:15 endpoint: 0x5000, chain: 00, channel: 4 threshold: 0xa3cb, uid: 0
+2024/02/07 06:46:15 endpoint: 0x5000, chain: 00, channel: 5 threshold: 0xfffa, uid: 0
+2024/02/07 06:46:15 endpoint: 0x5000, chain: 00, channel: 6 threshold: 0xa64b, uid: 0
+2024/02/07 06:46:15 endpoint: 0x5000, chain: 00, channel: 7 threshold: 0xa91f, uid: 0
+2024/02/07 06:46:29 endpoint: 0x5001, chain: 00, channel: 0 threshold: 0x3da7, uid: 0
+2024/02/07 06:46:29 endpoint: 0x5001, chain: 00, channel: 1 threshold: 0x4110, uid: 0
+2024/02/07 06:46:29 endpoint: 0x5001, chain: 00, channel: 2 threshold: 0x000f, uid: 0
+2024/02/07 06:46:29 endpoint: 0x5001, chain: 00, channel: 3 threshold: 0x4508, uid: 0
+2024/02/07 06:46:29 endpoint: 0x5001, chain: 00, channel: 4 threshold: 0x41fd, uid: 0
+2024/02/07 06:46:29 endpoint: 0x5001, chain: 00, channel: 5 threshold: 0x000f, uid: 0
+2024/02/07 06:46:29 endpoint: 0x5001, chain: 00, channel: 6 threshold: 0x3cd5, uid: 0
+2024/02/07 06:46:29 endpoint: 0x5001, chain: 00, channel: 7 threshold: 0x45e5, uid: 0
+2024/02/07 06:46:44 endpoint: 0x5002, chain: 00, channel: 0 threshold: 0xa609, uid: 0
+2024/02/07 06:46:44 endpoint: 0x5002, chain: 00, channel: 1 threshold: 0xae05, uid: 0
+2024/02/07 06:46:44 endpoint: 0x5002, chain: 00, channel: 2 threshold: 0xfffa, uid: 0
+2024/02/07 06:46:44 endpoint: 0x5002, chain: 00, channel: 3 threshold: 0xaf7d, uid: 0
+2024/02/07 06:46:44 endpoint: 0x5002, chain: 00, channel: 4 threshold: 0xa1c7, uid: 0
+2024/02/07 06:46:44 endpoint: 0x5002, chain: 00, channel: 5 threshold: 0xfffa, uid: 0
+2024/02/07 06:46:44 endpoint: 0x5002, chain: 00, channel: 6 threshold: 0xa501, uid: 0
+2024/02/07 06:46:44 endpoint: 0x5002, chain: 00, channel: 7 threshold: 0xab3d, uid: 0
+2024/02/07 06:46:58 endpoint: 0x5003, chain: 00, channel: 0 threshold: 0x3e8e, uid: 0
+2024/02/07 06:46:58 endpoint: 0x5003, chain: 00, channel: 1 threshold: 0x45f9, uid: 0
+2024/02/07 06:46:58 endpoint: 0x5003, chain: 00, channel: 2 threshold: 0x000f, uid: 0
+2024/02/07 06:46:58 endpoint: 0x5003, chain: 00, channel: 3 threshold: 0x44bb, uid: 0
+2024/02/07 06:46:58 endpoint: 0x5003, chain: 00, channel: 4 threshold: 0x42d2, uid: 0
+2024/02/07 06:46:58 endpoint: 0x5003, chain: 00, channel: 5 threshold: 0x000f, uid: 0
+2024/02/07 06:46:58 endpoint: 0x5003, chain: 00, channel: 6 threshold: 0x4054, uid: 0
+2024/02/07 06:46:58 endpoint: 0x5003, chain: 00, channel: 7 threshold: 0x469c, uid: 0
+2024/02/07 06:47:13 endpoint: 0x5004, chain: 00, channel: 0 threshold: 0x7d05, uid: 0
+2024/02/07 06:47:13 endpoint: 0x5004, chain: 00, channel: 1 threshold: 0x7d31, uid: 0
+2024/02/07 06:47:13 endpoint: 0x5004, chain: 00, channel: 2 threshold: 0x7dbf, uid: 0
+2024/02/07 06:47:13 endpoint: 0x5004, chain: 00, channel: 3 threshold: 0x7bbb, uid: 0
+2024/02/07 06:47:13 endpoint: 0x5004, chain: 00, channel: 4 threshold: 0x7c01, uid: 0
+2024/02/07 06:47:13 endpoint: 0x5004, chain: 00, channel: 5 threshold: 0x7c67, uid: 0
+2024/02/07 06:47:13 endpoint: 0x5004, chain: 00, channel: 6 threshold: 0x7b41, uid: 0
+2024/02/07 06:47:13 endpoint: 0x5004, chain: 00, channel: 7 threshold: 0x7cf3, uid: 0