--- /dev/null
+
+####################
+## Script for beam abort settings
+####################
+
+
+exec_cmd{local} trbcmd -f /home/hadaq/trbsoft/daq/beamabort/beamabort.trbcmd
trbcmd loadbit 0x003 0xA0C1 0x0000000F 0x00000004
trbcmd setbit 0x0003 0xA0C2 0x01000000
-!ifndef MON_CTS
- trbcmd -f cts_settings.trbcmd
-!endif
+#!ifndef MON_CTS
+# trbcmd -f cts_settings.trbcmd
+#!endif
!ifdef MON_CTS
trbcmd -f cts_settings_mon.trbcmd
0x6010 117 1 0 0
0x6011 165 1 0 0
0x6012 123 1 0 0
- 0x6013 121 1 0 0
+ 0x6013 107 1 0 0 #121 22-01-05
0x6014 159 1 0 0
0x6015 105 1 0 0
0x6016 106 1 0 0
0x6042 120 1 0 0
0x6043 125 1 0 0
0x6044 113 1 0 0
- 0x6045 133 1 0 0
+ 0x6045 309 1 0 0 #133 22-01-13
0x6046 124 1 0 0
0x6050 122 1 0 0
# TDC # Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 #
###########################################################################################################
-0xfe71 0 0x50003000 0x83ff00c0 0xffffffff 0x0000ffff 0x00000010 0xaaaaaaaa 0xaaaaaaaa# trb3sc1 TDC
-
+0xfe71 0 0x50003000 0x819000c0 0xffffffff 0x0000ffff 0x0000000a 0xaaaaaaaa 0xaaaaaaaa# trb3sc1 TDC
+#0x6010 0 0x50003000 0x812c00c0 0x0000ffff 0x00000000 0x00000010 0xaaaaaaaa 0xaaaaaaaa# BROKEN TDCs OFF
+#0x6013 0 0x50003000 0x812c00c0 0xffffffff 0x00000000 0x00000010 0xaaaaaaaa 0xaaaaaaaa# BROKEN TDCs OFF
+#2021-11-18 trigger window to -960..+1500 changed
trbcmd w 0x0120 0xa207 0x2e #PulserWidth=47ns
trbcmd w 0x0120 0xa208 0x2e #PulserWidth=47ns
-# the following is also included in ecal_set_thresholds.pl, so this is only
-# for the other systems
+
trbcmd w 0xfe71 0x7111 500
trbcmd w 0xfe71 0x7114 0x00050000 #min number of words per board
exec_cmd{local} ecal_set_thresholds.pl
#Load TDC settings
- load_register register_tdc_ecal.db
+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
-eb_2021-test.conf
\ No newline at end of file
+eb_feb22.conf
\ No newline at end of file
# LTSM default options for all EB processes
#LTSM_PATH: /lustre/hades/raw/jun19test/default/tsm
-LTSM_PATH: /lustre/hades/raw/jun21test
-#LTSM_PATH: /hebetest/hades/raw/feb21/
-#LTSM_Server: lxltsm01-tsm-server
+# beamtime config:
+LTSM_PATH: /lustre/hades/raw/feb22
LTSM_Server: lxltsm01
+# for hadestest:
+#LTSM_PATH: /lustre/hades/raw/test
+#LTSM_Server: lxltsm02
+
+
#LTSM_Node: LTSM_TEST01
#LTSM_Passwd: LTSM_TEST01
# we need at least 5 entries here (number of eventbuilder servers)
#LTSM_FSD_SERVERS: lxfsd01 lxfsd02-eth lxfsd03 lxfsd01
#LTSM_FSD_SERVERS: lxfsd04-eth lxfsd07-eth lxfsd04-eth lxfsd07-eth lxfsd04-eth
-# setup tests september 2021:
-LTSM_FSD_SERVERS: lxfsd01 lxfsd02-eth lxfsd03-eth lxfsd06-eth lxfsd07-eth
+# setup feb2022:
+LTSM_FSD_SERVERS: lxfsd01-eth lxfsd02-eth lxfsd03-eth lxfsd04-eth lxfsd05-eth
#LTSM_FSD_SERVERS: lxfsd01-eth lxfsd02 lxfsd03-eth lxfsd01-eth lxfsd02
#LTSM_FSD_SERVERS: lxfsd01-eth lxfsd03-eth lxfsd01-eth lxfsd03-eth lxfsd01-eth
LTSM_FSD_PORT: 7625 7625 7625 7625 7625
-start_eb_gbe_2021-test.pl
\ No newline at end of file
+start_eb_gbe_feb22.pl
\ No newline at end of file
0x6803 261 3
# frpc2
-0x6810 244 0
-0x6811 244 1
-0x6812 244 2
-0x6813 244 3
+0x6810 238 0
+0x6811 238 1
+0x6812 238 2
+0x6813 238 3
<h3>MDC Temperature</h3>
<p>
-This button shows the temperatures of the four MDC planes. For more detailed temperature distributions in the single MDC sectors, watch
+This button shows the temperatures of the four MDC planes. For more detailed temperature distributions in the single MDC sectors, check
<a href="/mon/monitor.cgi?10-MDCTemperature">here</a>.
</p>
<h4>Error Handling</h4>
-If there is an over-temperature error, check the power consumption of boards (6.8V should not be above 190A). Restart DAQ to see if power-consumption goes down. A power shutdown of MDC may be required.
+If there is an over-temperature error, check the power consumption of boards (6.8V should not be above 190A). Restart DAQ to see if power-consumption goes down. Contact the MDC expert.
#new TOF
0x86c0 088 5 0 0
-0x86c1 264 5 0 0
+0x86c1 262 5 0 0
0x86c2 006 5 0 0
0x86c3 242 5 0 0
0x86c4 265 5 0 0
#fRPC
0x8c00 261 5 0 0
- 0x8c10 244 5 0 0
+ 0x8c10 238 5 0 0
#Wall
-register_configgbe_ip_2021-test-mdconlytwoebs.db
\ No newline at end of file
+register_configgbe_ip_feb22.db
\ No newline at end of file
#trbcmd clearbit 0x8014 0xc1 0x40
#trbcmd clearbit 0x8014 0xc3 0x40
+#Veto 3rd FPGA not used
+trbcmd clearbit 0x8890 0xc0 0x4
+trbcmd clearbit 0x8890 0xc1 0x4
+trbcmd clearbit 0x8890 0xc3 0x4
+
+
#Remove both SCS from Trigger Distribution
trbcmd clearbit 0x8000 0xc0 0x200 #remove pexor from trigger
load_register register_tdc.db
+# sets all thresholds for itof
+exec_cmd{local} ~/trbsoft/daq/itof/set_threshold_itof.sh
exec_cmd{con} echo "Configure Trigger"
exec_script{local} ../trg/startup.script
+ exec_cmd{con} echo "Configure Beam Abort"
+ exec_script{local} ../beamabort/startup.script
+
#Central boards / CTS / SCS
exec_cmd{con} echo "Configure CTS"
#Disable failing boards
-#switchport.pl 0x1104 2 off #2309 , didn't like spike rejection 0x10 (means off), mt 2021.02.14
+###switchport.pl 0x1104 2 off #2309 , didn't like spike rejection 0x10 (means off), mt 2021.02.14
switchport.pl 0x1101 4 off #2203, 02.02.22
+switchport.pl 0x1024 7 off #2027, 04.02.22
+switchport.pl 0x1023 8 off #2057, 04.02.22
notifyall.sh "DAQ" "<N> DAQ has been started." "STARTUP" &
echo " <Startup> Configuration finished!"
+#ssh hadeswrp02 bin/enable_beam_abort.sh
+
#/home/hadaq/trbsoft/hadesdaq/rich/retransmission.sh 2>/dev/null &
if [ -z $1 ]
# JAM 10-01-2022: TODO for feb22
-offset=2419200
+start=1643778000
+breakstart=1645509600
+breakend=1646028000
+end=1646802000
+
cat <<EOF > /tmp/beam_trend.txt
# timestamp real propaganda
-$(date -d @1612990204 "+%Y-%m-%d %H:%M:%S") 0 0
-$(date -d @$((1612990204+offset)) "+%Y-%m-%d %H:%M:%S") $(($offset*25/3600)) $(($offset*20/3600))
+$(date -d @$(($start)) "+%Y-%m-%d %H:%M:%S") 0 0
+$(date -d @$(($breakstart)) "+%Y-%m-%d %H:%M:%S") $((($breakstart-$start)*1800/86400)) $((($breakstart-$start)*1500/86400))
+$(date -d @$(($breakend)) "+%Y-%m-%d %H:%M:%S") $((($breakstart-$start)*1800/86400)) $((($breakstart-$start)*1500/86400))
+$(date -d @$(($end)) "+%Y-%m-%d %H:%M:%S") $((($end-$start+$breakstart-$breakend)*1800/86400)) $((($end-$start+$breakstart-$breakend)*1500/86400))
+EOF
+#1.5 million per day nominal + 10% due to PT2
+
+cat <<EOF > /tmp/beamtime.txt
+# timestamp real propaganda
+$(date -d @$(($start-1000000)) "+%Y-%m-%d %H:%M:%S") 50000 0
+$(date -d @$(($start-20001)) "+%Y-%m-%d %H:%M:%S") 50000 0
+$(date -d @$(($start-20000)) "+%Y-%m-%d %H:%M:%S") 0 0
+$(date -d @$(($breakstart-1)) "+%Y-%m-%d %H:%M:%S") 0 0
+$(date -d @$(($breakstart)) "+%Y-%m-%d %H:%M:%S") 50000 0
+$(date -d @$(($breakend)) "+%Y-%m-%d %H:%M:%S") 50000 0
+$(date -d @$(($breakend+1)) "+%Y-%m-%d %H:%M:%S") 0 0
+$(date -d @$(($end-1)) "+%Y-%m-%d %H:%M:%S") 0 0
+$(date -d @$(($end)) "+%Y-%m-%d %H:%M:%S") 50000 0
+$(date -d @$(($end+1000000)) "+%Y-%m-%d %H:%M:%S") 50000 0
EOF
gnuplot -p <<ENDS
set key left top
#set title "HADES Accumulated Statistics 2022"
-set xlabel "February 2022"
+set xlabel "Feb/Mar 2022"
set ylabel "Million Events"
#set y2label "Recorded Data [Gbyte]"
#set y2tics
set style line 1 lt rgb "#000000" lw 3 #dd7700
set style line 2 lt rgb "#008800" lw 2
set style line 3 lt rgb "#5ce000" lw 2 #ffc155
+set style line 4 lt rgb "#aaaaaa" lw 2 #888888
set style fill transparent solid 0.4 border lc "#5ce000" #ffc155
-set yrange [0:1500]
+set yrange [0:15000]
-#f(x) = 21./3600 * (x-1612990204);
+#f(x) = 65/3600 * (x-1612990204);
#1551679200);
-f(x) = 24./3600 * (x-11612990204.0);
+# f(x) = 60/3600 * (x-1612990204.0);
#551679200);
set xdata time
set format x "%d"
#set timefmt "%H:%M:%S"
#set format x "%H:%M"
-set xrange ["2022-02-01 00:00":"2022-02-07 09:00"]
+set xrange ["2022-02-01 00:00":"2022-02-11 09:00"]
#set xtics 3600*24*4
-set xtics 3600*24
+set xtics 7200*24
-# plot '/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/1000) title 'Recorded Events' ls 1 with lines
+ 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/1000) 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
+#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_feb22.txt' using 2.3:7 ls 2 with lines axes x1y2
#################################################################################################
#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 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
#0x5001 409 1 0 0
#0x5003 407 1 0 0
#0x5002 405 1 0 0
-0x5000 334 1 0 0
+0x5000 441 1 0 0
0x5001 340 1 0 0
0x5002 342 1 0 0
0x5003 344 1 0 0
0x5004 424 1 0 0
0x5005 433 1 0 0
0x5006 434 1 0 0
-0x5007 441 1 0 0
+0x5007 334 1 0 0
0x5d00 338 1 0 0
0x5d01 341 1 0 0
0x5d02 337 1 0 0
0x5d03 410 1 0 0
0x5d04 339 1 0 0
-0x5d05 408 1 0 0
+0x5d05 346 1 0 0 #was 408, bad TDC 10.1.22
# TDC # Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 #
###########################################################################################################
-0xfe76 0 0x50003000 0x800a00c8 0xffffffff 0x0000ffff 0x00000010 0 0
+#0xfe76 0 0x50003000 0x800a00c8 0xffffffff 0x0000ffff 0x00000010 0 0
+0xfe76 0 0x50003000 0x87C40096 0xffffffff 0x0000ffff 0x00000010 0 0
-0xfe76 3 0xffffffff 0xffff
+#0xfe76 3 0xffffffff 0xffff
export PERL5LIB="$HOME/trbsoft/daqtools/perllibs"
-cd ~/hadesdaq/start
-~/trbsoft/daqtools/thresholds/write_thresholds.pl current_thresholds --offset=-100
+cd ~/trbsoft/daq/start
+~/trbsoft/daqtools/thresholds/write_thresholds.pl current_thresholds --offset=0
load_register register_tdc.db
# sets all thresholds for start
+
+exec_cmd{local} ~/trbsoft/daqtools/tools/padiwa.pl 0xfe76 0 invert 0xffff
+exec_cmd{local} ~/trbsoft/daqtools/tools/padiwa.pl 0xfe76 1 invert 0xffff
+
exec_cmd{local} ~/hadesdaq/start/set_threshold_start.sh
+
-#Broadcasts affect Veto as well
+#Broadcasts affect Veto/Hodo as well
trbcmd s 0x42000005ed6b0428 0x03 0x6445 #workaround for wrong endpoint id
-#Configuration for Veto Padiwa
+#Configuration for Veto/Hodo Padiwa
+
+exec_cmd{local} ~/trbsoft/daqtools/tools/padiwa.pl 0x5010 0 invert 0xffff
+exec_cmd{local} ~/trbsoft/daqtools/tools/padiwa.pl 0x5010 1 invert 0xffff
+exec_cmd{local} ~/trbsoft/daqtools/tools/padiwa.pl 0x5011 0 invert 0xffff
+exec_cmd{local} ~/trbsoft/daqtools/tools/padiwa.pl 0x5011 1 invert 0xffff
+
+exec_cmd{local} ~/hadesdaq/hodo/thresholds/set_threshold_hodo.sh
+
0x5C02 088 2
0x5C03 088 3
-0x5C10 264 0
-0x5C11 264 1
-0x5C12 264 2
-0x5C13 264 3
+0x5C10 262 0
+0x5C11 262 1
+0x5C12 262 2
+0x5C13 262 3
0x5C20 006 0
0x5C21 006 1
#########
-#This script is for TOF and fRPC
+#This script is for TOF, FWall and fRPC
#########
trbcmd w 0xfe47 0x7111 500 #max number of words per board
#fRPC configuration
+exec_cmd{local} /home/hadaq/trbsoft/daq/frpc/setThreshold.sh
+#Wall configuration
0x8b14 200 0 0 0 0 0xfeff 0 0xfeff 0
0x8b15 200 0 0 0 0 0x00ff 0 0x00ff 0
-#TOF, fRPC TDC: forward to central FPGA in groups of 16
- 0xfe47 200 0x0000ffff 0 0xffff0000 0 0 0x0000ffff 0xffffffff 0
- 0x6810 100 0xF 0 0x30000 0x400 #mult2 for PMT signals
+#TOF, fRPC, FW TDC: forward to central FPGA in groups of 16
+ 0xfe47 200 0x0000ffff 0 0xffff0000 0 0 0 0xffffffff 0
+ 0xfe47 400 0x55555555 0xaaaaaaaa 0x00000004 #even/odd coincidence for fRPC layer
+# 0x6810 100 0xF 0 0x30000 0x400 #mult2 for PMT signals
-#fRPC: 1 and 2 or 3 and 4
+#fRPC: 1 and 2 or 3 and 4 to output 4
0x8c00 111 0 0x80000 0
- 0x8c00 300 0x80000703 0x80000F0B 0 0
+ 0x8c00 300 0x80000602 0x80000e0a 0 0
0x8c10 111 0 0x80000 0
- 0x8c10 300 0x80000703 0x80000F0B 0 0
- 0x8c10 200 0 0 0 0 4 0 0 0 #PMT signal
+ 0x8c10 300 0x80000602 0x80000e0a 0 0
+ 0x8c00 200 0 0 0 0 0 0 0 0
+ 0x8c10 200 0 0 0 0 0 0 0 0
+
#Veto
0x8890 200 0 0 0 0 0x088 0 0 0
0x5010 400 0xffff 0xffff0000 0x8 #left/right coincidence for bars
0x5011 400 0xffff 0xffff0000 0x8
+ 0x8890 201 0 0 0 0 0x102
+ 0x5010 201 0xffffffff 0 0 0 0x102
+ 0x5011 201 0xffffffff 0 0 0 0x102
+
+
#Wall: all to second output
0x6700 200 0 0 0xffffffff 0
0x6701 200 0 0 0xffffffff 0
#Start: or of all channels, in groups of 16 on Pair 1-3, or on Pair 4
##################################
- 0x5000 200 0 0x000000ff 0xfffffc00 0x000000ff 0x0000fc00 0 0xffff0000 0
- 0x5003 200 0 0x000000ff 0xfffffc00 0x000000ff 0x0000fc00 0 0xffff0000 0
- 0x5001 200 0 0x0000fc00 0xffff00ff 0x0000fc00 0x000000ff 0 0xffff0000 0
- 0x5002 200 0 0x0000fc00 0xffff00ff 0x0000fc00 0x000000ff 0 0xffff0000 0
-
+ 0xfe76 200 0x0003f000 0 0x00fc0000 0 0x0000003f 0 0x00000fc0 0
+ 0xfe76 201 0xffffffff 0 0 0 0x102
#iTOF: or of all channels, multiplicity in groups of 12/16 on Pair 2,3,4 and or on 1
##################################
- 0x5d00 110 0x00000fff 0 0x0fff0000 0 0 0x00000fff
- 0x5d01 110 0x00000fff 0 0x0fff0000 0 0 0x00000fff
- 0x5d02 110 0x00000fff 0 0x0fff0000 0 0 0x00000fff
- 0x5d03 110 0x00000fff 0 0x0fff0000 0 0 0x00000fff
- 0x5d04 110 0x00000fff 0 0x0fff0000 0 0 0x00000fff
- 0x5d05 110 0x00000fff 0 0x0fff0000 0 0 0x00000fff
-
- 0x5d00 111 0x03030300 0x00000800 0x00000201
- 0x5d01 111 0x03030300 0x00000800 0x00000201
- 0x5d02 111 0x03030300 0x00000800 0x00000201
- 0x5d03 111 0x03030300 0x00000800 0x00000201
- 0x5d04 111 0x03030300 0x00000800 0x00000201
- 0x5d05 111 0x03030300 0x00000800 0x00000201
-
- 0x5d00 200 0 0 0 0 0x0fff0fff 0x0fff 0 0
- 0x5d01 200 0 0 0 0 0x0fff0fff 0x0fff 0 0
- 0x5d02 200 0 0 0 0 0x0fff0fff 0x0fff 0 0
- 0x5d03 200 0 0 0 0 0x0fff0fff 0x0fff 0 0
- 0x5d04 200 0 0 0 0 0x0fff0fff 0x0fff 0 0
- 0x5d05 200 0 0 0 0 0x0fff0fff 0x0fff 0 0
+ 0xfe74 110 0x00000fff 0 0x0fff0000 0 0 0x00000fff
+
+ 0xfe74 111 0x03030300 0x00000800 0x00000201
+
+ 0xfe74 200 0 0 0 0 0x0fff0fff 0x0fff 0 0
#Secondary trigger box
##################################
#Setup 3: or of all STS boards on output 3
#Setup 4: from fRPC (PMT mult2 plus both ends of RPC)
- 0x0100 200 0 0x00003e3e 0x40000 0 0x0000003f 0x000f0000 0x00000c00 0
+ 0x0100 200 0 0x00003e3e 0x40000 0 0x0000003f 0x000f0000 0x00008800 0
0x0100 201 0 0x00003e3e 0 0 0
0xfe61 900 0xffffffff 0xffffffff
0xfe71 900 0xffffffff 0xffffffff
0xfe73 900 0xffffffff 0xffffffff
- 0xfe47 902 0xffffffff
+ 0xfe47 900 0xffffffff 0x0000000f
0xfe4c 900 0xffffffff 0xffff
0xfe40 902 0x000fffff
0x0100 900 0xffffffff 0xffffffff #secondary box
- 0xfe74 900 0x7fff7fff 0x00007fff
-
- 0x5000 900 0xffffffff 0x0000ffff #disable unused channels in Start 0xffff0000
- 0x5001 900 0xffffffff 0x0000ffff
- 0x5002 900 0xffffffff 0x0000ffff
- 0x5003 900 0xffffffff 0x0000ffff
- 0x5004 900 0xffffffff 0x0000ffff
- 0x5005 900 0xffffffff 0x0000ffff
- 0x5006 900 0xffffffff 0x0000ffff
- 0x5007 900 0xffffffff 0x0000ffff
-
-# 0x5d00 900 0x7fff7fff 0x7fff
-# 0x5d01 900 0x7fff7fff 0x7fff
-# 0x5d02 900 0x7fff7fff 0x7fff
-# 0x5d03 900 0x7fff7fff 0x7fff
-# 0x5d04 900 0x7fff7fff 0x7fff
-# 0x5d05 900 0x7fff7fff 0x7fff
+ 0xfe74 900 0x7fff7fff 0x000f7fff
+
+ 0xfe76 902 0x0fffffff
0xfe4c 901 0xffffffff 0xffff #invert monitor for STS/Veto
-P18_b.txt
\ No newline at end of file
+20220208_P1to8b.trbcmd
\ No newline at end of file