From: Carsten Schwarz Date: Fri, 21 Jun 2024 12:13:47 +0000 (+0200) Subject: cleaned up X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=1082a01322da4879e02450f866ccf8b8d13325b7;p=daqtools.git cleaned up --- diff --git a/users/gsi_dirc/dirich_voltages.sh b/users/gsi_dirc/dirich_voltages.sh index 6540694..c8fdc26 100755 --- a/users/gsi_dirc/dirich_voltages.sh +++ b/users/gsi_dirc/dirich_voltages.sh @@ -4,8 +4,6 @@ echo "power current " ../frankfurt_test/trb3scadc.pl 0x8005 4 echo "concentrator " ../frankfurt_test/trb3scadc.pl 0x8005 2 -echo "drich 2014" -../frankfurt_test/trb3scadc.pl 0x2014 1 echo "drich 2015" ../frankfurt_test/trb3scadc.pl 0x2015 1 echo "drich 2016" diff --git a/users/gsi_dirc/hv/hv_test.sh b/users/gsi_dirc/hv/hv_test.sh index c3bf74e..4ea7d02 100755 --- a/users/gsi_dirc/hv/hv_test.sh +++ b/users/gsi_dirc/hv/hv_test.sh @@ -11,8 +11,9 @@ case "$1" in # 1357 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.0015 -#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 2080 +# 2221 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 1950 +#snmpset -v 2c -m WIENER-CRATE-MIB -c guru dircmpod outputVoltage.u0 F 2080 ### new 2121 # 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 diff --git a/users/gsi_dirc/readme2023.txt b/users/gsi_dirc/readme2023.txt deleted file mode 100644 index bcdff6a..0000000 --- a/users/gsi_dirc/readme2023.txt +++ /dev/null @@ -1,514 +0,0 @@ - -************************************************************** -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 -no vncserver :1 -geometry 1440x960 -no or -no x0vncserver -display :0 -Geometry 1440x960 - -no x0vncserver -PasswordFile /home/hadaq/.vnc/passwd -geometry 1440x960 - -there is already a vncserver running on :0 (found in the menu -system->x11vnc server) - -then eg. on dircdaq002 -vinagre dircdaq003:0 - -password same as hadaq account password - - -on other machines in the local network -vncviewer -Shared dircdaq003:1 - - -# 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 482f70b..bd601c2 100755 --- a/users/gsi_dirc/readout.pl +++ b/users/gsi_dirc/readout.pl @@ -4,7 +4,7 @@ use strict; use Getopt::Long; my $help = ""; -my $dataPath = "/d/mar2023/"; +my $dataPath = "/d/jul2023/"; my $label = "cern"; my $time = -1; my $name = "pulser_"; diff --git a/users/gsi_dirc/startup.sh b/users/gsi_dirc/startup.sh index b1266e4..e9ef60a 100755 --- a/users/gsi_dirc/startup.sh +++ b/users/gsi_dirc/startup.sh @@ -82,7 +82,7 @@ trbcmd w 0xfe51 0xc804 0x0000007a ## data transfer limit trbcmd w 0xfe51 0xc805 0xffffffff ## invert TDC #trbcmd w 0xfe51 0xc805 0x00000000 ## no invert -trbcmd w 0x2014 0xc802 0x7fff01d5 ## disable 2016 +#trbcmd w 0x2014 0xc802 0x7fff01d5 ## disable 2016 # TOFs time windows #trbcmd w 0x2014 0xc801 0x8000008c @@ -123,7 +123,7 @@ trbcmd w 0xfe4a 0xc804 0x0000007c ## data transfer limit #Dirich-Concentrator: enable reference time from RJ45 -trbcmd loadbit 0x8300 0xd580 0x6 0x6 +#trbcmd loadbit 0x8300 0xd580 0x6 0x6 @@ -312,7 +312,7 @@ echo "padiwa_threshold_results loading" #./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 -l 0 -t 0 40 +~/trbsoft/daqtools/thresholds/trb_dirich_threshold/HADESthreshscan_v1 -l 0 -t 0 40 #