From: Carsten Schwarz Date: Fri, 4 Nov 2022 13:31:18 +0000 (+0100) Subject: cleanup nov22 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=28d7642bed9e9b0e3b60e952f34303c663d8b67b;p=daqtools.git cleanup nov22 --- diff --git a/users/gsi_dirc/.root_hist b/users/gsi_dirc/.root_hist deleted file mode 100644 index 8cfa9c1..0000000 --- a/users/gsi_dirc/.root_hist +++ /dev/null @@ -1,157 +0,0 @@ -.q -.x /home/hadaq/dirc/unpacker_mz/edges.C("ce15140130423.hld.root",10000,1) -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -. -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TBrowser t;.q -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -ls -lrta -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TBrowser t;.q -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -TFile *_file0 = TFile::Open("Go4AutoSave.root") -TBrowser t; -.q -74.36-75.2 -74.36-75.20 -12*64/48. -.q -TFile *_file0 = TFile::Open("/d/aug2017/beam_17253011434.A.root") -.ls -A->Print() -.q -512/16. -.q -TFile *_file0 = TFile::Open("/d/jul2018/beam_18219131055.A.root") -.ls -A->Print() -.q diff --git a/users/gsi_dirc/EventBuilderNew.xml b/users/gsi_dirc/EventBuilderNew.xml index 1ad653c..9e777f1 100644 --- a/users/gsi_dirc/EventBuilderNew.xml +++ b/users/gsi_dirc/EventBuilderNew.xml @@ -64,15 +64,15 @@ When starting analysis from the go4 gui, one should specify stream server with p - + - - - - - + + + + + diff --git a/users/gsi_dirc/EventBuilder_autogenerated.xml b/users/gsi_dirc/EventBuilder_autogenerated.xml deleted file mode 100644 index fc75052..0000000 --- a/users/gsi_dirc/EventBuilder_autogenerated.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/users/gsi_dirc/addresses_dirich.db b/users/gsi_dirc/addresses_dirich.db index dac632b..816494a 100644 --- a/users/gsi_dirc/addresses_dirich.db +++ b/users/gsi_dirc/addresses_dirich.db @@ -3,10 +3,10 @@ # Address # S/N # FPGA -0x2014 0905 1 +0x2014 1107 1 0x2015 0906 1 0x2016 0915 1 -0x2017 1107 1 +0x2017 0905 1 #0x1205 0541 1 #0x1206 0591 1 #0x1207 1601 1 @@ -15,4 +15,5 @@ #0x1210 #0x1211 #0x1212 - +# 915: channel 20 broken +# diff --git a/users/gsi_dirc/addresses_trb3.db b/users/gsi_dirc/addresses_trb3.db index fcebaf5..c3bc8eb 100644 --- a/users/gsi_dirc/addresses_trb3.db +++ b/users/gsi_dirc/addresses_trb3.db @@ -12,32 +12,32 @@ 0xc000 56 5 # TRB 00 2018 -0x2000 99 0 -0x2001 99 1 -0x2002 99 2 -0x2003 99 3 -0x8000 99 5 +#0x2000 99 0 +#0x2001 99 1 +#0x2002 99 2 +#0x2003 99 3 +#0x8000 99 5 # TRB 01 2018 -0x2004 73 0 -0x2005 73 1 -0x2006 73 2 -0x2007 73 3 -0x8001 73 5 +#0x2004 73 0 +#0x2005 73 1 +#0x2006 73 2 +#0x2007 73 3 +#0x8001 73 5 # TRB 02 2018 -0x2008 72 0 -0x2009 72 1 -0x200a 72 2 -0x200b 72 3 -0x8002 72 5 +#0x2008 72 0 +#0x2009 72 1 +#0x200a 72 2 +#0x200b 72 3 +#0x8002 72 5 # TRB 03 2018 -0x200c 104 0 -0x200d 104 1 -0x200e 104 2 -0x200f 104 3 -0x8003 104 5 +#0x200c 104 0 +#0x200d 104 1 +#0x200e 104 2 +#0x200f 104 3 +#0x8003 104 5 # AUX/GPIO 2018 0x2010 57 0 diff --git a/users/gsi_dirc/check_ping.pl b/users/gsi_dirc/check_ping.pl index 8b2df3d..c6a4aa9 100755 --- a/users/gsi_dirc/check_ping.pl +++ b/users/gsi_dirc/check_ping.pl @@ -19,21 +19,21 @@ my $result = GetOptions ( # not used.... :-) -#my @trbs = (56, 72, 99, 73, 74, 104, 97, 59, 89, 57); +#my @trbs = (56,57); my $map = { - 0 => { trb => 99, sys => "MCP 00" }, - 1 => { trb => 73, sys => "MCP 01" }, - 2 => { trb => 72, sys => "MCP 02" }, - 3 => { trb => 104, sys => "MCP 03" }, - 4 => { trb => 57, sys => "AUX" }, +# 1 => { trb => 99, sys => "MCP 00" }, +# 1 => { trb => 73, sys => "MCP 01" }, +# 1 => { trb => 72, sys => "MCP 02" }, +# 0 => { trb => 104, sys => "MCP 03" }, + 0 => { trb => 57, sys => "AUX" }, # 5 => { trb => xx, sys => "" }, # 6 => { trb => 59, sys => "TOF 2" }, # 7 => { trb => 83, sys => "HODO" }, -1 => { trb => 56, sys => "CTS" }, }; -my $MAX_PROCESSES=30; +my $MAX_PROCESSES=10; my $pm = Parallel::ForkManager->new($MAX_PROCESSES); my $maximal_reboot_counter = 4; my $number_of_reboots_done = 0; diff --git a/users/gsi_dirc/check_tot.dat b/users/gsi_dirc/check_tot.dat deleted file mode 100644 index 320bed3..0000000 --- a/users/gsi_dirc/check_tot.dat +++ /dev/null @@ -1,52 +0,0 @@ -52 -1116 -9 -354 -1 -339 -1 -941 -30 -1863 -18 -477 -28 -745 -62 -2449 -71 -3552 -24 -1197 -8 -908 -69 -3010 -202 -5469 -53 -2073 -104 -2609 -141 -6230 -0 -1 -0 -3 -0 -0 -0 -0 -0 -0 -0 -1 -0 -0 -0 -0 -0 -5 -0 -13 diff --git a/users/gsi_dirc/convert.sh b/users/gsi_dirc/convert.sh new file mode 100755 index 0000000..d64f15e --- /dev/null +++ b/users/gsi_dirc/convert.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +getLast() { + echo "$(ls -tr1 $1 | tail -n 1)" +} + +threads=10 +if [ -n "$1" ] && [ "$1" -eq "$1" ]; then + threads="$1" +fi + +cd /d/jan2022 +echo "Converting $(getLast '*.hld') to root file" +hldtools -x -j$threads -l +root $(getLast '*.A.root') +cd - diff --git a/users/gsi_dirc/hv/.root_hist b/users/gsi_dirc/hv/.root_hist deleted file mode 100644 index 27e4627..0000000 --- a/users/gsi_dirc/hv/.root_hist +++ /dev/null @@ -1,2 +0,0 @@ -248/4 -.q\ diff --git a/users/gsi_dirc/hv/hv_lab2021_March.sh b/users/gsi_dirc/hv/hv_lab2021_March.sh index 4351f69..32c91f2 100755 --- a/users/gsi_dirc/hv/hv_lab2021_March.sh +++ b/users/gsi_dirc/hv/hv_lab2021_March.sh @@ -12,6 +12,7 @@ case "$1" in snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u0 F -100.0 snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u0 F 0.0008 snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 2390 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 1800 # 1356 # snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u1 F -100.0 # snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u1 F 0.0008 diff --git a/users/gsi_dirc/hv/hv_test.sh b/users/gsi_dirc/hv/hv_test.sh index d1c57c2..55017eb 100755 --- a/users/gsi_dirc/hv/hv_test.sh +++ b/users/gsi_dirc/hv/hv_test.sh @@ -8,109 +8,31 @@ case "$1" in snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod sysMainSwitch.0 i 0 ;; on) -# 1306 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u0 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u0 F 0.0006 -# 10^6 value snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 2082 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 0 -# 1392 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u1 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u1 F 0.0006 -# 10^6 value snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u1 F 1749 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u1 F 0 # 1357 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u2 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u2 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u2 F 0 -# 1353 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u3 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u3 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u3 F 0 -# 1339 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u4 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u4 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u4 F 0 -# 1142 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u5 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u5 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u5 F 2250 -# 1352 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u6 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u6 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u6 F 1720 -# 1360 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u7 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u7 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u7 F 0 -#1338 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u8 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u8 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u8 F 0 -# 1128 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u9 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u9 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u9 F 0 -# 1358 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u10 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u10 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u10 F 0 + snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u0 F -100.0 + snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u0 F 0.0008 +#snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 2110 +snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 1950 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 2010 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 1800 # 1356 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u11 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u11 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u11 F 0 -# 1336 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u12 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u12 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u12 F 0 -# 1355 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u13 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u13 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u13 F 0 -# 1142 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u14 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u14 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u14 F 0 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u1 F -100.0 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u1 F 0.0008 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u1 F 1910 read -n1 -p "No error message? Turn on HV ? (y/n) " echo [[ $REPLY = [yY] ]] && - echo " " - echo "writing Erlangen MCP scan HV values " - echo " " - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u0 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u1 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u2 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u3 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u4 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u5 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u6 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u7 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u8 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u9 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u10 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u11 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u12 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u13 i 0 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u14 i 0 && - { echo "Nothing done"; exit 1; } + snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u0 i 1 && +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u1 i 1 && + + { exit 1; } ;; off) snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u0 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u1 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u2 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u3 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u4 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u5 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u6 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u7 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u8 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u9 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u10 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u11 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u12 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u13 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u14 i 0 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u1 i 0 + ;; *) echo "init Turn on main switch" diff --git a/users/gsi_dirc/hv/test.sh b/users/gsi_dirc/hv/test.sh index 12d1e44..79a5877 100755 --- a/users/gsi_dirc/hv/test.sh +++ b/users/gsi_dirc/hv/test.sh @@ -8,118 +8,29 @@ case "$1" in snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod sysMainSwitch.0 i 0 ;; on) -# 765 XX - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u0 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u0 F 0.0006 -# 10^6 value snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 2082 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 2400 -# 1392 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u1 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u1 F 0.0006 -# 10^6 value snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u1 F 1749 -# lowered from 2000 to 1900 6/24 -# raised back to 2000 7/5 -# lowered to 1850 due to high darc count rate March 2016 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u1 F 1850 # 1357 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u2 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u2 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u2 F 1950 -# 1353 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u3 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u3 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u3 F 1950 -# 1339 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u4 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u4 F 0.0006 -# lowered from 2050 to 1750 6/24 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u4 F 1750 -# 1352 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u5 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u5 F 0.0006 - -#MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM was 1900 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u5 F 1500 -# 1359 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u6 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u6 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u6 F 1900 -# 1360 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u7 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u7 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u7 F 1900 -#1338 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u8 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u8 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u8 F 2100 -#1336XX - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u9 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u9 F 0.0006 -# lowered from 2200 to 2000 6/24 -# raised to 2150 7/5 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u9 F 2150 -# 1358 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u10 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u10 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u10 F 1950 + snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u0 F -100.0 + snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u0 F 0.0008 + snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 1800 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 1800 # 1356 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u11 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u11 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u11 F 1950 -# 1355XX - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u12 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u12 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u12 F 1900 -# 411XXX - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u13 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u13 F 0.0006 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u13 F 2400 -# 766XXX - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u14 F -100.0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u14 F 0.0006 -# raised to from 2250 to 2350 7/5 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u14 F 2400 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltageRiseRate.u1 F -100.0 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputCurrent.u1 F 0.0008 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u1 F 1910 read -n1 -p "No error message? Turn on HV ? (y/n) " echo [[ $REPLY = [yY] ]] && - echo " " - echo "writing Erlangen MCP scan HV values " - echo " " snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u0 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u1 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u2 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u3 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u4 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u5 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u6 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u7 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u8 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u9 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u10 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u11 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u12 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u13 i 1 && - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u14 i 1 && - { echo "Nothing done"; exit 1; } +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u1 i 1 && + + { exit 1; } ;; off) snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u0 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u1 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u2 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u3 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u4 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u5 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u6 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u7 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u8 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u9 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u10 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u11 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u12 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u13 i 0 - snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u14 i 0 +# snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputSwitch.u1 i 0 + ;; *) echo "init Turn on main switch" diff --git a/users/gsi_dirc/lv_dirich/dirich_lv_on.sh b/users/gsi_dirc/lv_dirich/dirich_lv_on.sh index 300c203..e7ebf3a 100755 --- a/users/gsi_dirc/lv_dirich/dirich_lv_on.sh +++ b/users/gsi_dirc/lv_dirich/dirich_lv_on.sh @@ -5,13 +5,13 @@ resources = pyvisa.ResourceManager('@py') hmp4040 = resources.open_resource('TCPIP::192.168.0.71::5025::SOCKET') # hmp4040.write('INST OUT1') -hmp4040.write('VOLT 1.5') +hmp4040.write('VOLT 2.0') hmp4040.write('CURR 5.0') hmp4040.write('OUTP:SEL ON') time.sleep(0.2) # hmp4040.write('INST OUT2') -hmp4040.write('VOLT 1.6') +hmp4040.write('VOLT 2.1') hmp4040.write('CURR 3.0') hmp4040.write('OUTP:SEL ON') time.sleep(0.2) diff --git a/users/gsi_dirc/readme2021.txt b/users/gsi_dirc/readme2021.txt index 2b844ff..dfdc992 100644 --- a/users/gsi_dirc/readme2021.txt +++ b/users/gsi_dirc/readme2021.txt @@ -1,3 +1,11 @@ + +************************************************************** +system update with + +sudo zypper refresh +sudo zypper dup -yl +************************************************************** + address masks 0xfe48 peripheral diff --git a/users/gsi_dirc/readme2022.txt b/users/gsi_dirc/readme2022.txt new file mode 100644 index 0000000..7906d32 --- /dev/null +++ b/users/gsi_dirc/readme2022.txt @@ -0,0 +1,507 @@ + +************************************************************** +system update with + +sudo zypper refresh +sudo zypper dup -yl + + +software to recompile +root (not always...) +mainz unpacker ( seems to go automatic) +trb? make + +For python scripts +VISA needed to be installed new as root: + +pip install -U pyvisa +and same (only?) as hadaq... + + +Immer, wenn es einen neuen perl-interpreter gibt (~2 mal im Jahr), dann muss +die libtrbnet_perl neu übersetzt werden. +Das geht so: +$ cd ~/trbsoft/trbnettools/libtrbnet_perl +$ perl Makefile.PL $ make +$ sudo make install + + +~/trbsoft/daqtools/thresholds/trb_dirich_threshold +HADESthreshscan_v1 + +in makefile -std=c++17 + +recompile + + + + +************************************************************** + +address masks + + +0xfe48 peripheral +0xfe4a GPIO +0xfe4c PADIWA +0xfe51 DIRICH + +******************************************************** +scratch DiRICH +in gsi_dirc + +dirich mask is 0xfe51 + +addresses_dirich.db contains + +0x2014 0905 1 the fpga number seperated by blank from dirich number + +serial_dirich.db contains + +09051 address the fpga number direct after the dirich number + + +plugs for trigger/clock +trigger outside +clock inside + +dirich_set_standard_thresholds.pl 0x2014 0x6000 + +set absolute threshold to all channels + +dirich_voltages.sh + +read out voltages and currents + + + +in thresholds/trb_dirich_threshold + +search thresholds of all DiRICHes and set it to 20mV + +./HADESthreshscan_v1 -b 0 -t 0 20 + +read baseline and put it to 20mV +./HADESthreshscan_v1 -f 20190225_153504_std_save.thr -l 0 -t 0 20 + +the program assumes a range of 2500 mV for the discriminator. It allows no +negative values as offset to the baseline. But a overflow becomes a negativ +value. An offset of 2500 is the baseline + +Therefore, for a negative threshold use + +2500-10xthreshold + +10 seems to be the amplfication of the amplifying transistor + +. + + + + +~/trbsoft/daqtools/tools/determine_noiseband_dirich.pl 0x2015 + + +searching old routine. Works only for channel 0-15 + + ./thresholds_automatic.pl --mode=dirich2 --endpoint=0x2014 --chain=0 --offset=0x10 --channel_by_channel --polarity=0 + +******************************************************** + + + + + + + + +# new readme file for 2016 beam test at CERN +# based on copy of readme2015.txt + +# let's try to clean up this file and remove obsolete entries + +system name: dircdaq003 + +on dircdaq003 +vncserver :1 -geometry 1440x960 +or +x0vncserver -display :0 -Geometry 1440x960 + +on dircdaq003 ** remember the "-Shared" - otherwise you kill every other viewer! ** +vncviewer-tigervnc -Shared :1 + +on other machines in the local network +vncviewer -Shared dircdaq003:1 + +password same as hadaq account password + +# the main tools are represented by icons on the desktop + +clicky_buntie -> starts a console with the DAQ tools + (or run ~/trbsoft/daqtools/users/gsi_dirc/gui/call_programs2.pl) + +startup environment -> starts a urxvt terminal, the main console, with all proper tabs + in all proper subdirectories and starts the web server for CTS control, etc. + (or run ~/bin/setup.sh) + +# in the main console + +tab DAQ + readout: + #?? start TRB with net switch + ./startup.sh + +tab web: + (command + ./cts_gui --noopenxterm + is already executed by tab startup) + this starts the web server, access it in the browser with + + localhost:1234 + + kill webserver wit ^c ^c or with + pkill dhttpi + + open link CTS control in a browser new tab + open link padiwa in a browser new tab + open link thresholds in a browser new tab + open link tdc in a browser new tab + in the tdc browser tab + select input status/enable/differences + enable the chain you are watching + +tab DAQ editor: + emacs window with the startup.sh script opened + +tab thresholds: + +turn on the detector(s), no pulser or signals, only noise is needed. + +if the detector is connetcted to chain 1 run + + +Powering PADIWA +scripts in /home/hadaq/lv (edit it when setup changes) + +./padiwa_on.sh + +./padiw_of.sh + +monitoring by web browser: +http://192.168.0.71 + + + + +Padiwa invert +~/trbsoft/daqtools/padiwa.pl [TDC addr] [chain 0 or 1] invert + +~/trbsoft/daqtools/padiwa.pl 310 1 invert 0xffff (after every power cycle) + +./thresholds_automatic.pl --endpoint=0x310 --chain=1 --offset=0x0c8 --polarity=0 + +should be 1 mV (0x0c8 or 200) + + +in the browser threshold tab you can change individual thresholds when you have selected the +right board (e.g. 310) + + +Michael Traxlers new routine (fast, simulataneous but less stable) + +./run_thresh_on_system.pl -endpoints=0x2000..0x202b --chains=0..2 --offset=00 --polarity=0 + + +./write_thresholds.pl padiwa_threshold_results_blockwise_2016_10_22c.log --offset=500 + + +The usual threshold finder (take ~20min): + +Set all thresholds to very high + +./write_thresholds.pl padiwa_threshold_results_blockwise_2016_10_22c.log --offset=5000 + +in "hv" tab: +./hv_cern2016_50V.sh on + +back to "thresholds" +./thresholds_blockwise.sh + +Whichever style you choose, remember to delete the padiwa_threshold_results.log before the scan +and to rename it after the scan + +The load it with the write_thresholds.pl command and change the startup.pl if you are happy +with the new threshold. + +Also, remember to set the HVs to the correct value when you're done. + + +tab hv: + +./hv_MCPTOF2.sh -> hv for ToFs + +### can we delete the following lines, old stuff? + +in console dab tab + +( + cd ~/trbsoft/analysis/trb3 + . ./trb3login --> 26.6.2014 is already sourced in .zshrc +) + +cd ~/trbsoft/daqtools/users/gsi_dirc/ + +~/trbsoft/analysis/trb3/dabc/bin/dabc_run EventBuilder.xml + +in console tab go4 + +cd ~/trbsoft/analysis/trb3 + . ./trb3login +cd ~/trbsoft/daqtools/users/gsi_dirc + +Login the first time: +. ~/trbsoft/analysis/trb3/go4/go4login + +go4 online.hotstart -> to see ToF1 and Tof2 +go4 mcponline.hotstart -> to see the Prototype and ToFs + +~/trbsoft/analysis/trb3/go4/bin/go4 padiwa_amps.hotstart + +select +event source = MBS stream server +name = localhost +rightclick left pane histograms and select +monitor items + +------------------------------------------- +### end delete? + + +tab hv: + +in hv console tab run /bin/bash (otherwise script does not work) + +cd ./hv + +./hv prints following help text + +./hv init turns on main switch +./hv on turns on HV (values defined in hv.sh) +./hv off turns off HV +./hv kill turns of rapidly HV, turns off main switch. +--------------------------------------------- + + +PADIWA + +./write_thresholds.pl gsi_zero_connect.log --offset=500 + +tail -n16 padiwa_threshold_results.log > tmp.thresholds; ./write_thresholds.pl tmp.thresholds + +./write_thresholds.pl tmp.thresholds + + +STARTUP + +trbcmd reload 0xffff; sleep 5; trbcmd reset; ./startup.sh; i | wc + +DABC + +~/trbsoft/analysis/trb3/dabc/bin/dabc_run EventBuilder.xml + +GO4 + +rm -f *.root; go4analysis -user /data.local2/dabc14121175523.hld + go4 Go4AutoSave.root + + +TRB programming + +trbflash program 0x0810 ~/trbsoft/bitfiles/trb3_periph_padiwa_dbl_alt_32ch_20140625.bit + +hv supply +(was 140.181.75.99 on GSI network - is 192.268.0.22 on local network) +(to change network address push "FOLD" button for 3 seconds, adjust IP address) +MAC Address is 00:19:f9:10:03:8a +Access admin power42 (resets when LAN settings are changed) + + +-------------------------------------- +adding or removing TRB to/from setup + +edit files in ~/trbsoft/daqtools/users/gsi_dirc + + * addresses_trb3.db + * register_configgbe.db + * register_configgbe_ip.db + * register_config_tdc.db + * check_ping.pl + * trbreset_loop.pl + * EventBuilderNew.xml + +check if address in ~/trbsoft/daqtools/base/serials_trb3.db + +for data to file edit start_readout and add sources +(50000+i corresponds to c350+i in register_configgbe_ip.db) + + +flash by + +trbflash info 0x8001 # get information +compiletime.pl 0x8001 # get compile tme + +central FPGA: trb3_central_gbe_20150218.bit + +trbflash program 0x8001 filename # program into flash memory +trbcmd relaod 0x8001 # reloads program from flash + +store files in trbsoft/bitfiles + +peripheral FPGA + +in principle alos by eg +trbflash program 0x0013 filename + +but faster +trbflash program 0xfe4c filename + +for 0xfeXX see trb3 manual network/broadcast addresses (p14) + +peripheral FPGA: trbsoft/bitfiles/trb3_periph_padiwa_20150203.bit + + +iftop -PBN -i enp2s0f0 + + +--------------------------------------- +threshold search: + +only one channel per detector (20 min, recommended): + +HV-> 50 V +rm padiwa_threshold_results.log +.thresholds_blockwise.sh + +all channels together (<1min, yields large thresholds compared to blockwise +search (1mV?)): + +HV-> 50 V +rm padiwa_threshold_results.log +./run_thresh_on_system.pl -endpoints=0x2000..0x200f --chains=0..2 --offset=10 --polarity=0 + + +only one channel per prototype (4 hours, recommended if you need an excuse for +extended pizza event) +HV-> 50 V +rm padiwa_threshold_results.log +./thresh_channel_by_channel.sh + + +look to thresholds + +root show_thresholds.C'("/home/hadaq/trbsoft/daqtools/thresholds/padiwa_threshold_results_20150512_high_CS.log", "/home/hadaq/trbsoft/daqtools/thresholds/padiwa_threshold_results_20150512_low_CS.log",400)' + + + + +--------------------------------------- + +example for time resolution + + root ce15133191236K.root +K->Draw("fLeadingEdge[200]-fLeadingEdge[230]>>bb(2001,-100,100)","(fLeadingEdge[200]>-9000)&&(fLeadingEdge[230]>-9000)","") + +--------------------------------------- + + +look in history for flash actions + +fc -il 1 | grep "trbflash program" + + + + +------------------- +adding a system to the CERN DAQ local network + +edit /etc/dhcpd.conf (add system name and MAC address) +edit /etc/hosts + +rcdnsmasq restart; rcdhcpd restart + +use + journalctl -b -f -u dhcpd +to see if connection is successful + +---- +DAQ multi event queue: edit /home/hadaq/trbsoft/daqtools/users/gsi_dirc/register_configgbe.db + +Change entry in column MultiQueue (C6) to 1 (0 to disable) + +To use dabc instead of evtbuild: +./start_readout.pl --filename cern2016 --dabc + +---- +resetting PADIWA temperature readouts (important because temperature correction is enabled) +~/trbsoft/daqtools/padiwa.pl [fpga] [chain] resettemp +~/trbsoft/daqtools/padiwa.pl 0x2028 2 resettemp + +--- +copying files to dircdaq004 (now done via crontab) +rsync -av ce*hld hadaq@dircdaqp004:/d/oct2016 --progress +rsync -av ce*root hadaq@dircdaqp004:/d/oct2016 --progress +rsync -av pq*hld hadaq@dircdaqp004:/d/oct2016 --progress +rsync -av pq*root hadaq@dircdaqp004:/d/oct2016 --progress + +--- 2016: handled by trbreset_loop.pl +TRB error/"Ping" tab in slow control "red" +check progress of evtbuild, if stuck end run +trbcmd reset +trbcmd reload 0xffff +trbcmd reset +check_ping.pl +if all TRBs are present (alive) then +startup.sh +and start new run +if one or more TRBs still missing repeat reset/reload/reset cycle + +--- +trigger line should be + AddOn Multiplexer 0 +for beam data or + AddOn Multiplexer 1 +for laser data + +--- +Watch for "Ignore all data" box being checked - if it is checked no data + will be written to disk (you will see that the spill rates are "red" + instead of "green" + + +--- +If TRBs do not react to trbcmd reset (messages like RPC Timed Out) power-cycle the TRBs via + trb_power_cycle + +ssh -R 53212:dircdaqp003:22 -R 53213:dircdaqp003:5901 -R 53214:dircdaqp003:5902 -R 53215:dircdaqp003:5903 -R +53216:dircdaqp003:5904 -R 51234:dircdaqp003:1234 hadaq@cerberus.x-matter.uni-frankfurt.de -N & #All the +tunnels + + +--- + + trbcmd reset; ~/trbsoft/daqtools/merge_serial_address.pl ~/trbsoft/daqtools/base/serials_trb3.db ~/trbsoft/daqtools/users/gsi_dirc/addresses_trb3.db; trbcmd reload 0x8007 + + +----- +data analysis March 2016 + +hldtools -d -j10 file.hld +tcalibration file.hld.root +cdisplay fileC.root + + +Printers nearby: +252-1203-HP5550 //upstairs in 252, color +252-1203-CANON //upstairs in 252, b&w + +#connect to IP windows PC +rdesktop -u localadmin_gerhardt -g 1024x768 -k en/us 192.168.0.20 diff --git a/users/gsi_dirc/readout.pl b/users/gsi_dirc/readout.pl index 0631b00..fa75602 100755 --- a/users/gsi_dirc/readout.pl +++ b/users/gsi_dirc/readout.pl @@ -4,10 +4,10 @@ use strict; use Getopt::Long; my $help = ""; -my $dataPath = "/d/apr2019/"; +my $dataPath = "/d/jan2022/"; my $label = "cern"; my $time = -1; -my $name = "trb_"; +my $name = "pulser_"; my $old; my $c; @@ -56,7 +56,7 @@ if(!defined $old) { else { #$c=qq|xterm -geometry 122x15-0+0 -e bash -c 'daq_evtbuild -S $label -m 9 -x $name --filesize 1536 -d file -o $dataPath'|; - $c=qq|xterm -geometry 122x15-0+0 -e bash -c 'daq_evtbuild -S $label -m 7 -x $name --filesize 1536 -d file -o $dataPath'|; + $c=qq|xterm -geometry 122x15-0+0 -e bash -c 'daq_evtbuild -S $label -m 2 -x $name --filesize 1536 -d file -o $dataPath'|; #2016 $c=qq|xterm -geometry 122x15-0+0 -e bash -c 'daq_evtbuild -S $label -m 10 -x $name --filesize 1536 -d file -o $dataPath'|; #$c=qq|xterm -geometry 122x16-0+0 -e bash -c 'daq_evtbuild -S $label -m 23 -x $name -d file -o $dataPath'|; print "test"; @@ -74,7 +74,7 @@ else { #$c=qq"xterm -geometry 82x45-0+210 -e bash -c 'daq_netmem -S $label -m 10 -i UDP:127.0.0.1:49999 -i UDP:127.0.0.1:50000 -i UDP:127.0.0.1:50001 -i UDP:127.0.0.1:50002 -i UDP:127.0.0.1:50003 -i UDP:127.0.0.1:50004 -i UDP:127.0.0.1:50005 -i UDP:127.0.0.1:50006 -i UDP:127.0.0.1:50007 -i UDP:127.0.0.1:50008'"; - $c=qq"xterm -geometry 82x44-0+234 -e bash -c 'daq_netmem -S $label -m 7 -i UDP:127.0.0.1:49999 -i UDP:127.0.0.1:50000 -i UDP:127.0.0.1:50001 -i UDP:127.0.0.1:50002 -i UDP:127.0.0.1:50003 -i UDP:127.0.0.1:50004 -i UDP:127.0.0.1:50005; sleep 2 '"; + $c=qq"xterm -geometry 82x44-0+234 -e bash -c 'daq_netmem -S $label -m 2 -i UDP:127.0.0.1:49999 -i UDP:127.0.0.1:50004; sleep 2 '"; #$c=qq"xterm -geometry 82x44-0+234 -e bash -c 'daq_netmem -S $label -m 23 -i UDP:127.0.0.1:50000 -i UDP:127.0.0.1:50001 -i UDP:127.0.0.1:50002 -i UDP:127.0.0.1:50003 -i UDP:127.0.0.1:50004 -i UDP:127.0.0.1:50005 -i UDP:127.0.0.1:50006 -i UDP:127.0.0.1:50007 -i UDP:127.0.0.1:50008 -i UDP:127.0.0.1:50009 -i UDP:127.0.0.1:50010 -i UDP:127.0.0.1:50011 -i UDP:127.0.0.1:50012 -i UDP:127.0.0.1:50013 -i UDP:127.0.0.1:50014 -i UDP:127.0.0.1:50015 -i UDP:127.0.0.1:50016 -i UDP:127.0.0.1:50017 -i UDP:127.0.0.1:50018 -i UDP:127.0.0.1:50019 -i UDP:127.0.0.1:50020 -i UDP:127.0.0.1:50021 -i UDP:127.0.0.1:50022; sleep 2'"; diff --git a/users/gsi_dirc/register_config_tdc.db b/users/gsi_dirc/register_config_tdc.db index a46d38a..36b6359 100644 --- a/users/gsi_dirc/register_config_tdc.db +++ b/users/gsi_dirc/register_config_tdc.db @@ -37,29 +37,29 @@ # 0x201f 0 0x00000000 0x00000000 # AUX - 0x2000 0 0x00000000 0x00000000 - 0x2001 0 0x00000000 0x00000000 - 0x2002 0 0x00000000 0x00000000 - 0x2003 0 0x00000000 0x00000000 - 0x2004 0 0x00000000 0x00000000 - 0x2005 0 0x00000000 0x00000000 - 0x2006 0 0x00000000 0x00000000 - 0x2007 0 0x00000000 0x00000000 - 0x2008 0 0x00000000 0x00000000 - 0x2009 0 0x00000000 0x00000000 - 0x200a 0 0x00000000 0x00000000 - 0x200b 0 0x00000000 0x00000000 - 0x200c 0 0x00000000 0x00000000 - 0x200d 0 0x00000000 0x00000000 - 0x200e 0 0x00000000 0x00000000 - 0x200f 0 0x00000000 0x00000000 +# 0x2000 0 0x00000000 0x00000000 +# 0x2001 0 0x00000000 0x00000000 +# 0x2002 0 0x00000000 0x00000000 +# 0x2003 0 0x00000000 0x00000000 +# 0x2004 0 0x00000000 0x00000000 +# 0x2005 0 0x00000000 0x00000000 +# 0x2006 0 0x00000000 0x00000000 +# 0x2007 0 0x00000000 0x00000000 +# 0x2008 0 0x00000000 0x00000000 +# 0x2009 0 0x00000000 0x00000000 +# 0x200a 0 0x00000000 0x00000000 +# 0x200b 0 0x00000000 0x00000000 +# 0x200c 0 0x00000000 0x00000000 +# 0x200d 0 0x00000000 0x00000000 +# 0x200e 0 0x00000000 0x00000000 +# 0x200f 0 0x00000000 0x00000000 - 0x2010 0 0xffffffff 0x00000000 + 0x2010 0 0x0000ffff 0x00000000 - 0x2014 0 0xffffffff 0x00000000 - 0x2015 0 0xffffffff 0x00000000 - 0x2016 0 0xffffffff 0x00000000 - 0x2017 0 0xffffffff 0x00000000 +# 0x2014 0 0xffffffff 0x00000000 +# 0x2015 0 0xffffffff 0x00000000 +# 0x2016 0 0xffffffff 0x00000000 +# 0x2017 0 0xffffffff 0x00000000 diff --git a/users/gsi_dirc/register_configgbe.db b/users/gsi_dirc/register_configgbe.db index 3e71469..c4a80d2 100755 --- a/users/gsi_dirc/register_configgbe.db +++ b/users/gsi_dirc/register_configgbe.db @@ -12,12 +12,12 @@ # Hub # Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # C9 # ################################################################################################################################################### 0xc000 0 0x7999 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x1 - 0x8000 0 0x8000 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 - 0x8001 0 0x8001 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 - 0x8002 0 0x8002 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 - 0x8003 0 0x8003 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 +# 0x8000 0 0x8000 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 +# 0x8001 0 0x8001 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 +# 0x8002 0 0x8002 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 +# 0x8003 0 0x8003 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 0x8004 0 0x8004 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 - 0x8005 0 0x8005 0x00020001 0x00030064 0x1DE8 0x578 0 1 1 1 0x0 +# 0x8005 0 0x8005 0x00020001 0x00030064 0x1DE8 0x578 0 1 1 1 0x0 # 0x8006 0 0x8006 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 # 0x8007 0 0x8007 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 # 0x8008 0 0x8008 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0 diff --git a/users/gsi_dirc/register_configgbe_ip.db b/users/gsi_dirc/register_configgbe_ip.db index 5a08c34..3cd4074 100755 --- a/users/gsi_dirc/register_configgbe_ip.db +++ b/users/gsi_dirc/register_configgbe_ip.db @@ -31,12 +31,12 @@ # 0xc000 0 0x7a0b83ca 0x0cc4 0xc0a80a03 0xc34f 0xdead7fff 0x001b 0xc0a80000 0xc350 0x0578 0xc000 0 0x1e04f334 0x000e 0xc0a80003 0xc34f 0xdead7fff 0x001b 0xc0a80000 0xc350 0x0578 - 0x8000 0 0x1e04f334 0x000e 0xc0a80003 0xc350 0xdead8000 0x001b 0xc0a80001 0xc351 0x0578 - 0x8001 0 0x1e04f334 0x000e 0xc0a80003 0xc351 0xdead8001 0x001b 0xc0a80002 0xc352 0x0578 - 0x8002 0 0x1e04f334 0x000e 0xc0a80003 0xc352 0xdead8002 0x001b 0xc0a80003 0xc353 0x0578 - 0x8003 0 0x1e04f334 0x000e 0xc0a80003 0xc353 0xdead8003 0x001b 0xc0a80004 0xc354 0x0578 +# 0x8000 0 0x1e04f334 0x000e 0xc0a80003 0xc350 0xdead8000 0x001b 0xc0a80001 0xc351 0x0578 +# 0x8001 0 0x1e04f334 0x000e 0xc0a80003 0xc351 0xdead8001 0x001b 0xc0a80002 0xc352 0x0578 +# 0x8002 0 0x1e04f334 0x000e 0xc0a80003 0xc352 0xdead8002 0x001b 0xc0a80003 0xc353 0x0578 +# 0x8003 0 0x1e04f334 0x000e 0xc0a80003 0xc353 0xdead8003 0x001b 0xc0a80004 0xc354 0x0578 0x8004 0 0x1e04f334 0x000e 0xc0a80003 0xc354 0xdead8004 0x001b 0xc0a80005 0xc355 0x0578 - 0x8005 0 0x1e04f334 0x000e 0xc0a80003 0xc355 0xdead8005 0x001b 0xc0a80006 0xc356 0x0578 +# 0x8005 0 0x1e04f334 0x000e 0xc0a80003 0xc355 0xdead8005 0x001b 0xc0a80006 0xc356 0x0578 # 0x8006 0 0x1e04f330 0x000e 0xc0a80003 0xc356 0xdead8006 0x001b 0xc0a80007 0xc357 0x0578 # 0x8007 0 0x1e04f330 0x000e 0xc0a80003 0xc357 0xdead8007 0x001b 0xc0a80008 0xc358 0x0578 # 0x8008 0 0x1e04f330 0x000e 0xc0a80003 0xc358 0xdead8008 0x001b 0xc0a80009 0xc359 0x0578 diff --git a/users/gsi_dirc/startup.sh b/users/gsi_dirc/startup.sh index 6abab03..1bcae33 100755 --- a/users/gsi_dirc/startup.sh +++ b/users/gsi_dirc/startup.sh @@ -28,11 +28,10 @@ export DAQOPSERVER=localhost:56 echo "set addresses" ~/trbsoft/daqtools/merge_serial_address.pl ~/trbsoft/daqtools/base/serials_trb3.db ~/trbsoft/daqtools/users/gsi_dirc/addresses_trb3.db > /dev/null -~/trbsoft/daqtools/merge_serial_address.pl ~/trbsoft/daqtools/base/serials_dirich.db ~/trbsoft/daqtools/users/gsi_dirc/addresses_dirich.db -~/trbsoft/daqtools/merge_serial_address.pl ~/trbsoft/daqtools/base/serials_dirich_concentrator.db ~/trbsoft/daqtools/users/gsi_dirc/addresses_dirich_concentrator.db - +~/trbsoft/daqtools/merge_serial_address.pl ~/trbsoft/daqtools/base/serials_dirich.db ~/trbsoft/daqtools/users/gsi_dirc/addresses_dirich.db +~/trbsoft/daqtools/merge_serial_address.pl ~/trbsoft/daqtools/base/serials_dirich_concentrator.db ~/trbsoft/daqtools/users/gsi_dirc/addresses_dirich_concentrator.db ################################################## @@ -77,6 +76,12 @@ trbcmd w 0xfe51 0xc802 0xffffffff ## channel 01-32 enable trbcmd w 0xfe51 0xc803 0x0000ffff ## channel 33-64 enable trbcmd w 0xfe51 0xc804 0x0000007c ## data transfer limit + +trbcmd w 0xfe51 0xc805 0xffffffff ## invert TDC +#trbcmd w 0xfe51 0xc805 0x00000000 ## no invert + +trbcmd w 0x2014 0xc802 0x7fff01d5 ## disable 2016 + # TOFs time windows #trbcmd w 0x2014 0xc801 0x8000008c #trbcmd w 0x2015 0xc801 0x8000008c @@ -106,11 +111,11 @@ trbcmd w 0xfe4a 0xc800 0x00002000 ## Triggerless mode, reset next trigger all co #trbcmd w 0xfe4a 0xc800 0x00000000 ## Triggerless mode, reset next trigger all coarse counters #trbcmd w 0xfe4a 0xc801 0x801e0046 ## triggerwindow -350...+150ns ;5ns granularity trbcmd w 0xfe4a 0xc801 0x80c600c6 ## triggerwindow +/-990ns ;5ns granularity -trbcmd w 0xfe4a 0xc802 0x00000000 ## channel 33-64 enable -#trbcmd w 0x202c 0xc802 0xffffffff ## channel 01-32 enable -#trbcmd w 0x202d 0xc802 0xffffffff ## channel 01-32 enable -trbcmd w 0xfe4a 0xc803 0x00000000 ## channel 33-64 enable +trbcmd w 0xfe4a 0xc802 0xffffffff ## channel 33-64 enable +trbcmd w 0xfe4a 0xc803 0xffffffff ## channel 33-64 enable trbcmd w 0xfe4a 0xc804 0x0000007c ## data transfer limit +#trbcmd w 0xfe4a 0xc805 0xffffffff ## invert gpio + @@ -157,7 +162,7 @@ trbcmd i 0xffff | wc -l #20170822 prepare_padiwas_invert_leds.pl --endpoints=0x2000..0x2003 --chains=0..2 --invert=0xffff -prepare_padiwas_invert_leds.pl --endpoints=0x2000..0x200f --chains=0..2 --invert=0xffff +#prepare_padiwas_invert_leds.pl --endpoints=0x2000..0x200f --chains=0..2 --invert=0xffff #Invert erlangen #prepare_padiwas_invert_leds.pl --endpoints=0x2014..0x201d --chains=0..1 --invert=0xffff @@ -208,10 +213,10 @@ echo "write barrel dirc thresholds" cd ~/trbsoft/daqtools/thresholds/ echo "padiwa thresholds..." -./write_thresholds.pl ~/trbsoft/daqtools/users/gsi_dirc/thresh/padiwa_threshold_results_blockwise_20200715_163000.thr -o 200 > /dev/null +#./write_thresholds.pl ~/trbsoft/daqtools/users/gsi_dirc/thresh/padiwa_threshold_results_blockwise_20200715_163000.thr -o 200 > /dev/null echo "done" -cd ~/trbsoft/daqtools/thresholds/trb_dirich_threshold +cd ~/trbsoft/daqtools/users/gsi_dirc/thresholds/dirich # july ./load_thresh_orig.sh # 1mV # switch 8/27 ./load_thresh_aug2014.sh # 4mV for first few days @@ -299,10 +304,15 @@ echo "padiwa_threshold_results loading" #./write_thresholds.pl mcp11.log -o 600 +# #./HADESthreshscan_v1 -f 20191030_111147_std_save.thr -l 0 -i -t 0 60 -./HADESthreshscan_v1 --no-autosave -f ~/trbsoft/daqtools/users/gsi_dirc/thresholds/dirich/20201120_165730_std_save.thr -l 0 -i -t 0 40 +#./HADESthreshscan_v1 --no-autosave -f ~/trbsoft/daqtools/users/gsi_dirc/thresholds/dirich/20220914_113041_std_save.thr -l 0 -t 60 + +# Use latest threshold +~/trbsoft/daqtools/thresholds/trb_dirich_threshold/HADESthreshscan_v1 --no-autosave -l 0 -t 60 +# # 10/26 quick fix to set special threshold for 0x2006/0 = +1mV #grep '0x2006' padiwa_threshold_results_latest.log | grep 'chain: 00' >! padiwa_thresholds_current_0x2006-0.txt diff --git a/users/gsi_dirc/thresholds/padiwa/padiwa_status_2022_Oct.txt b/users/gsi_dirc/thresholds/padiwa/padiwa_status_2022_Oct.txt new file mode 100644 index 0000000..422500a --- /dev/null +++ b/users/gsi_dirc/thresholds/padiwa/padiwa_status_2022_Oct.txt @@ -0,0 +1,127 @@ +#PADIWA # thr. search results Comments filename +# +# premium (prem): amplification 23MT 47/200 +XXX67 good ->MT 1/? +XXX40 good ->MT 47/200 +48486 good ->MT lower amplification of about 20 47/200 +48496 bad ->MT lower amplification of about 20 47/200 +48462 good ->MT lower amplification of about 20 47/200 +48455 good ->MT lower amplification of about 20 47/200 +48526 bad Munich digital part broken program? +XXXA6 good +# + + +In Munich: 10 (above marked plus 125 144 137, which are part of above list) +d.h. Da fehlen 3 mehr... +In Erlangen: 5 (above marked) + + + +# +# measured a total of: 88 PADIWAs +# premium: 49 +# good: 28 +# bad: 11 +============= + 88 + +19-feb-2018: + +-10 Munich (3 not marked above) +-5 Erlangen +-7 MT + 66 + +# premium 44 +# good 17 +# bad 8 +============ + 69-3 = 66 + +48 in detectors 18 left? + + +0057 prem --> bad + diff --git a/users/gsi_dirc/trbreset_loop.pl b/users/gsi_dirc/trbreset_loop.pl index d8cf876..51bbfe9 100755 --- a/users/gsi_dirc/trbreset_loop.pl +++ b/users/gsi_dirc/trbreset_loop.pl @@ -4,11 +4,11 @@ use strict; use warnings; ### Change THIS! -my $required_endpoints = 35; +my $required_endpoints = 15; # barrel my $required_endpoints = 25; -my $max_counter = 10; +my $max_counter = 5; my $counter = 0; my $number = 0;