+++ /dev/null
-.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
<Module name="Combiner" class="hadaq::CombinerModule">
<!-- these parameters will force to create inputs/oputputs of module -->
- <NumInputs value="6"/>
+ <NumInputs value="2"/>
<NumOutputs value="2"/>
<InputPort name="Input0" url="hadaq://host:49999" thread="UdpThread1"/>
- <InputPort name="Input1" url="hadaq://host:50000" thread="UdpThread1"/>
- <InputPort name="Input2" url="hadaq://host:50001" thread="UdpThread1"/>
- <InputPort name="Input3" url="hadaq://host:50002" thread="UdpThread1"/>
- <InputPort name="Input4" url="hadaq://host:50003" thread="UdpThread1"/>
- <InputPort name="Input5" url="hadaq://host:50004" thread="UdpThread1"/>
+ <InputPort name="Input1" url="hadaq://host:50004" thread="UdpThread1"/>
+ <InputPort name="Input2" url="hadaq://host:50003" thread="UdpThread1"/>
+ <InputPort name="Input3" url="hadaq://host:50004" thread="UdpThread1"/>
+ <InputPort name="Input4" url="hadaq://host:50000" thread="UdpThread1"/>
+ <InputPort name="Input5" url="hadaq://host:50001" thread="UdpThread1"/>
<InputPort name="Input6" url="hadaq://host:50005" thread="UdpThread1"/>
<InputPort name="Input7" url="hadaq://host:50006" thread="UdpThread1"/>
+++ /dev/null
-<?xml version="1.0"?>
-
-<!--
-This is example file how HADAQ event building should be configured in DABC.
-Event building process implemented in Combiner module of hadaq::CombinerModule class.
-Module can have several inputs, each with separate port number for receiving data
-from TRB boards. For every input one could configure only UDP port number - host name is ignored.
-First output of combiner module used for delivering data to online analysis (if any).
-Second output can be use to store data in hld files.
-To enable HLD file storage one should specify NumOutputs for Combiner module
-and provide hld file name for Output1 port
-
- <NumOutputs value="2"/>
- <OutputPort name="Output1" url="hld://dabc.hld?maxsize=2000"/>
-
-File name fill be extended according to HADAQ naming convention.
-
-By default, HTTP server is enabled. Do disable it, remove <HttpServer> section or
-put <HttpServer name="http" auto="false">. One could change http port number.
-When dabc runs, in any browser address like
-http://your_dabc_host_name:8090 can be opened. At the moment http server provides:
- - ratemeters from EventBuilder
- - log fields
- - commands to start/stop hld files storage from browser
-
-There is well-known problem with using VNC viewer and mbs stream server.
-Both by default are using port 6002. One could change port number for stream server.
-Just set other number in configuration of first output port of combiner module, for instance:
- <OutputPort name="Output0" url="mbs://Stream:6789?iter=hadaq_iter&subid=0x1f"/>
-In this case one should specify that port number when starting go4 analysis like:
- [shell] go4analysis -stream dabc_node:6789 -dabc dabc_node:4444
-When starting analysis from the go4 gui, one should specify stream server with port number too.
-
--->
-
-<dabc version="2">
- <Context host="localhost" name="EventBuilder">
- <Run>
- <lib value="libDabcMbs.so"/>
- <lib value="libDabcHadaq.so"/>
- <lib value="libDabcHttp.so"/>
- <lib value="libDabcRfio.so"/>
- <logfile value="hadaqevtbuild.log"/>
- <loglevel value="-1"/>
- <loglimit value="1000"/>
- <control value="true"/>
- <threads_layout value="balanced"/>
- </Run>
-
- <HttpServer name="http" port="8090"/>
-
- <!-- If uncommented, all internal manager structures will be published in the web server -->
- <!-- Publisher name="publ" manager="true"/ -->
-
- <!-- If uncommented, profiling will be enabled for all threads -->
- <!-- Thread name="*" publ="true" prof="true"/ -->
-
- <MemoryPool name="Pool">
- <BufferSize value="200000"/>
- <NumBuffers value="1000"/>
- </MemoryPool>
-
- <Thread name="UdpThread1" class="dabc::SocketThread" affinity="+0"/>
-
- <Module name="Combiner" class="hadaq::CombinerModule">
- <!-- these parameters will force to create inputs/oputputs of module -->
- <NumInputs value="6"/>
- <NumOutputs value="2"/>
-
- <InputPort name="Input0" url="hadaq://host:49999" thread="UdpThread1"/>
- <InputPort name="Input1" url="hadaq://host:50000" thread="UdpThread1"/>
- <InputPort name="Input2" url="hadaq://host:50001" thread="UdpThread1"/>
- <InputPort name="Input3" url="hadaq://host:50002" thread="UdpThread1"/>
- <InputPort name="Input4" url="hadaq://host:50003" thread="UdpThread1"/>
- <InputPort name="Input5" url="hadaq://host:50004" thread="UdpThread1"/>
- <InputPort name="Input6" url="hadaq://host:50005" thread="UdpThread1"/>
-
- <InputPort name="Input7" url="hadaq://host:50006" thread="UdpThread1"/>
- <InputPort name="Input8" url="hadaq://host:50007" thread="UdpThread1"/>
- <InputPort name="Input9" url="hadaq://host:50008" thread="UdpThread1"/>
- <InputPort name="Input10" url="hadaq://host:50009" thread="UdpThread1"/>
- <InputPort name="Input11" url="hadaq://host:50010" thread="UdpThread1"/>
- <InputPort name="Input12" url="hadaq://host:50011" thread="UdpThread1"/>
-
- <InputPort name="Input13" url="hadaq://host:50013" thread="UdpThread2"/>
- <InputPort name="Input14" url="hadaq://host:50014" thread="UdpThread3"/>
- <InputPort name="Input15" url="hadaq://host:50015" thread="UdpThread4"/>
- <InputPort name="Input16" url="hadaq://host:50016" thread="UdpThread1"/>
- <InputPort name="Input17" url="hadaq://host:50017" thread="UdpThread2"/>
- <InputPort name="Input18" url="hadaq://host:50018" thread="UdpThread3"/>
- <InputPort name="Input19" url="hadaq://host:50019" thread="UdpThread4"/>
- <InputPort name="Input20" url="hadaq://host:50020" thread="UdpThread1"/>
- <InputPort name="Input21" url="hadaq://host:50021" thread="UdpThread2"/>
- <InputPort name="Input22" url="hadaq://host:50022" thread="UdpThread3"/>
-
- <InputPort name="Input*" queue="100" urlopt="udpbuf=200000&mtu=64512&flush=0.1&observer=false&maxloop=10"/>
-
- <!-- this is stream server for online monitoring, normally always on -->
- <OutputPort name="Output0" url="mbs://Stream:6789?iter=hadaq_iter&subid=0x1f"/>
-
- <OutputPort name="Output1" url="hld:///d/sep2018//trb_.hld?maxsize=1500"/>
-
-
- <!-- this is example of HLD file storage - local -->
- <!--OutputPort name="Output1" url="hld://dabc.hld?maxsize=2000"/-->
-
- <!-- this is example of HLD file storage - RFIO -->
- <!--OutputPort name="Output1" url="hld:///linev/path/dabc.hld?maxsize=1900&rfio"/-->
-
- <!-- when true, extra debug output produced every second -->
- <ExtraDebug value="false"/>
-
- <!-- how often output will be flushed -->
- <FlushTimeout value="2.0"/>
-
- <!--TriggerNumRange: defines when trigger sequence number wraps. only 16 bit for HADES EBs, 24 bit for trb3! -->
- <TriggerNumRange value="0x1000000"/>
-
- <!--AccountLostEventDiff: if true, missing trigger sequence number are added as lost events to stats. Disabled for multiple event builder mode! -->
- <AccountLostEventDiff value="true"/>
-
- <!-- rate meters configuration -->
- <HadaqData width="4" prec="2" low="0" up="10" debug="1"/>
- <HadaqEvents width="5" prec="1" low="0" up="1000" debug="1"/>
- <HadaqDroppedData width="5" prec="3" low="0" up="1" debug="1"/>
- <HadaqLostEvents width="4" prec="2" low="0" up="100" debug="1"/>
- </Module>
-
- <!-- Terminal output like old event builder -->
- <Module name="Term" class="hadaq::TerminalModule" period="0.3" clear="false"/>
-
- </Context>
-
-</dabc>
# 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
#0x1210
#0x1211
#0x1212
-
+# 915: channel 20 broken
+#
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
# 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;
+++ /dev/null
-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
--- /dev/null
+#!/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 -
+++ /dev/null
-248/4
-.q\
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
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"
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"
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)
+
+**************************************************************
+system update with
+
+sudo zypper refresh
+sudo zypper dup -yl
+**************************************************************
+
address masks
0xfe48 peripheral
--- /dev/null
+
+**************************************************************
+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
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;
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";
#$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'";
# 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
# 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
# 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
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
##################################################
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
#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
+
#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
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
#./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
--- /dev/null
+#PADIWA # thr. search results Comments filename
+#
+# premium (prem): amplification 23<x<31
+#
+48544 prem filenames are always: padiwa_threshold_results_"number of padiwa in list".log
+48509 prem
+48515 prem CUA2022
+48457 prem Heggen
+48466 prem Heggen
+48448 prem Heggen
+48503 Heggen
+48468 good
+48513 prem
+48507 prem CUA2022
+48512 prem partly bad tm.res.
+XXX16 good
+XXX59 good
+48447 good
+48520 prem CUA2022
+48517 prem CUA2022
+48489 prem CUA2022
+48516 prem
+48474 prem CUA2022
+48518 good
+48449 prem CUA2022
+48499 prem CUA2022
+48479 prem CUA2022
+48473 prem CUA2022
+48505 prem
+48484 prem dead, grilled by HV
+48522 prem
+48487 prem CUA2022
+48510 prem
+XXX56 good
+XXXA4 good 390 Ohm 06.2013
+XXX22 prem Erlangen
+XXX57 bad Heggen 200 Ohm miss.
+48529 prem
+48536 good Munich 390 Ohm
+48524 good ch. 4 low threshold
+48475 prem CUA2022
+48523 prem CUA2022
+48530 prem CUA2022
+XXXA3 preq CUA2022
+XXXA5 good Munich
+48546 good
+48465 good 390 Ohm
+XXXA7 prem Heggen
+XXXA1 prem CUA2022
+48450 prem CUA2022
+48492 prem
+XXXA6 good Munich
+48511 Heggen
+XXX13 prem
+48461 bad
+48469 good
+48454 broken
+XXX35 good Munich
+48521 prem CUA2022
+48452 prem Erlangen
+XXXA2 prem Heggen
+48476 bad
+48541 prem CUA2022
+48519 good Munich
+48527 prem CUA2022
+48504 prem Heggen
+48533 prem Erlangen
+48488 prem Erlangen
+XX002 prem Erlangen
+48532 prem Heggen
+48525 prem partly bad tim.res.
+48478 good Munich
+48472 prem bad tim.res.
+48542 good
+48480 good
+48502 good
+48528 good
+XXX15 bad fuse?
+48481 bad #14 broken
+48545 bad
+48493 bad
+48534 bad
+48506 bad channel 3 lower amplification
+48501 good ->MT 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
+
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;