]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
moving some startup files
authorhadaq <jan@lxhadeb07>
Thu, 7 Jan 2021 11:40:28 +0000 (12:40 +0100)
committerhadaq <jan@lxhadeb07>
Thu, 7 Jan 2021 11:40:28 +0000 (12:40 +0100)
25 files changed:
frpc/addresses_frpc.db [new file with mode: 0644]
frpc/serials_trb3.db [new symlink]
main/startup.pl
start/old/ThreshPadiwaVeto.db [moved from start/ThreshPadiwaVeto.db with 100% similarity]
start/old/ThreshPadiwaVeto_100mV.db [moved from start/ThreshPadiwaVeto_100mV.db with 100% similarity]
start/old/ThreshPadiwaVeto_125mV.db [moved from start/ThreshPadiwaVeto_125mV.db with 100% similarity]
start/old/set_thresholds.pl [moved from start/set_thresholds.pl with 100% similarity]
start/old/set_thresholds2.pl [moved from start/set_thresholds2.pl with 100% similarity]
start/old/set_thresholds_aim.txt [moved from start/set_thresholds_aim.txt with 100% similarity]
tof/setThreshold.sh [new file with mode: 0755]
tof/thr_trb3/tof_thr_86c0.db [new file with mode: 0644]
tof/thr_trb3/tof_thr_86c1.db [new file with mode: 0644]
tof/thr_trb3/tof_thr_86c2.db [new file with mode: 0644]
tof/thr_trb3/tof_thr_86c3.db [new file with mode: 0644]
tof/thr_trb3/tof_thr_86c4.db [new file with mode: 0644]
tof/thr_trb3/tof_thr_86c5.db [new file with mode: 0644]
tof/thr_trb3/tof_thr_86c6.db [new file with mode: 0644]
trg/dump_register_triggerbox.sh [new file with mode: 0644]
trg/register_monitoring_trigger.db [moved from ecal/register_monitoring_trigger.db with 100% similarity]
trg/register_monitoring_trigger_forwardhalo.db [moved from ecal/register_monitoring_trigger_forwardhalo.db with 100% similarity]
trg/register_monitoring_trigger_mult3_minusNoise.db [moved from ecal/register_monitoring_trigger_mult3_minusNoise.db with 100% similarity]
trg/register_monitoring_trigger_mult3in1board_or2boards.db [moved from ecal/register_monitoring_trigger_mult3in1board_or2boards.db with 100% similarity]
trg/register_monitoring_trigger_pulsgen_ch15.db [moved from ecal/register_monitoring_trigger_pulsgen_ch15.db with 100% similarity]
trg/register_monitoring_trigger_simpleor.db [moved from ecal/register_monitoring_trigger_simpleor.db with 100% similarity]
trg/startup.script [new file with mode: 0644]

diff --git a/frpc/addresses_frpc.db b/frpc/addresses_frpc.db
new file mode 100644 (file)
index 0000000..538f494
--- /dev/null
@@ -0,0 +1,19 @@
+#Address  #   S/N   #   FPGA  #   Design  #  TRB  #
+###################################################
+
+# frpc1
+0x6800     2370      0
+0x6801     2371      1
+0x6802     2372      2
+0x6803     2373      3
+
+# frpc2
+0x6810     2440      0
+0x6811     2441      1
+0x6812     2442      2
+0x6813     2443      3
+
+
+
+
+
diff --git a/frpc/serials_trb3.db b/frpc/serials_trb3.db
new file mode 120000 (symlink)
index 0000000..e2b6ddd
--- /dev/null
@@ -0,0 +1 @@
+../../daqtools/base/serials_trb3.db
\ No newline at end of file
index 8b9c69776dd7821ae9af2b8fe03eabf527b004ff..d595c7b4180c6eb6848145c118fc97bcd8cd16cf 100755 (executable)
@@ -1127,7 +1127,7 @@ sub makeRegisterConf() {
 
   my %reg_hash;
   my $reg_href = \%reg_hash;
-  my @load_array = ();
+
   my $fh = new FileHandle( "$register", "r" );
   &isItDefined( $fh, $register );
 
@@ -1207,9 +1207,7 @@ sub makeRegisterConf() {
         my $reg = @{ $mb_type->{$type} }[$i];
         my $val = $val[$i];
 
-        #push( @{ $reg_hash{$addr} }, { $reg => $val } );
-        push( @load_array, { "$addr" => { $reg => $val }} );
-
+        push( @{ $reg_hash{$addr} }, { $reg => $val } );
       }
     }
     elsif ($ver_table) {
@@ -1229,19 +1227,13 @@ sub makeRegisterConf() {
 
   $fh = new FileHandle(">$outConf_register") || die "could not open $outConf_register";
 
-  foreach my $cur_element ( @load_array ) {
-    (my $addr) = keys %$cur_element;
-    my $db = $cur_element->{$addr};
-    my ( $reg, $thr ) = each( %{$cur_element->{$addr}} );
-    print $fh "w $addr $reg $thr\n";
-  }
+  foreach my $addr ( sort keys %{$reg_href} ) {
+    foreach my $ref ( @{ $reg_href->{$addr} } ) {
+      my ( $reg, $thr ) = each( %{$ref} );
 
-  #foreach my $addr ( sort keys %{$reg_href} ) {
-  #  foreach my $ref ( @{ $reg_href->{$addr} } ) {
-  #    my ( $reg, $thr ) = each( %{$ref} );
-  #     print $fh "w $addr $reg $thr\n";
-  #  }
-  #}
+      print $fh "w $addr $reg $thr\n";
+    }
+  }
 
   $fh->close;
 
diff --git a/tof/setThreshold.sh b/tof/setThreshold.sh
new file mode 100755 (executable)
index 0000000..07844b4
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+/home/hadaq/trbsoft/daqtools/dac_program.pl /home/hadaq/trbsoft/hadesdaq/tof/thr_trb3/tof_thr_86c0.db
+/home/hadaq/trbsoft/daqtools/dac_program.pl /home/hadaq/trbsoft/hadesdaq/tof/thr_trb3/tof_thr_86c1.db
+/home/hadaq/trbsoft/daqtools/dac_program.pl /home/hadaq/trbsoft/hadesdaq/tof/thr_trb3/tof_thr_86c2.db
+/home/hadaq/trbsoft/daqtools/dac_program.pl /home/hadaq/trbsoft/hadesdaq/tof/thr_trb3/tof_thr_86c3.db
+/home/hadaq/trbsoft/daqtools/dac_program.pl /home/hadaq/trbsoft/hadesdaq/tof/thr_trb3/tof_thr_86c4.db
+/home/hadaq/trbsoft/daqtools/dac_program.pl /home/hadaq/trbsoft/hadesdaq/tof/thr_trb3/tof_thr_86c5.db
+
diff --git a/tof/thr_trb3/tof_thr_86c0.db b/tof/thr_trb3/tof_thr_86c0.db
new file mode 100644 (file)
index 0000000..1785af3
--- /dev/null
@@ -0,0 +1,173 @@
+# The order of DACs is:
+# DAC_16 - channels 120-127
+################################
+# DAC_0
+# 0: global threshold fast
+# 1: global threshold slow
+# 2: stretch fast
+# 3: stretch slow
+# 4: hysteresis fast
+# 5: hysteresis slow
+# 6: not used
+# 7: not used
+################################
+# DAC_1 - channels 0-7
+# .
+# .
+# .
+# DAC_15 - channels 112-119
+#
+# Board   Chain     ChainLen     DAC     Channel       Command       Value
+###############################Channels 120-127#############################
+  5c00    1         1            16      0             3             0x0710
+  5c00    1         1            16      1             3             0x0710
+  5c00    1         1            16      2             3             0x0710
+  5c00    1         1            16      3             3             0x0710
+  5c00    1         1            16      4             3             0x0710
+  5c00    1         1            16      5             3             0x0710
+  5c00    1         1            16      6             3             0x0710
+  5c00    1         1            16      7             3             0x0710
+###############################Global values################################
+  5c00    1         16           0       0             3             0x3100
+  5c00    1         16           0       1             3             0x3100
+  5c00    1         16           0       2             3             0x5000
+  5c00    1         16           0       3             3             0x5000
+  5c00    1         16           0       4             3             0x7000
+  5c00    1         16           0       5             3             0x7000
+  5c00    1         16           0       6             3             0x7000
+  5c00    1         16           0       7             3             0x7000
+###############################Channels 1-7#################################
+  5c00    1         16           1       0             3             0x0710
+  5c00    1         16           1       1             3             0x0710
+  5c00    1         16           1       2             3             0x0710
+  5c00    1         16           1       3             3             0x0710
+  5c00    1         16           1       4             3             0x0710
+  5c00    1         16           1       5             3             0x0710
+  5c00    1         16           1       6             3             0x0710
+  5c00    1         16           1       7             3             0x0710
+###############################Channels 8-15################################
+  5c00    1         16           2       0             3             0x0710
+  5c00    1         16           2       1             3             0x0710
+  5c00    1         16           2       2             3             0x0710
+  5c00    1         16           2       3             3             0x0710
+  5c00    1         16           2       4             3             0x0710
+  5c00    1         16           2       5             3             0x0710
+  5c00    1         16           2       6             3             0x0710
+  5c00    1         16           2       7             3             0x0710
+##############################Channels 16-23################################
+  5c00    1         16           3       0             3             0x0710
+  5c00    1         16           3       1             3             0x0710
+  5c00    1         16           3       2             3             0x0710
+  5c00    1         16           3       3             3             0x0710
+  5c00    1         16           3       4             3             0x0710
+  5c00    1         16           3       5             3             0x0710
+  5c00    1         16           3       6             3             0x0710
+  5c00    1         16           3       7             3             0x0710
+##############################Channels 24-31################################
+  5c00    1         16           4       0             3             0x0710
+  5c00    1         16           4       1             3             0x0710
+  5c00    1         16           4       2             3             0x0710
+  5c00    1         16           4       3             3             0x0710
+  5c00    1         16           4       4             3             0x0710
+  5c00    1         16           4       5             3             0x0710
+  5c00    1         16           4       6             3             0x0710
+  5c00    1         16           4       7             3             0x0710
+##############################Channels 32-39################################
+  5c00    1         16           5       0             3             0x0710
+  5c00    1         16           5       1             3             0x0710
+  5c00    1         16           5       2             3             0x0710
+  5c00    1         16           5       3             3             0x0710
+  5c00    1         16           5       4             3             0x0710
+  5c00    1         16           5       5             3             0x0710
+  5c00    1         16           5       6             3             0x0710
+  5c00    1         16           5       7             3             0x0710
+##############################Channels 40-47################################
+  5c00    1         16           6       0             3             0x0710
+  5c00    1         16           6       1             3             0x0710
+  5c00    1         16           6       2             3             0x0710
+  5c00    1         16           6       3             3             0x0710
+  5c00    1         16           6       4             3             0x0710
+  5c00    1         16           6       5             3             0x0710
+  5c00    1         16           6       6             3             0x0710
+  5c00    1         16           6       7             3             0x0710
+##############################Channels 48-55################################
+  5c00    1         16           7       0             3             0x0710
+  5c00    1         16           7       1             3             0x0710
+  5c00    1         16           7       2             3             0x0710
+  5c00    1         16           7       3             3             0x0710
+  5c00    1         16           7       4             3             0x0710
+  5c00    1         16           7       5             3             0x0710
+  5c00    1         16           7       6             3             0x0710
+  5c00    1         16           7       7             3             0x0710
+##############################Channels 56-63################################
+  5c00    1         16           8       0             3             0x0710
+  5c00    1         16           8       1             3             0x0710
+  5c00    1         16           8       2             3             0x0710
+  5c00    1         16           8       3             3             0x0710
+  5c00    1         16           8       4             3             0x0710
+  5c00    1         16           8       5             3             0x0710
+  5c00    1         16           8       6             3             0x0710
+  5c00    1         16           8       7             3             0x0710
+##############################Channels 64-71################################
+  5c00    1         16           9       0             3             0x0710
+  5c00    1         16           9       1             3             0x0710
+  5c00    1         16           9       2             3             0x0710
+  5c00    1         16           9       3             3             0x0710
+  5c00    1         16           9       4             3             0x0710
+  5c00    1         16           9       5             3             0x0710
+  5c00    1         16           9       6             3             0x0710
+  5c00    1         16           9       7             3             0x0710
+##############################Channels 72-79################################
+  5c00    1         16           10      0             3             0x0710
+  5c00    1         16           10      1             3             0x0710
+  5c00    1         16           10      2             3             0x0710
+  5c00    1         16           10      3             3             0x0710
+  5c00    1         16           10      4             3             0x0710
+  5c00    1         16           10      5             3             0x0710
+  5c00    1         16           10      6             3             0x0710
+  5c00    1         16           10      7             3             0x0710
+##############################Channels 80-87################################
+  5c00    1         16           11      0             3             0x0710
+  5c00    1         16           11      1             3             0x0710
+  5c00    1         16           11      2             3             0x0710
+  5c00    1         16           11      3             3             0x0710
+  5c00    1         16           11      4             3             0x0710
+  5c00    1         16           11      5             3             0x0710
+  5c00    1         16           11      6             3             0x0710
+  5c00    1         16           11      7             3             0x0710
+##############################Channels 88-95################################
+  5c00    1         16           12      0             3             0x0710
+  5c00    1         16           12      1             3             0x0710
+  5c00    1         16           12      2             3             0x0710
+  5c00    1         16           12      3             3             0x0710
+  5c00    1         16           12      4             3             0x0710
+  5c00    1         16           12      5             3             0x0710
+  5c00    1         16           12      6             3             0x0710
+  5c00    1         16           12      7             3             0x0710
+##############################Channels 96-103###############################
+  5c00    1         16           13      0             3             0x0710
+  5c00    1         16           13      1             3             0x0710
+  5c00    1         16           13      2             3             0x0710
+  5c00    1         16           13      3             3             0x0710
+  5c00    1         16           13      4             3             0x0710
+  5c00    1         16           13      5             3             0x0710
+  5c00    1         16           13      6             3             0x0710
+  5c00    1         16           13      7             3             0x0710
+#############################Channels 104-111###############################
+  5c00    1         16           14      0             3             0x0710
+  5c00    1         16           14      1             3             0x0710
+  5c00    1         16           14      2             3             0x0710
+  5c00    1         16           14      3             3             0x0710
+  5c00    1         16           14      4             3             0x0710
+  5c00    1         16           14      5             3             0x0710
+  5c00    1         16           14      6             3             0x0710
+  5c00    1         16           14      7             3             0x0710
+#############################Channels 112-119###############################
+  5c00    1         16           15      0             3             0x0710
+  5c00    1         16           15      1             3             0x0710
+  5c00    1         16           15      2             3             0x0710
+  5c00    1         16           15      3             3             0x0710
+  5c00    1         16           15      4             3             0x0710
+  5c00    1         16           15      5             3             0x0710
+  5c00    1         16           15      6             3             0x0710
+  5c00    1         16           15      7             3             0x0710
diff --git a/tof/thr_trb3/tof_thr_86c1.db b/tof/thr_trb3/tof_thr_86c1.db
new file mode 100644 (file)
index 0000000..6fbd998
--- /dev/null
@@ -0,0 +1,173 @@
+# The order of DACs is:
+# DAC_16 - channels 120-127
+################################
+# DAC_0
+# 0: global threshold fast
+# 1: global threshold slow
+# 2: stretch fast
+# 3: stretch slow
+# 4: hysteresis fast
+# 5: hysteresis slow
+# 6: not used
+# 7: not used
+################################
+# DAC_1 - channels 0-7
+# .
+# .
+# .
+# DAC_15 - channels 112-119
+#
+# Board   Chain     ChainLen     DAC     Channel       Command       Value
+###############################Channels 120-127#############################
+  5c10    1         1            16      0             3             0x0710
+  5c10    1         1            16      1             3             0x0710
+  5c10    1         1            16      2             3             0x0710
+  5c10    1         1            16      3             3             0x0710
+  5c10    1         1            16      4             3             0x0710
+  5c10    1         1            16      5             3             0x0710
+  5c10    1         1            16      6             3             0x0710
+  5c10    1         1            16      7             3             0x0710
+###############################Global values################################
+  5c10    1         16           0       0             3             0x3100
+  5c10    1         16           0       1             3             0x3100
+  5c10    1         16           0       2             3             0x5000
+  5c10    1         16           0       3             3             0x5000
+  5c10    1         16           0       4             3             0x7000
+  5c10    1         16           0       5             3             0x7000
+  5c10    1         16           0       6             3             0x7000
+  5c10    1         16           0       7             3             0x7000
+###############################Channels 1-7#################################
+  5c10    1         16           1       0             3             0x0710
+  5c10    1         16           1       1             3             0x0710
+  5c10    1         16           1       2             3             0x0710
+  5c10    1         16           1       3             3             0x0710
+  5c10    1         16           1       4             3             0x0710
+  5c10    1         16           1       5             3             0x0710
+  5c10    1         16           1       6             3             0x0710
+  5c10    1         16           1       7             3             0x0710
+###############################Channels 8-15################################
+  5c10    1         16           2       0             3             0x0710
+  5c10    1         16           2       1             3             0x0710
+  5c10    1         16           2       2             3             0x0710
+  5c10    1         16           2       3             3             0x0710
+  5c10    1         16           2       4             3             0x0710
+  5c10    1         16           2       5             3             0x0710
+  5c10    1         16           2       6             3             0x0710
+  5c10    1         16           2       7             3             0x0710
+##############################Channels 16-23################################
+  5c10    1         16           3       0             3             0x0710
+  5c10    1         16           3       1             3             0x0710
+  5c10    1         16           3       2             3             0x0710
+  5c10    1         16           3       3             3             0x0710
+  5c10    1         16           3       4             3             0x0710
+  5c10    1         16           3       5             3             0x0710
+  5c10    1         16           3       6             3             0x0710
+  5c10    1         16           3       7             3             0x0710
+##############################Channels 24-31################################
+  5c10    1         16           4       0             3             0x0710
+  5c10    1         16           4       1             3             0x0710
+  5c10    1         16           4       2             3             0x0710
+  5c10    1         16           4       3             3             0x0710
+  5c10    1         16           4       4             3             0x0710
+  5c10    1         16           4       5             3             0x0710
+  5c10    1         16           4       6             3             0x0710
+  5c10    1         16           4       7             3             0x0710
+##############################Channels 32-39################################
+  5c10    1         16           5       0             3             0x0710
+  5c10    1         16           5       1             3             0x0710
+  5c10    1         16           5       2             3             0x0710
+  5c10    1         16           5       3             3             0x0710
+  5c10    1         16           5       4             3             0x0710
+  5c10    1         16           5       5             3             0x0710
+  5c10    1         16           5       6             3             0x0710
+  5c10    1         16           5       7             3             0x0710
+##############################Channels 40-47################################
+  5c10    1         16           6       0             3             0x0710
+  5c10    1         16           6       1             3             0x0710
+  5c10    1         16           6       2             3             0x0710
+  5c10    1         16           6       3             3             0x0710
+  5c10    1         16           6       4             3             0x0710
+  5c10    1         16           6       5             3             0x0710
+  5c10    1         16           6       6             3             0x0710
+  5c10    1         16           6       7             3             0x0710
+##############################Channels 48-55################################
+  5c10    1         16           7       0             3             0x0710
+  5c10    1         16           7       1             3             0x0710
+  5c10    1         16           7       2             3             0x0710
+  5c10    1         16           7       3             3             0x0710
+  5c10    1         16           7       4             3             0x0710
+  5c10    1         16           7       5             3             0x0710
+  5c10    1         16           7       6             3             0x0710
+  5c10    1         16           7       7             3             0x0710
+##############################Channels 56-63################################
+  5c10    1         16           8       0             3             0x0710
+  5c10    1         16           8       1             3             0x0710
+  5c10    1         16           8       2             3             0x0710
+  5c10    1         16           8       3             3             0x0710
+  5c10    1         16           8       4             3             0x0710
+  5c10    1         16           8       5             3             0x0710
+  5c10    1         16           8       6             3             0x0710
+  5c10    1         16           8       7             3             0x0710
+##############################Channels 64-71################################
+  5c10    1         16           9       0             3             0x0710
+  5c10    1         16           9       1             3             0x0710
+  5c10    1         16           9       2             3             0x0710
+  5c10    1         16           9       3             3             0x0710
+  5c10    1         16           9       4             3             0x0710
+  5c10    1         16           9       5             3             0x0710
+  5c10    1         16           9       6             3             0x0710
+  5c10    1         16           9       7             3             0x0710
+##############################Channels 72-79################################
+  5c10    1         16           10      0             3             0x0710
+  5c10    1         16           10      1             3             0x0710
+  5c10    1         16           10      2             3             0x0710
+  5c10    1         16           10      3             3             0x0710
+  5c10    1         16           10      4             3             0x0710
+  5c10    1         16           10      5             3             0x0710
+  5c10    1         16           10      6             3             0x0710
+  5c10    1         16           10      7             3             0x0710
+##############################Channels 80-87################################
+  5c10    1         16           11      0             3             0x0710
+  5c10    1         16           11      1             3             0x0710
+  5c10    1         16           11      2             3             0x0710
+  5c10    1         16           11      3             3             0x0710
+  5c10    1         16           11      4             3             0x0710
+  5c10    1         16           11      5             3             0x0710
+  5c10    1         16           11      6             3             0x0710
+  5c10    1         16           11      7             3             0x0710
+##############################Channels 88-95################################
+  5c10    1         16           12      0             3             0x0710
+  5c10    1         16           12      1             3             0x0710
+  5c10    1         16           12      2             3             0x0710
+  5c10    1         16           12      3             3             0x0710
+  5c10    1         16           12      4             3             0x0710
+  5c10    1         16           12      5             3             0x0710
+  5c10    1         16           12      6             3             0x0710
+  5c10    1         16           12      7             3             0x0710
+##############################Channels 96-103###############################
+  5c10    1         16           13      0             3             0x0710
+  5c10    1         16           13      1             3             0x0710
+  5c10    1         16           13      2             3             0x0710
+  5c10    1         16           13      3             3             0x0710
+  5c10    1         16           13      4             3             0x0710
+  5c10    1         16           13      5             3             0x0710
+  5c10    1         16           13      6             3             0x0710
+  5c10    1         16           13      7             3             0x0710
+#############################Channels 104-111###############################
+  5c10    1         16           14      0             3             0x0710
+  5c10    1         16           14      1             3             0x0710
+  5c10    1         16           14      2             3             0x0710
+  5c10    1         16           14      3             3             0x0710
+  5c10    1         16           14      4             3             0x0710
+  5c10    1         16           14      5             3             0x0710
+  5c10    1         16           14      6             3             0x0710
+  5c10    1         16           14      7             3             0x0710
+#############################Channels 112-119###############################
+  5c10    1         16           15      0             3             0x0710
+  5c10    1         16           15      1             3             0x0710
+  5c10    1         16           15      2             3             0x0710
+  5c10    1         16           15      3             3             0x0710
+  5c10    1         16           15      4             3             0x0710
+  5c10    1         16           15      5             3             0x0710
+  5c10    1         16           15      6             3             0x0710
+  5c10    1         16           15      7             3             0x0710
diff --git a/tof/thr_trb3/tof_thr_86c2.db b/tof/thr_trb3/tof_thr_86c2.db
new file mode 100644 (file)
index 0000000..597e26e
--- /dev/null
@@ -0,0 +1,173 @@
+# The order of DACs is:
+# DAC_16 - channels 120-127
+################################
+# DAC_0
+# 0: global threshold fast
+# 1: global threshold slow
+# 2: stretch fast
+# 3: stretch slow
+# 4: hysteresis fast
+# 5: hysteresis slow
+# 6: not used
+# 7: not used
+################################
+# DAC_1 - channels 0-7
+# .
+# .
+# .
+# DAC_15 - channels 112-119
+#
+# Board   Chain     ChainLen     DAC     Channel       Command       Value
+###############################Channels 120-127#############################
+  5c20    1         1            16      0             3             0x0710
+  5c20    1         1            16      1             3             0x0710
+  5c20    1         1            16      2             3             0x0710
+  5c20    1         1            16      3             3             0x0710
+  5c20    1         1            16      4             3             0x0710
+  5c20    1         1            16      5             3             0x0710
+  5c20    1         1            16      6             3             0x0710
+  5c20    1         1            16      7             3             0x0710
+###############################Global values################################
+  5c20    1         16           0       0             3             0x3100
+  5c20    1         16           0       1             3             0x3100
+  5c20    1         16           0       2             3             0x5000
+  5c20    1         16           0       3             3             0x5000
+  5c20    1         16           0       4             3             0x7000
+  5c20    1         16           0       5             3             0x7000
+  5c20    1         16           0       6             3             0x7000
+  5c20    1         16           0       7             3             0x7000
+###############################Channels 1-7#################################
+  5c20    1         16           1       0             3             0x0710
+  5c20    1         16           1       1             3             0x0710
+  5c20    1         16           1       2             3             0x0710
+  5c20    1         16           1       3             3             0x0710
+  5c20    1         16           1       4             3             0x0710
+  5c20    1         16           1       5             3             0x0710
+  5c20    1         16           1       6             3             0x0710
+  5c20    1         16           1       7             3             0x0710
+###############################Channels 8-15################################
+  5c20    1         16           2       0             3             0x0710
+  5c20    1         16           2       1             3             0x0710
+  5c20    1         16           2       2             3             0x0710
+  5c20    1         16           2       3             3             0x0710
+  5c20    1         16           2       4             3             0x0710
+  5c20    1         16           2       5             3             0x0710
+  5c20    1         16           2       6             3             0x0710
+  5c20    1         16           2       7             3             0x0710
+##############################Channels 16-23################################
+  5c20    1         16           3       0             3             0x0710
+  5c20    1         16           3       1             3             0x0710
+  5c20    1         16           3       2             3             0x0710
+  5c20    1         16           3       3             3             0x0710
+  5c20    1         16           3       4             3             0x0710
+  5c20    1         16           3       5             3             0x0710
+  5c20    1         16           3       6             3             0x0710
+  5c20    1         16           3       7             3             0x0710
+##############################Channels 24-31################################
+  5c20    1         16           4       0             3             0x0710
+  5c20    1         16           4       1             3             0x0710
+  5c20    1         16           4       2             3             0x0710
+  5c20    1         16           4       3             3             0x0710
+  5c20    1         16           4       4             3             0x0710
+  5c20    1         16           4       5             3             0x0710
+  5c20    1         16           4       6             3             0x0710
+  5c20    1         16           4       7             3             0x0710
+##############################Channels 32-39################################
+  5c20    1         16           5       0             3             0x0710
+  5c20    1         16           5       1             3             0x0710
+  5c20    1         16           5       2             3             0x0710
+  5c20    1         16           5       3             3             0x0710
+  5c20    1         16           5       4             3             0x0710
+  5c20    1         16           5       5             3             0x0710
+  5c20    1         16           5       6             3             0x0710
+  5c20    1         16           5       7             3             0x0710
+##############################Channels 40-47################################
+  5c20    1         16           6       0             3             0x0710
+  5c20    1         16           6       1             3             0x0710
+  5c20    1         16           6       2             3             0x0710
+  5c20    1         16           6       3             3             0x0710
+  5c20    1         16           6       4             3             0x0710
+  5c20    1         16           6       5             3             0x0710
+  5c20    1         16           6       6             3             0x0710
+  5c20    1         16           6       7             3             0x0710
+##############################Channels 48-55################################
+  5c20    1         16           7       0             3             0x0710
+  5c20    1         16           7       1             3             0x0710
+  5c20    1         16           7       2             3             0x0710
+  5c20    1         16           7       3             3             0x0710
+  5c20    1         16           7       4             3             0x0710
+  5c20    1         16           7       5             3             0x0710
+  5c20    1         16           7       6             3             0x0710
+  5c20    1         16           7       7             3             0x0710
+##############################Channels 56-63################################
+  5c20    1         16           8       0             3             0x0710
+  5c20    1         16           8       1             3             0x0710
+  5c20    1         16           8       2             3             0x0710
+  5c20    1         16           8       3             3             0x0710
+  5c20    1         16           8       4             3             0x0710
+  5c20    1         16           8       5             3             0x0710
+  5c20    1         16           8       6             3             0x0710
+  5c20    1         16           8       7             3             0x0710
+##############################Channels 64-71################################
+  5c20    1         16           9       0             3             0x0710
+  5c20    1         16           9       1             3             0x0710
+  5c20    1         16           9       2             3             0x0710
+  5c20    1         16           9       3             3             0x0710
+  5c20    1         16           9       4             3             0x0710
+  5c20    1         16           9       5             3             0x0710
+  5c20    1         16           9       6             3             0x0710
+  5c20    1         16           9       7             3             0x0710
+##############################Channels 72-79################################
+  5c20    1         16           10      0             3             0x0710
+  5c20    1         16           10      1             3             0x0710
+  5c20    1         16           10      2             3             0x0710
+  5c20    1         16           10      3             3             0x0710
+  5c20    1         16           10      4             3             0x0710
+  5c20    1         16           10      5             3             0x0710
+  5c20    1         16           10      6             3             0x0710
+  5c20    1         16           10      7             3             0x0710
+##############################Channels 80-87################################
+  5c20    1         16           11      0             3             0x0710
+  5c20    1         16           11      1             3             0x0710
+  5c20    1         16           11      2             3             0x0710
+  5c20    1         16           11      3             3             0x0710
+  5c20    1         16           11      4             3             0x0710
+  5c20    1         16           11      5             3             0x0710
+  5c20    1         16           11      6             3             0x0710
+  5c20    1         16           11      7             3             0x0710
+##############################Channels 88-95################################
+  5c20    1         16           12      0             3             0x0710
+  5c20    1         16           12      1             3             0x0710
+  5c20    1         16           12      2             3             0x0710
+  5c20    1         16           12      3             3             0x0710
+  5c20    1         16           12      4             3             0x0710
+  5c20    1         16           12      5             3             0x0710
+  5c20    1         16           12      6             3             0x0710
+  5c20    1         16           12      7             3             0x0710
+##############################Channels 96-103###############################
+  5c20    1         16           13      0             3             0x0710
+  5c20    1         16           13      1             3             0x0710
+  5c20    1         16           13      2             3             0x0710
+  5c20    1         16           13      3             3             0x0710
+  5c20    1         16           13      4             3             0x0710
+  5c20    1         16           13      5             3             0x0710
+  5c20    1         16           13      6             3             0x0710
+  5c20    1         16           13      7             3             0x0710
+#############################Channels 104-111###############################
+  5c20    1         16           14      0             3             0x0710
+  5c20    1         16           14      1             3             0x0710
+  5c20    1         16           14      2             3             0x0710
+  5c20    1         16           14      3             3             0x0710
+  5c20    1         16           14      4             3             0x0710
+  5c20    1         16           14      5             3             0x0710
+  5c20    1         16           14      6             3             0x0710
+  5c20    1         16           14      7             3             0x0710
+#############################Channels 112-119###############################
+  5c20    1         16           15      0             3             0x0710
+  5c20    1         16           15      1             3             0x0710
+  5c20    1         16           15      2             3             0x0710
+  5c20    1         16           15      3             3             0x0710
+  5c20    1         16           15      4             3             0x0710
+  5c20    1         16           15      5             3             0x0710
+  5c20    1         16           15      6             3             0x0710
+  5c20    1         16           15      7             3             0x0710
diff --git a/tof/thr_trb3/tof_thr_86c3.db b/tof/thr_trb3/tof_thr_86c3.db
new file mode 100644 (file)
index 0000000..a84bfda
--- /dev/null
@@ -0,0 +1,173 @@
+# The order of DACs is:
+# DAC_16 - channels 120-127
+################################
+# DAC_0
+# 0: global threshold fast
+# 1: global threshold slow
+# 2: stretch fast
+# 3: stretch slow
+# 4: hysteresis fast
+# 5: hysteresis slow
+# 6: not used
+# 7: not used
+################################
+# DAC_1 - channels 0-7
+# .
+# .
+# .
+# DAC_15 - channels 112-119
+#
+# Board   Chain     ChainLen     DAC     Channel       Command       Value
+###############################Channels 120-127#############################
+  5c30    1         1            16      0             3             0x0710
+  5c30    1         1            16      1             3             0x0710
+  5c30    1         1            16      2             3             0x0710
+  5c30    1         1            16      3             3             0x0710
+  5c30    1         1            16      4             3             0x0710
+  5c30    1         1            16      5             3             0x0710
+  5c30    1         1            16      6             3             0x0710
+  5c30    1         1            16      7             3             0x0710
+###############################Global values################################
+  5c30    1         16           0       0             3             0x3100
+  5c30    1         16           0       1             3             0x3100
+  5c30    1         16           0       2             3             0x5000
+  5c30    1         16           0       3             3             0x5000
+  5c30    1         16           0       4             3             0x7000
+  5c30    1         16           0       5             3             0x7000
+  5c30    1         16           0       6             3             0x7000
+  5c30    1         16           0       7             3             0x7000
+###############################Channels 1-7#################################
+  5c30    1         16           1       0             3             0x0710
+  5c30    1         16           1       1             3             0x0710
+  5c30    1         16           1       2             3             0x0710
+  5c30    1         16           1       3             3             0x0710
+  5c30    1         16           1       4             3             0x0710
+  5c30    1         16           1       5             3             0x0710
+  5c30    1         16           1       6             3             0x0710
+  5c30    1         16           1       7             3             0x0710
+###############################Channels 8-15################################
+  5c30    1         16           2       0             3             0x0710
+  5c30    1         16           2       1             3             0x0710
+  5c30    1         16           2       2             3             0x0710
+  5c30    1         16           2       3             3             0x0710
+  5c30    1         16           2       4             3             0x0710
+  5c30    1         16           2       5             3             0x0710
+  5c30    1         16           2       6             3             0x0710
+  5c30    1         16           2       7             3             0x0710
+##############################Channels 16-23################################
+  5c30    1         16           3       0             3             0x0710
+  5c30    1         16           3       1             3             0x0710
+  5c30    1         16           3       2             3             0x0710
+  5c30    1         16           3       3             3             0x0710
+  5c30    1         16           3       4             3             0x0710
+  5c30    1         16           3       5             3             0x0710
+  5c30    1         16           3       6             3             0x0710
+  5c30    1         16           3       7             3             0x0710
+##############################Channels 24-31################################
+  5c30    1         16           4       0             3             0x0710
+  5c30    1         16           4       1             3             0x0710
+  5c30    1         16           4       2             3             0x0710
+  5c30    1         16           4       3             3             0x0710
+  5c30    1         16           4       4             3             0x0710
+  5c30    1         16           4       5             3             0x0710
+  5c30    1         16           4       6             3             0x0710
+  5c30    1         16           4       7             3             0x0710
+##############################Channels 32-39################################
+  5c30    1         16           5       0             3             0x0710
+  5c30    1         16           5       1             3             0x0710
+  5c30    1         16           5       2             3             0x0710
+  5c30    1         16           5       3             3             0x0710
+  5c30    1         16           5       4             3             0x0710
+  5c30    1         16           5       5             3             0x0710
+  5c30    1         16           5       6             3             0x0710
+  5c30    1         16           5       7             3             0x0710
+##############################Channels 40-47################################
+  5c30    1         16           6       0             3             0x0710
+  5c30    1         16           6       1             3             0x0710
+  5c30    1         16           6       2             3             0x0710
+  5c30    1         16           6       3             3             0x0710
+  5c30    1         16           6       4             3             0x0710
+  5c30    1         16           6       5             3             0x0710
+  5c30    1         16           6       6             3             0x0710
+  5c30    1         16           6       7             3             0x0710
+##############################Channels 48-55################################
+  5c30    1         16           7       0             3             0x0710
+  5c30    1         16           7       1             3             0x0710
+  5c30    1         16           7       2             3             0x0710
+  5c30    1         16           7       3             3             0x0710
+  5c30    1         16           7       4             3             0x0710
+  5c30    1         16           7       5             3             0x0710
+  5c30    1         16           7       6             3             0x0710
+  5c30    1         16           7       7             3             0x0710
+##############################Channels 56-63################################
+  5c30    1         16           8       0             3             0x0710
+  5c30    1         16           8       1             3             0x0710
+  5c30    1         16           8       2             3             0x0710
+  5c30    1         16           8       3             3             0x0710
+  5c30    1         16           8       4             3             0x0710
+  5c30    1         16           8       5             3             0x0710
+  5c30    1         16           8       6             3             0x0710
+  5c30    1         16           8       7             3             0x0710
+##############################Channels 64-71################################
+  5c30    1         16           9       0             3             0x0710
+  5c30    1         16           9       1             3             0x0710
+  5c30    1         16           9       2             3             0x0710
+  5c30    1         16           9       3             3             0x0710
+  5c30    1         16           9       4             3             0x0710
+  5c30    1         16           9       5             3             0x0710
+  5c30    1         16           9       6             3             0x0710
+  5c30    1         16           9       7             3             0x0710
+##############################Channels 72-79################################
+  5c30    1         16           10      0             3             0x0710
+  5c30    1         16           10      1             3             0x0710
+  5c30    1         16           10      2             3             0x0710
+  5c30    1         16           10      3             3             0x0710
+  5c30    1         16           10      4             3             0x0710
+  5c30    1         16           10      5             3             0x0710
+  5c30    1         16           10      6             3             0x0710
+  5c30    1         16           10      7             3             0x0710
+##############################Channels 80-87################################
+  5c30    1         16           11      0             3             0x0710
+  5c30    1         16           11      1             3             0x0710
+  5c30    1         16           11      2             3             0x0710
+  5c30    1         16           11      3             3             0x0710
+  5c30    1         16           11      4             3             0x0710
+  5c30    1         16           11      5             3             0x0710
+  5c30    1         16           11      6             3             0x0710
+  5c30    1         16           11      7             3             0x0710
+##############################Channels 88-95################################
+  5c30    1         16           12      0             3             0x0710
+  5c30    1         16           12      1             3             0x0710
+  5c30    1         16           12      2             3             0x0710
+  5c30    1         16           12      3             3             0x0710
+  5c30    1         16           12      4             3             0x0710
+  5c30    1         16           12      5             3             0x0710
+  5c30    1         16           12      6             3             0x0710
+  5c30    1         16           12      7             3             0x0710
+##############################Channels 96-103###############################
+  5c30    1         16           13      0             3             0x0710
+  5c30    1         16           13      1             3             0x0710
+  5c30    1         16           13      2             3             0x0710
+  5c30    1         16           13      3             3             0x0710
+  5c30    1         16           13      4             3             0x0710
+  5c30    1         16           13      5             3             0x0710
+  5c30    1         16           13      6             3             0x0710
+  5c30    1         16           13      7             3             0x0710
+#############################Channels 104-111###############################
+  5c30    1         16           14      0             3             0x0710
+  5c30    1         16           14      1             3             0x0710
+  5c30    1         16           14      2             3             0x0710
+  5c30    1         16           14      3             3             0x0710
+  5c30    1         16           14      4             3             0x0710
+  5c30    1         16           14      5             3             0x0710
+  5c30    1         16           14      6             3             0x0710
+  5c30    1         16           14      7             3             0x0710
+#############################Channels 112-119###############################
+  5c30    1         16           15      0             3             0x0710
+  5c30    1         16           15      1             3             0x0710
+  5c30    1         16           15      2             3             0x0710
+  5c30    1         16           15      3             3             0x0710
+  5c30    1         16           15      4             3             0x0710
+  5c30    1         16           15      5             3             0x0710
+  5c30    1         16           15      6             3             0x0710
+  5c30    1         16           15      7             3             0x0710
diff --git a/tof/thr_trb3/tof_thr_86c4.db b/tof/thr_trb3/tof_thr_86c4.db
new file mode 100644 (file)
index 0000000..eb360f8
--- /dev/null
@@ -0,0 +1,173 @@
+# The order of DACs is:
+# DAC_16 - channels 120-127
+################################
+# DAC_0
+# 0: global threshold fast
+# 1: global threshold slow
+# 2: stretch fast
+# 3: stretch slow
+# 4: hysteresis fast
+# 5: hysteresis slow
+# 6: not used
+# 7: not used
+################################
+# DAC_1 - channels 0-7
+# .
+# .
+# .
+# DAC_15 - channels 112-119
+#
+# Board   Chain     ChainLen     DAC     Channel       Command       Value
+###############################Channels 120-127#############################
+  5c40    1         1            16      0             3             0x0710
+  5c40    1         1            16      1             3             0x0710
+  5c40    1         1            16      2             3             0x0710
+  5c40    1         1            16      3             3             0x0710
+  5c40    1         1            16      4             3             0x0710
+  5c40    1         1            16      5             3             0x0710
+  5c40    1         1            16      6             3             0x0710
+  5c40    1         1            16      7             3             0x0710
+###############################Global values################################
+  5c40    1         16           0       0             3             0x3100
+  5c40    1         16           0       1             3             0x3100
+  5c40    1         16           0       2             3             0x5000
+  5c40    1         16           0       3             3             0x5000
+  5c40    1         16           0       4             3             0x7000
+  5c40    1         16           0       5             3             0x7000
+  5c40    1         16           0       6             3             0x7000
+  5c40    1         16           0       7             3             0x7000
+###############################Channels 1-7#################################
+  5c40    1         16           1       0             3             0x0710
+  5c40    1         16           1       1             3             0x0710
+  5c40    1         16           1       2             3             0x0710
+  5c40    1         16           1       3             3             0x0710
+  5c40    1         16           1       4             3             0x0710
+  5c40    1         16           1       5             3             0x0710
+  5c40    1         16           1       6             3             0x0710
+  5c40    1         16           1       7             3             0x0710
+###############################Channels 8-15################################
+  5c40    1         16           2       0             3             0x0710
+  5c40    1         16           2       1             3             0x0710
+  5c40    1         16           2       2             3             0x0710
+  5c40    1         16           2       3             3             0x0710
+  5c40    1         16           2       4             3             0x0710
+  5c40    1         16           2       5             3             0x0710
+  5c40    1         16           2       6             3             0x0710
+  5c40    1         16           2       7             3             0x0710
+##############################Channels 16-23################################
+  5c40    1         16           3       0             3             0x0710
+  5c40    1         16           3       1             3             0x0710
+  5c40    1         16           3       2             3             0x0710
+  5c40    1         16           3       3             3             0x0710
+  5c40    1         16           3       4             3             0x0710
+  5c40    1         16           3       5             3             0x0710
+  5c40    1         16           3       6             3             0x0710
+  5c40    1         16           3       7             3             0x0710
+##############################Channels 24-31################################
+  5c40    1         16           4       0             3             0x0710
+  5c40    1         16           4       1             3             0x0710
+  5c40    1         16           4       2             3             0x0710
+  5c40    1         16           4       3             3             0x0710
+  5c40    1         16           4       4             3             0x0710
+  5c40    1         16           4       5             3             0x0710
+  5c40    1         16           4       6             3             0x0710
+  5c40    1         16           4       7             3             0x0710
+##############################Channels 32-39################################
+  5c40    1         16           5       0             3             0x0710
+  5c40    1         16           5       1             3             0x0710
+  5c40    1         16           5       2             3             0x0710
+  5c40    1         16           5       3             3             0x0710
+  5c40    1         16           5       4             3             0x0710
+  5c40    1         16           5       5             3             0x0710
+  5c40    1         16           5       6             3             0x0710
+  5c40    1         16           5       7             3             0x0710
+##############################Channels 40-47################################
+  5c40    1         16           6       0             3             0x0710
+  5c40    1         16           6       1             3             0x0710
+  5c40    1         16           6       2             3             0x0710
+  5c40    1         16           6       3             3             0x0710
+  5c40    1         16           6       4             3             0x0710
+  5c40    1         16           6       5             3             0x0710
+  5c40    1         16           6       6             3             0x0710
+  5c40    1         16           6       7             3             0x0710
+##############################Channels 48-55################################
+  5c40    1         16           7       0             3             0x0710
+  5c40    1         16           7       1             3             0x0710
+  5c40    1         16           7       2             3             0x0710
+  5c40    1         16           7       3             3             0x0710
+  5c40    1         16           7       4             3             0x0710
+  5c40    1         16           7       5             3             0x0710
+  5c40    1         16           7       6             3             0x0710
+  5c40    1         16           7       7             3             0x0710
+##############################Channels 56-63################################
+  5c40    1         16           8       0             3             0x0710
+  5c40    1         16           8       1             3             0x0710
+  5c40    1         16           8       2             3             0x0710
+  5c40    1         16           8       3             3             0x0710
+  5c40    1         16           8       4             3             0x0710
+  5c40    1         16           8       5             3             0x0710
+  5c40    1         16           8       6             3             0x0710
+  5c40    1         16           8       7             3             0x0710
+##############################Channels 64-71################################
+  5c40    1         16           9       0             3             0x0710
+  5c40    1         16           9       1             3             0x0710
+  5c40    1         16           9       2             3             0x0710
+  5c40    1         16           9       3             3             0x0710
+  5c40    1         16           9       4             3             0x0710
+  5c40    1         16           9       5             3             0x0710
+  5c40    1         16           9       6             3             0x0710
+  5c40    1         16           9       7             3             0x0710
+##############################Channels 72-79################################
+  5c40    1         16           10      0             3             0x0710
+  5c40    1         16           10      1             3             0x0710
+  5c40    1         16           10      2             3             0x0710
+  5c40    1         16           10      3             3             0x0710
+  5c40    1         16           10      4             3             0x0710
+  5c40    1         16           10      5             3             0x0710
+  5c40    1         16           10      6             3             0x0710
+  5c40    1         16           10      7             3             0x0710
+##############################Channels 80-87################################
+  5c40    1         16           11      0             3             0x0710
+  5c40    1         16           11      1             3             0x0710
+  5c40    1         16           11      2             3             0x0710
+  5c40    1         16           11      3             3             0x0710
+  5c40    1         16           11      4             3             0x0710
+  5c40    1         16           11      5             3             0x0710
+  5c40    1         16           11      6             3             0x0710
+  5c40    1         16           11      7             3             0x0710
+##############################Channels 88-95################################
+  5c40    1         16           12      0             3             0x0710
+  5c40    1         16           12      1             3             0x0710
+  5c40    1         16           12      2             3             0x0710
+  5c40    1         16           12      3             3             0x0710
+  5c40    1         16           12      4             3             0x0710
+  5c40    1         16           12      5             3             0x0710
+  5c40    1         16           12      6             3             0x0710
+  5c40    1         16           12      7             3             0x0710
+##############################Channels 96-103###############################
+  5c40    1         16           13      0             3             0x0710
+  5c40    1         16           13      1             3             0x0710
+  5c40    1         16           13      2             3             0x0710
+  5c40    1         16           13      3             3             0x0710
+  5c40    1         16           13      4             3             0x0710
+  5c40    1         16           13      5             3             0x0710
+  5c40    1         16           13      6             3             0x0710
+  5c40    1         16           13      7             3             0x0710
+#############################Channels 104-111###############################
+  5c40    1         16           14      0             3             0x0710
+  5c40    1         16           14      1             3             0x0710
+  5c40    1         16           14      2             3             0x0710
+  5c40    1         16           14      3             3             0x0710
+  5c40    1         16           14      4             3             0x0710
+  5c40    1         16           14      5             3             0x0710
+  5c40    1         16           14      6             3             0x0710
+  5c40    1         16           14      7             3             0x0710
+#############################Channels 112-119###############################
+  5c40    1         16           15      0             3             0x0710
+  5c40    1         16           15      1             3             0x0710
+  5c40    1         16           15      2             3             0x0710
+  5c40    1         16           15      3             3             0x0710
+  5c40    1         16           15      4             3             0x0710
+  5c40    1         16           15      5             3             0x0710
+  5c40    1         16           15      6             3             0x0710
+  5c40    1         16           15      7             3             0x0710
diff --git a/tof/thr_trb3/tof_thr_86c5.db b/tof/thr_trb3/tof_thr_86c5.db
new file mode 100644 (file)
index 0000000..50174be
--- /dev/null
@@ -0,0 +1,173 @@
+# The order of DACs is:
+# DAC_16 - channels 120-127
+################################
+# DAC_0
+# 0: global threshold fast
+# 1: global threshold slow
+# 2: stretch fast
+# 3: stretch slow
+# 4: hysteresis fast
+# 5: hysteresis slow
+# 6: not used
+# 7: not used
+################################
+# DAC_1 - channels 0-7
+# .
+# .
+# .
+# DAC_15 - channels 112-119
+#
+# Board   Chain     ChainLen     DAC     Channel       Command       Value
+###############################Channels 120-127#############################
+  5c50    1         1            16      0             3             0x0710
+  5c50    1         1            16      1             3             0x0710
+  5c50    1         1            16      2             3             0x0710
+  5c50    1         1            16      3             3             0x0710
+  5c50    1         1            16      4             3             0x0710
+  5c50    1         1            16      5             3             0x0710
+  5c50    1         1            16      6             3             0x0710
+  5c50    1         1            16      7             3             0x0710
+###############################Global values################################
+  5c50    1         16           0       0             3             0x3100
+  5c50    1         16           0       1             3             0x3100
+  5c50    1         16           0       2             3             0x5000
+  5c50    1         16           0       3             3             0x5000
+  5c50    1         16           0       4             3             0x7000
+  5c50    1         16           0       5             3             0x7000
+  5c50    1         16           0       6             3             0x7000
+  5c50    1         16           0       7             3             0x7000
+###############################Channels 1-7#################################
+  5c50    1         16           1       0             3             0x0710
+  5c50    1         16           1       1             3             0x0710
+  5c50    1         16           1       2             3             0x0710
+  5c50    1         16           1       3             3             0x0710
+  5c50    1         16           1       4             3             0x0710
+  5c50    1         16           1       5             3             0x0710
+  5c50    1         16           1       6             3             0x0710
+  5c50    1         16           1       7             3             0x0710
+###############################Channels 8-15################################
+  5c50    1         16           2       0             3             0x0710
+  5c50    1         16           2       1             3             0x0710
+  5c50    1         16           2       2             3             0x0710
+  5c50    1         16           2       3             3             0x0710
+  5c50    1         16           2       4             3             0x0710
+  5c50    1         16           2       5             3             0x0710
+  5c50    1         16           2       6             3             0x0710
+  5c50    1         16           2       7             3             0x0710
+##############################Channels 16-23################################
+  5c50    1         16           3       0             3             0x0710
+  5c50    1         16           3       1             3             0x0710
+  5c50    1         16           3       2             3             0x0710
+  5c50    1         16           3       3             3             0x0710
+  5c50    1         16           3       4             3             0x0710
+  5c50    1         16           3       5             3             0x0710
+  5c50    1         16           3       6             3             0x0710
+  5c50    1         16           3       7             3             0x0710
+##############################Channels 24-31################################
+  5c50    1         16           4       0             3             0x0710
+  5c50    1         16           4       1             3             0x0710
+  5c50    1         16           4       2             3             0x0710
+  5c50    1         16           4       3             3             0x0710
+  5c50    1         16           4       4             3             0x0710
+  5c50    1         16           4       5             3             0x0710
+  5c50    1         16           4       6             3             0x0710
+  5c50    1         16           4       7             3             0x0710
+##############################Channels 32-39################################
+  5c50    1         16           5       0             3             0x0710
+  5c50    1         16           5       1             3             0x0710
+  5c50    1         16           5       2             3             0x0710
+  5c50    1         16           5       3             3             0x0710
+  5c50    1         16           5       4             3             0x0710
+  5c50    1         16           5       5             3             0x0710
+  5c50    1         16           5       6             3             0x0710
+  5c50    1         16           5       7             3             0x0710
+##############################Channels 40-47################################
+  5c50    1         16           6       0             3             0x0710
+  5c50    1         16           6       1             3             0x0710
+  5c50    1         16           6       2             3             0x0710
+  5c50    1         16           6       3             3             0x0710
+  5c50    1         16           6       4             3             0x0710
+  5c50    1         16           6       5             3             0x0710
+  5c50    1         16           6       6             3             0x0710
+  5c50    1         16           6       7             3             0x0710
+##############################Channels 48-55################################
+  5c50    1         16           7       0             3             0x0710
+  5c50    1         16           7       1             3             0x0710
+  5c50    1         16           7       2             3             0x0710
+  5c50    1         16           7       3             3             0x0710
+  5c50    1         16           7       4             3             0x0710
+  5c50    1         16           7       5             3             0x0710
+  5c50    1         16           7       6             3             0x0710
+  5c50    1         16           7       7             3             0x0710
+##############################Channels 56-63################################
+  5c50    1         16           8       0             3             0x0710
+  5c50    1         16           8       1             3             0x0710
+  5c50    1         16           8       2             3             0x0710
+  5c50    1         16           8       3             3             0x0710
+  5c50    1         16           8       4             3             0x0710
+  5c50    1         16           8       5             3             0x0710
+  5c50    1         16           8       6             3             0x0710
+  5c50    1         16           8       7             3             0x0710
+##############################Channels 64-71################################
+  5c50    1         16           9       0             3             0x0710
+  5c50    1         16           9       1             3             0x0710
+  5c50    1         16           9       2             3             0x0710
+  5c50    1         16           9       3             3             0x0710
+  5c50    1         16           9       4             3             0x0710
+  5c50    1         16           9       5             3             0x0710
+  5c50    1         16           9       6             3             0x0710
+  5c50    1         16           9       7             3             0x0710
+##############################Channels 72-79################################
+  5c50    1         16           10      0             3             0x0710
+  5c50    1         16           10      1             3             0x0710
+  5c50    1         16           10      2             3             0x0710
+  5c50    1         16           10      3             3             0x0710
+  5c50    1         16           10      4             3             0x0710
+  5c50    1         16           10      5             3             0x0710
+  5c50    1         16           10      6             3             0x0710
+  5c50    1         16           10      7             3             0x0710
+##############################Channels 80-87################################
+  5c50    1         16           11      0             3             0x0710
+  5c50    1         16           11      1             3             0x0710
+  5c50    1         16           11      2             3             0x0710
+  5c50    1         16           11      3             3             0x0710
+  5c50    1         16           11      4             3             0x0710
+  5c50    1         16           11      5             3             0x0710
+  5c50    1         16           11      6             3             0x0710
+  5c50    1         16           11      7             3             0x0710
+##############################Channels 88-95################################
+  5c50    1         16           12      0             3             0x0710
+  5c50    1         16           12      1             3             0x0710
+  5c50    1         16           12      2             3             0x0710
+  5c50    1         16           12      3             3             0x0710
+  5c50    1         16           12      4             3             0x0710
+  5c50    1         16           12      5             3             0x0710
+  5c50    1         16           12      6             3             0x0710
+  5c50    1         16           12      7             3             0x0710
+##############################Channels 96-103###############################
+  5c50    1         16           13      0             3             0x0710
+  5c50    1         16           13      1             3             0x0710
+  5c50    1         16           13      2             3             0x0710
+  5c50    1         16           13      3             3             0x0710
+  5c50    1         16           13      4             3             0x0710
+  5c50    1         16           13      5             3             0x0710
+  5c50    1         16           13      6             3             0x0710
+  5c50    1         16           13      7             3             0x0710
+#############################Channels 104-111###############################
+  5c50    1         16           14      0             3             0x0710
+  5c50    1         16           14      1             3             0x0710
+  5c50    1         16           14      2             3             0x0710
+  5c50    1         16           14      3             3             0x0710
+  5c50    1         16           14      4             3             0x0710
+  5c50    1         16           14      5             3             0x0710
+  5c50    1         16           14      6             3             0x0710
+  5c50    1         16           14      7             3             0x0710
+#############################Channels 112-119###############################
+  5c50    1         16           15      0             3             0x0710
+  5c50    1         16           15      1             3             0x0710
+  5c50    1         16           15      2             3             0x0710
+  5c50    1         16           15      3             3             0x0710
+  5c50    1         16           15      4             3             0x0710
+  5c50    1         16           15      5             3             0x0710
+  5c50    1         16           15      6             3             0x0710
+  5c50    1         16           15      7             3             0x0710
diff --git a/tof/thr_trb3/tof_thr_86c6.db b/tof/thr_trb3/tof_thr_86c6.db
new file mode 100644 (file)
index 0000000..f145539
--- /dev/null
@@ -0,0 +1,137 @@
+# Board   Chain     ChainLen     DAC     Channel       Command       Value
+  5c30    2         1            16      0             3             0x0710
+  5c30    2         1            16      1             3             0x0710
+  5c30    2         1            16      2             3             0x0710
+  5c30    2         1            16      3             3             0x0710
+  5c30    2         1            16      4             3             0x0710
+  5c30    2         1            16      5             3             0x0710
+  5c30    2         1            16      6             3             0x0710
+  5c30    2         1            16      7             3             0x0710
+  5c30    2         16           0       0             3             0x3100
+  5c30    2         16           0       1             3             0x3100
+  5c30    2         16           0       2             3             0x5000
+  5c30    2         16           0       3             3             0x5000
+  5c30    2         16           0       4             3             0x7000
+  5c30    2         16           0       5             3             0x7000
+  5c30    2         16           0       6             3             0x7000
+  5c30    2         16           0       7             3             0x7000
+  5c30    2         16           1       0             3             0x0710
+  5c30    2         16           1       1             3             0x0710
+  5c30    2         16           1       2             3             0x0710
+  5c30    2         16           1       3             3             0x0710
+  5c30    2         16           1       4             3             0x0710
+  5c30    2         16           1       5             3             0x0710
+  5c30    2         16           1       6             3             0x0710
+  5c30    2         16           1       7             3             0x0710
+  5c30    2         16           2       0             3             0x0710
+  5c30    2         16           2       1             3             0x0710
+  5c30    2         16           2       2             3             0x0710
+  5c30    2         16           2       3             3             0x0710
+  5c30    2         16           2       4             3             0x0710
+  5c30    2         16           2       5             3             0x0710
+  5c30    2         16           2       6             3             0x0710
+  5c30    2         16           2       7             3             0x0710
+  5c30    2         16           3       0             3             0x0710
+  5c30    2         16           3       1             3             0x0710
+  5c30    2         16           3       2             3             0x0710
+  5c30    2         16           3       3             3             0x0710
+  5c30    2         16           3       4             3             0x0710
+  5c30    2         16           3       5             3             0x0710
+  5c30    2         16           3       6             3             0x0710
+  5c30    2         16           3       7             3             0x0710
+  5c30    2         16           4       0             3             0x0710
+  5c30    2         16           4       1             3             0x0710
+  5c30    2         16           4       2             3             0x0710
+  5c30    2         16           4       3             3             0x0710
+  5c30    2         16           4       4             3             0x0710
+  5c30    2         16           4       5             3             0x0710
+  5c30    2         16           4       6             3             0x0710
+  5c30    2         16           4       7             3             0x0710
+  5c30    2         16           5       0             3             0x0710
+  5c30    2         16           5       1             3             0x0710
+  5c30    2         16           5       2             3             0x0710
+  5c30    2         16           5       3             3             0x0710
+  5c30    2         16           5       4             3             0x0710
+  5c30    2         16           5       5             3             0x0710
+  5c30    2         16           5       6             3             0x0710
+  5c30    2         16           5       7             3             0x0710
+  5c30    2         16           6       0             3             0x0710
+  5c30    2         16           6       1             3             0x0710
+  5c30    2         16           6       2             3             0x0710
+  5c30    2         16           6       3             3             0x0710
+  5c30    2         16           6       4             3             0x0710
+  5c30    2         16           6       5             3             0x0710
+  5c30    2         16           6       6             3             0x0710
+  5c30    2         16           6       7             3             0x0710
+  5c30    2         16           7       0             3             0x0710
+  5c30    2         16           7       1             3             0x0710
+  5c30    2         16           7       2             3             0x0710
+  5c30    2         16           7       3             3             0x0710
+  5c30    2         16           7       4             3             0x0710
+  5c30    2         16           7       5             3             0x0710
+  5c30    2         16           7       6             3             0x0710
+  5c30    2         16           7       7             3             0x0710
+  5c30    2         16           8       0             3             0x0710
+  5c30    2         16           8       1             3             0x0710
+  5c30    2         16           8       2             3             0x0710
+  5c30    2         16           8       3             3             0x0710
+  5c30    2         16           8       4             3             0x0710
+  5c30    2         16           8       5             3             0x0710
+  5c30    2         16           8       6             3             0x0710
+  5c30    2         16           8       7             3             0x0710
+  5c30    2         16           9       0             3             0x0710
+  5c30    2         16           9       1             3             0x0710
+  5c30    2         16           9       2             3             0x0710
+  5c30    2         16           9       3             3             0x0710
+  5c30    2         16           9       4             3             0x0710
+  5c30    2         16           9       5             3             0x0710
+  5c30    2         16           9       6             3             0x0710
+  5c30    2         16           9       7             3             0x0710
+  5c30    2         16           10      0             3             0x0710
+  5c30    2         16           10      1             3             0x0710
+  5c30    2         16           10      2             3             0x0710
+  5c30    2         16           10      3             3             0x0710
+  5c30    2         16           10      4             3             0x0710
+  5c30    2         16           10      5             3             0x0710
+  5c30    2         16           10      6             3             0x0710
+  5c30    2         16           10      7             3             0x0710
+  5c30    2         16           11      0             3             0x0710
+  5c30    2         16           11      1             3             0x0710
+  5c30    2         16           11      2             3             0x0710
+  5c30    2         16           11      3             3             0x0710
+  5c30    2         16           11      4             3             0x0710
+  5c30    2         16           11      5             3             0x0710
+  5c30    2         16           11      6             3             0x0710
+  5c30    2         16           11      7             3             0x0710
+  5c30    2         16           12      0             3             0x0710
+  5c30    2         16           12      1             3             0x0710
+  5c30    2         16           12      2             3             0x0710
+  5c30    2         16           12      3             3             0x0710
+  5c30    2         16           12      4             3             0x0710
+  5c30    2         16           12      5             3             0x0710
+  5c30    2         16           12      6             3             0x0710
+  5c30    2         16           12      7             3             0x0710
+  5c30    2         16           13      0             3             0x0710
+  5c30    2         16           13      1             3             0x0710
+  5c30    2         16           13      2             3             0x0710
+  5c30    2         16           13      3             3             0x0710
+  5c30    2         16           13      4             3             0x0710
+  5c30    2         16           13      5             3             0x0710
+  5c30    2         16           13      6             3             0x0710
+  5c30    2         16           13      7             3             0x0710
+  5c30    2         16           14      0             3             0x0710
+  5c30    2         16           14      1             3             0x0710
+  5c30    2         16           14      2             3             0x0710
+  5c30    2         16           14      3             3             0x0710
+  5c30    2         16           14      4             3             0x0710
+  5c30    2         16           14      5             3             0x0710
+  5c30    2         16           14      6             3             0x0710
+  5c30    2         16           14      7             3             0x0710
+  5c30    2         16           15      0             3             0x0710
+  5c30    2         16           15      1             3             0x0710
+  5c30    2         16           15      2             3             0x0710
+  5c30    2         16           15      3             3             0x0710
+  5c30    2         16           15      4             3             0x0710
+  5c30    2         16           15      5             3             0x0710
+  5c30    2         16           15      6             3             0x0710
+  5c30    2         16           15      7             3             0x0710
diff --git a/trg/dump_register_triggerbox.sh b/trg/dump_register_triggerbox.sh
new file mode 100644 (file)
index 0000000..390721a
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+for i in {40960..41471}; do echo "trbcmd w" $i  `trbcmd r 0xfe69 $i 2>/dev/null` | awk '{print $1,$2,$4,$3,$5}' | grep -v "  " >> trigger.cmd; done;
diff --git a/trg/startup.script b/trg/startup.script
new file mode 100644 (file)
index 0000000..e69de29