+++ /dev/null
-#!/bin/bash
-
-# notifyall.sh "DAQ" "<I> Eventbuilders are being restarted." "EB" &
-
-ssh -X hadaq@lxhadesdaq "
- xterm -geometry 80x24 -bg orange -fg black -e bash -c '
- echo "Starting Eventbuilders with 9 BNET builder nodes"
- cd ~/trbsoft/hadesdaq/evtbuild/
- ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 9
- sleep 2
- '
- "
-
-/home/hadaq/trbsoft/hadesdaq/utils/notifyall.sh "DAQ" "<I> Eventbuilders have been restarted using 9 BNET builder nodes" "EB" &
-
cd /home/hadaq/JoF/HV_RICH/
. epics
./setCrate.sh 1
- ./setHV.sh gain_alignement_HV_1.5E+06.dat
- ./setHVon_off.sh gain_alignement_HV_1.5E+06.dat 2
+ ./setHV.sh gain_alignement_HV_1.5E+06_fifth.dat
+# ./setHV.sh gain_alignement_HV_1.5E+06.dat
+# ./setHV.sh gain_alignement_HV_2.0E+06.dat
+ ./setHVon_off.sh gain_alignement_HV_1.5E+06_fifth.dat 2
+# ./setHVon_off.sh gain_alignement_HV_1.5E+06.dat 2
+# ./setHVon_off.sh gain_alignement_HV_2.0E+06.dat 2
echo \"Done\"
sleep 10
"
source ./setLD
#./HADESthreshscan_v1
#./HADESthreshscan_v1 --loading-file /home/hadaq/trbsoft/daqtools/thresholds/threshold_wuppertal/trb_dirich_threshold/standard_baselines.thr -l 0 -n 0 5
- ./HADESthreshscan_v1 --loading-file /home/hadaq/trbsoft/daqtools/thresholds/threshold_wuppertal/trb_dirich_threshold/standard_baselines.thr -l 0 -t 0 50
+ ./HADESthreshscan_v1 --loading-file /home/hadaq/trbsoft/daqtools/thresholds/threshold_wuppertal/trb_dirich_threshold/threshold_files/standard_baselines.thr -l 0 -t 0 50
echo \"Done\"
sleep 10
"
0x8a04 1 0x00000015 0x00015400
0x8a05 1 0x00000000 0x00015400
#left half of crate on output 1, right half on output 2
-
- 0x0100 0 0x00007c7c 0x00007c7c 0x00000000 0x00000000 0x00000000 0x00007c7c 0x00000000 0x00000000 0x00000000
+
+
+ 0x0100 0 0x00007c7c 0x00007c7c 0x00000000 0x00000000 0x00000000 0x00007e7e 0x00000000 0x00000000 0x00000000
#1..6: output 1, #9..14 output 2
0x0100 2 0x00007c7c 0x00020000 0x00000200
-eb_bnet_ltsm.conf
\ No newline at end of file
+eb_bnet_ltsm_newservers.conf
\ No newline at end of file
# LTSM default options for all EB processes
-LTSM_PATH: /lustre/hebe/hades/raw/jul18/default/tsm
+LTSM_PATH: /lustre/hebe/hades/raw/mar19/default/tsm
#LTSM_Server: lxltsm01-tsm-server
LTSM_Server: lxltsm01
-start_eb_gbe_oldservers.pl
\ No newline at end of file
+start_eb_gbe_newservers.pl
\ No newline at end of file
}
}
-
+ # alternative setup: specifiy cpu bitmasks for different roles:
+
+ $EB_CPU_status_href->{'192.168.100.15'}->{'input'} = "2-23";
+ $EB_CPU_status_href->{'192.168.100.15'}->{'build'} = "2-23";
+
+ # JAM12-2018: reserve lower 32 cpus for network interrupts
+ $EB_CPU_status_href->{'192.168.100.8'}->{'input'} = "32-47";
+ $EB_CPU_status_href->{'192.168.100.8'}->{'build'} = "48-63";
+ $EB_CPU_status_href->{'192.168.100.9'}->{'input'} = "32-47";
+ $EB_CPU_status_href->{'192.168.100.9'}->{'build'} = "48-63";
+ $EB_CPU_status_href->{'192.168.100.10'}->{'input'} = "32-47";
+ $EB_CPU_status_href->{'192.168.100.10'}->{'build'} = "48-63";
+ $EB_CPU_status_href->{'192.168.105.11'}->{'input'} = "32-47";
+ $EB_CPU_status_href->{'192.168.105.11'}->{'build'} = "48-63";
+ $EB_CPU_status_href->{'192.168.105.12'}->{'input'} = "32-47";
+ $EB_CPU_status_href->{'192.168.105.12'}->{'build'} = "48-63";
+
}
+
sub getCoreNr()
{
- my ($ip) = @_;
-
+ #my ($ip) = @_;
+ my ($ip, $role) = @_;
my $core_nr;
+ if(defined $role)
+ {
+
+ $core_nr = $EB_CPU_status_href->{$ip}->{$role}
+
+ }
+ else
+ {
+ ################### begin old
foreach my $eb_ip (sort keys %$EB_CPU_status_href){
next unless($ip eq $eb_ip);
}
}
}
-
+
+################### end old
+}
unless( defined $core_nr ){
print "No free cores left on CPU $ip. Exit.\n";
exit(0);
}
+ print "found core numbers $core_nr for node $ip, role $role\n";
return $core_nr;
}
+
+
+
sub setArgs()
{
my @active_EBs;
&isFileDefined($fh, $file);
my $SPACE = "";
-
+
+ # this one contains list of deactivated data sources
+ my $log="/home/hadaq/trbsoft/hadesdaq/evtbuild/tmp/EB_NotActiveSources.txt";
+ system("truncate -s 0 $log ;");
while(<$fh>){
#- Remove all comments
my ($addr, $astat, $sys, $size) = split(" ", $_);
- next if($astat == 0);
-
+ if($astat == 0){
+ system("echo $addr >> $log 2>&1;");
+ next;
+ }
push( @{$activeSources_href->{'addr_list'}}, $addr);
push( @{$activeSources_href->{'bufsize_list'}}, &getBufSize($size));
}
# }
#
## after upgrade to debian 7: ethernet reserved cores are below 6
- foreach my $core (0..11){
- if(($core < 6) ){
- $EB_CPU_status_href->{'192.168.100.12'}->{$core} = "res"; #reserved
- $EB_CPU_status_href->{'192.168.100.13'}->{$core} = "res"; #reserved
- $EB_CPU_status_href->{'192.168.100.14'}->{$core} = "res"; #reserved
- }
- else{
- $EB_CPU_status_href->{'192.168.100.12'}->{$core} = "free";
- $EB_CPU_status_href->{'192.168.100.13'}->{$core} = "free";
- $EB_CPU_status_href->{'192.168.100.14'}->{$core} = "free";
-
- }
- }
+# foreach my $core (0..11){
+# if(($core < 6) ){
+# $EB_CPU_status_href->{'192.168.100.12'}->{$core} = "res"; #reserved
+# $EB_CPU_status_href->{'192.168.100.13'}->{$core} = "res"; #reserved
+# $EB_CPU_status_href->{'192.168.100.14'}->{$core} = "res"; #reserved
+# }
+# else{
+# $EB_CPU_status_href->{'192.168.100.12'}->{$core} = "free";
+# $EB_CPU_status_href->{'192.168.100.13'}->{$core} = "free";
+# $EB_CPU_status_href->{'192.168.100.14'}->{$core} = "free";
+#
+# }
+# }
# eth0 ir is set above core 11
foreach my $core (0..23){
# add cores for new EB servers JAM2018
foreach my $core (0..63){
- if( ($core < 2) ||( $core > 60) ){
+ # if( ($core < 2) ||( $core > 60) ){
+ # JAM2018: we only want cores of the lower half with common memory access for input nodes
+ if( ( $core > 31) ){
$EB_CPU_status_href->{'192.168.100.8'}->{$core} = "res"; #reserved
$EB_CPU_status_href->{'192.168.100.9'}->{$core} = "res"; #reserved
$EB_CPU_status_href->{'192.168.100.10'}->{$core} = "res"; #reserved
}
}
+ # alternative setup: specifiy cpu bitmasks for different roles:
+
+ $EB_CPU_status_href->{'192.168.100.15'}->{'input'} = "0-23";
+ $EB_CPU_status_href->{'192.168.100.15'}->{'build'} = "0-23";
+
+ # JAM12-2018: reserve lower 32 cpus for network interrupts, ebs use only upper half
+ $EB_CPU_status_href->{'192.168.100.8'}->{'input'} = "32-47";
+ $EB_CPU_status_href->{'192.168.100.8'}->{'build'} = "48-63";
+ $EB_CPU_status_href->{'192.168.100.9'}->{'input'} = "32-47";
+ $EB_CPU_status_href->{'192.168.100.9'}->{'build'} = "48-63";
+ $EB_CPU_status_href->{'192.168.100.10'}->{'input'} = "32-47"; #"32-55"; #0-31
+ $EB_CPU_status_href->{'192.168.100.10'}->{'build'} = "48-63"; # 32-63
+
}
sub getCoreNr()
{
- my ($ip) = @_;
-
+ #my ($ip) = @_;
+ my ($ip, $role) = @_;
my $core_nr;
+ if(defined $role)
+ {
+
+ $core_nr = $EB_CPU_status_href->{$ip}->{$role}
+
+ }
+ else
+ {
+ ################### begin old
foreach my $eb_ip (sort keys %$EB_CPU_status_href){
next unless($ip eq $eb_ip);
}
}
}
-
+
+################### end old
+}
unless( defined $core_nr ){
print "No free cores left on CPU $ip. Exit.\n";
exit(0);
}
+ print "found core numbers $core_nr for node $ip, role $role\n";
return $core_nr;
}
# todo: how to configure situation with more than one bnet input per node? hadaqports must be distributed on them...
#
- #my $core_nr = &getCoreNr($cpu) . "," . &getCoreNr($cpu);
+ # my $core_nr = &getCoreNr($cpu) . "," . &getCoreNr($cpu);
# my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports taskset -c $core_nr $cmd_dabc $conf_bnet_inp 1</dev/null &\"";
- my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports $cmd_dabc $conf_bnet_inp >senderlog_$cpu.log 2>&1 &\"";
+ my $core_nr = &getCoreNr($cpu, 'input');
+ # my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports $cmd_dabc $conf_bnet_inp >senderlog_$cpu.log 2>&1 &\"";
+ #my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports taskset -c 0-23 $cmd_dabc $conf_bnet_inp >senderlog_$cpu.log 2>&1 &\"";
+ my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports taskset -c $core_nr $cmd_dabc $conf_bnet_inp >senderlog_$cpu.log 2>&1 &\"";
my $log = $log_path . "/log_" . $ebserver . "_" . "startBnetInp_". $sender. ".txt";
}
#my $core_nr = &getCoreNr($cpu) . "," . &getCoreNr($cpu);
-
+ my $core_nr = &getCoreNr($cpu, 'build');
#my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports taskset -c $core_nr $cmd_dabc $conf_bnet_bld 1</dev/null &\"";
- my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports $cmd_dabc $conf_bnet_bld >builderlog_$cpu.log 2>&1 &\"";
+ #my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports $cmd_dabc $conf_bnet_bld >builderlog_$cpu.log 2>&1 &\"";
+ my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports taskset -c $core_nr $cmd_dabc $conf_bnet_bld >builderlog_$cpu.log 2>&1 &\"";
my $log = $log_path . "/log_" . $ebserver . "_" . "startBnetBld_". $builder . ".txt";
&isFileDefined($fh, $file);
my $SPACE = "";
-
+
+ # this one contains list of deactivated data sources
+ my $log="/home/hadaq/trbsoft/hadesdaq/evtbuild/tmp/EB_NotActiveSources.txt";
+ system("truncate -s 0 $log ;");
while(<$fh>){
#- Remove all comments
my ($addr, $astat, $sys, $size) = split(" ", $_);
- next if($astat == 0);
+ if($astat == 0){
+ system("echo $addr >> $log 2>&1;");
+ next;
+ }
+
push( @{$activeSources_href->{'addr_list'}}, $addr);
push( @{$activeSources_href->{'bufsize_list'}}, &getBufSize($size));
trbcmd r 0x003 0xa0c7 > /home/hadaq/tmp/precalibctsregs.txt 2> /home/hadaq/tmp/precalibctserr.txt ;
echo disabled output mask: `cat /home/hadaq/tmp/precalibctsregs.txt`;
trbcmd w 0x003 0xa0c7 0;
- trbcmd setbit 0x003 0xa0c0 0x1D;
+ trbcmd clearbit 0x003 0xa0c0 0x1F;
+ trbcmd setbit 0x003 0xa0c0 0x1D;
trbcmd w 0x003 0xa0e3 0x1E8480;
echo Setting file prefix tc;
/usr/bin/wget -a /tmp/EB_filestart.log -O /tmp/EB_fileres.txt "http://lxhadeb07:8099/Master/BNET/StartRun/execute?prefix=tc&oninit=10";
];
# Order of entries in each cat
-$entries->{'main'} = ['time', 'rate','onlineqa','up','speech'];
+$entries->{'main'} = ['time', 'rate','onlineqa','up',''];
$entries->{'daq'} = ['trbnet', 'timeouts', 'busy','readout','spillcount'];
$entries->{'trg'} = ['spill', 'accepted', 'source','pt1rate', 'start']; #,
$entries->{'rate'} = ['pt1','start','hodo','pion1','pion2'];
+++ /dev/null
-<h3>Magnet</h3>
-<p>
-This button shows the status of the Magnet systems.
-</p>
-<h4>Error Handling in case it is not <font color="gree">Green</font> for > 2 min.</h4>
-
-<p>The script might show red precisely at midnight due to change of logfiles. Don't worry in this case.
-
-Call <b>Torsten Heinz</b> (mobile: 0175 388 4066 or home: 06162 982292 or work: 2781<br>
-and <b>Wolfgang Koenig</b> (mobile: 0172 877 50 49 or home: 06071 35998 or work: 2720)!
-
-
-<p>If no ssh connection to the magnet PC is possible (hadesp28), check if the machine is still running (upstairs, next to cryo)
-
-
-
-
-
+++ /dev/null
-<h3>EPICS HV Sequencer</h3>
-
-<p>Some high voltage control is not working any more. Please inform the MDC operator before taking any action.
-<h4>Error Handling</h4>
-<p>Click the 'Restart Sequencer' button in the control window or run on lxhadeb06:
-<br><pre>ssh scs@lxhadeb06 'echo -en "\x18" | netcat -w 1 localhost 4813</pre>
-<br>Restarting might take a minute until the button is green again.
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<title>Tactical Overview Documentation</title>
-<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
-
-<link href="../files/indexstyles.css" rel="stylesheet" type="text/css"/>
-</head>
-<body class=index>
-<div class="button" style="right:-8px;" onclick="history.back();"> back </div>
-<h1>Restart EB Guideline</h1>
-<h2>In case EB has to be restarted</h2>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<h3>PT3 Rate</h3>
-<p>
-This button shows the triggered high multiplicity events per second compared to the countrate in the Start-detector.
-The second number should be around 0.7% during beam time since the interaction rate is around 1%. The first value is the rate
-of PT3 triggers provided to the CTS.
-<br>
-If something goes wrong, ask your shift leader.
-
-
my $lasttime = 0;
my $store = {};
- my @out = qx(ssh lxhadesdaq cat /home/hadeslog/messages | grep 'Endp 0x\\w\\w\\w\\w missing' | grep -v 2006 | grep -v 2022 | grep -v 2358);
+ my @out = qx(ssh lxhadesdaq cat /home/hadeslog/messages | grep 'Endp 0x\\w\\w\\w\\w .* missing');
foreach my $s ( @out) {
- my ($h,$m,$s,$id_0,$id_1,$id_2) = $s =~ m/(\d\d):(\d\d):(\d\d) .* Endp 0x2(\w)(\w)(\w) missing/;
+ my ($h,$m,$s,$id_0,$id_1,$id_2) = $s =~ m/(\d\d):(\d\d):(\d\d) .* Endp 0x2(\w)(\w)(\w) .* missing/;
my $time = ($h||0)*3600+($m||0)*60+($s||0);
if(defined $id_0 && defined $id_1 && defined $id_2 && $time>$lasttime+70) {
$id_2 = hex($id_2);
sub getCorrected {
my ($val,$cor) = @_;
+ $cor //= 0;
+ $val //= 0;
my $value = max($val-$cor,0);
if ($value < $cor/20) {$value = 0;}
return QA::SciNotation($value);
use strict;
use POSIX qw(strftime);
use Data::Dumper;
+use LWP::Simple;
+
my $header = qq@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
my $footer = "</div></body></html>";
while(1) {
- my $time = strftime("%Y%m%d%H%M",localtime());
-# my $time = "201204111356";
+ my $filetype = get("http://lxhadeb07:8099/Master/BNET/RunPrefix/get.json?field=%22value%22");
+ if ($filetype =~ /be/ || $filetype =~ /co/) {
- system("mkdir /home/hadaq/trbsoft/daq/hmon/archive/$time");
- system("cp /home/hadaq/trbsoft/daq/hmon/files/*.htt /home/hadaq/trbsoft/daq/hmon/files/*.png /home/hadaq/trbsoft/daq/hmon/archive/$time");
- system("mkdir /home/hadaq/trbsoft/daq/hmon/archive/$time/files");
- system("mv /home/hadaq/trbsoft/daq/hmon/archive/$time/*.png /home/hadaq/trbsoft/daq/hmon/archive/$time/files/");
-
- my @files = qx(ls /home/hadaq/trbsoft/daq/hmon/archive/$time/*.htt);
- foreach my $f (@files) {
- my @n = split('/',$f);
- my $newf = $n[-1];
- chop $n[-1];
- chop $newf;chop $newf;
- $newf .='m';
-# print $newf."\n";
- my $fh;
- open($fh,'>',"/home/hadaq/trbsoft/daq/hmon/archive/$time/$newf");
- print $fh $header;
- my @g = qx(cat /home/hadaq/trbsoft/daq/hmon/archive/$time/$n[-1]);
- foreach my $h (@g) {
- if($h =~ m!^(.*)\%ADDPNG\s+(.+)\%(.*)$!) {
- print $fh $1.$2.$3;
- }
- else {
- print $fh $h;
+
+ my $time = strftime("%Y%m%d%H%M",localtime());
+ # my $time = "201204111356";
+
+ system("mkdir /home/hadaq/trbsoft/daq/hmon/archive/$time");
+ system("cp /home/hadaq/trbsoft/daq/hmon/files/*.htt /home/hadaq/trbsoft/daq/hmon/files/*.png /home/hadaq/trbsoft/daq/hmon/archive/$time");
+ system("mkdir /home/hadaq/trbsoft/daq/hmon/archive/$time/files");
+ system("mv /home/hadaq/trbsoft/daq/hmon/archive/$time/*.png /home/hadaq/trbsoft/daq/hmon/archive/$time/files/");
+
+ my @files = qx(ls /home/hadaq/trbsoft/daq/hmon/archive/$time/*.htt);
+ foreach my $f (@files) {
+ my @n = split('/',$f);
+ my $newf = $n[-1];
+ chop $n[-1];
+ chop $newf;chop $newf;
+ $newf .='m';
+ # print $newf."\n";
+ my $fh;
+ open($fh,'>',"/home/hadaq/trbsoft/daq/hmon/archive/$time/$newf");
+ print $fh $header;
+ my @g = qx(cat /home/hadaq/trbsoft/daq/hmon/archive/$time/$n[-1]);
+ foreach my $h (@g) {
+ if($h =~ m!^(.*)\%ADDPNG\s+(.+)\%(.*)$!) {
+ print $fh $1.$2.$3;
+ }
+ else {
+ print $fh $h;
+ }
}
+
+
+
+ print $fh $footer;
+ close($fh);
+
}
-
-
-
- print $fh $footer;
- close($fh);
-
+ system("mv /home/hadaq/trbsoft/daq/hmon/archive/$time/*.htt /home/hadaq/trbsoft/daq/hmon/archive/$time/files/");
}
- system("mv /home/hadaq/trbsoft/daq/hmon/archive/$time/*.htt /home/hadaq/trbsoft/daq/hmon/archive/$time/files/");
-
sleep(590);
}
while(1) {
- my $out = Hmon::MakeTitle(6,7,"Last *.hld files");
+ my $out = Hmon::MakeTitle(5,8,"Last *.hld files");
$out .= "<pre style='text-align:left'> ";
- foreach my $i (8,9,10,5) {
+ foreach my $i (8,9,10,11) {
my $server = sprintf("lxhadeb%02i",$i);
- $out .= "$server\n";
+ $out .= "<b>$server</b>\n";
my $cmd = "ssh $server \"ls -rtlh /data*/data/*.hld | tail -n4\"";
my @a = qx($cmd);
foreach my $s (@a) {
Hmon::WriteFile("hldlast",$out);
sleep(10);
- }
\ No newline at end of file
+ }
my @n = split('/',$files[$i]);
chop $n[-1];
my ($y,$d,$h,$m,$s) = $n[-1] =~ /.*_(\d\d)(\d\d\d)(\d\d)(\d\d)(\d\d)_.*/;
+ map {$_//=0;} ($y,$d,$h,$m,$s);
$out .= qq@20$y-$d $h:$m:$s<br><div class=\"linkbox\" style=\"width:567px\"><img src="../vertex/$n[-1]" style="padding:10px;background:white;"></div>@;
}
my @n = split('/',$files2[$i]);
chop $n[-1];
my ($y1,$d1,$h1,$m1,$s1,$y2,$d2,$h2,$m2,$s2) = $n[-1] =~ /.*_(\d\d)(\d\d\d)(\d\d)(\d\d)(\d\d)-[\w-][\w-](\d\d)(\d\d\d)(\d\d)(\d\d)(\d\d).*/;
+ map {$_//=0;} ($y1,$d1,$h1,$m1,$s1,$y2,$d2,$h2,$m2,$s2);
+
$out .= qq@20$y1-$d1 $h1:$m1:$s1 - $h2:$m2:$s2<br><div class=\"linkbox\" style=\"width:567px\"><img src="../vertex/$n[-1]" style="padding:11px 10px;background:white;"></div>\n@;
}
-register_configgbe_ip_oldservers.db
\ No newline at end of file
+register_configgbe_ip_newservers.db
\ No newline at end of file
#lxhadebXX, EB15 XX
0x8000 0 0xc65B 0xdead8000 0xc0a86480 0xc65B 0xc0a86408 0 # OLD cts -lxhadeb08
0x8100 0 0xc651 0xdead8100 0xc0a86481 0xc651 0xc0a86408 0 # OLD mdc old? lxhadeb08
- 0x8110 0 0xc652 0xdead8110 0xc0a86482 0xc652 0xc0a86408 0 # OLD mdc old lxhadeb08
+# 0x8110 0 0xc652 0xdead8110 0xc0a86482 0xc652 0xc0a8690b 0 # OLD mdc old lxhadeb11
0x8400 0 0xc656 0xdead8400 0xc0a864AF 0xc67F 0xc0a8640a 0 # rpc lxhadeb10
0x8410 0 0xc657 0xdead8410 0xc0a864AF 0xc67F 0xc0a8640a 0 # rpc lxhadeb10
0x8420 0 0xc658 0xdead8420 0xc0a86488 0xc658 0xc0a8690b 0 # OLD rpc old lxhadeb11
# 0xff7f 100 0xbaf79bb5 0x90e2 0xc0a86408 0x0230 0x0578 #lxhadeb08 EB0 90:e2:ba:f7:9b:b5 192.168.100.8
# JAM 27-apr-2018: for DABC-BNET (Type 100) the destination ips have to be set here for individual hubs
# the ip entries in above table for eb1 needs to match this to configure EBs!
+ # 0xff7f 100 0x2157b095 0x001B 0xc0a8640f 0x0230 0x0578 #dummies to lxhadeb05, EB3 00:1b:21:57:b0:95 192.168.100.15
+#
0x8000 100 0xbaf79bb5 0x90e2 0xc0a86408 0x0230 0x0578 # OLD old cts -lxhadeb08 ####
0x8100 100 0xbaf79bb5 0x90e2 0xc0a86408 0x0230 0x0578 # OLD mdc old? lxhadeb08
- 0x8110 100 0x6b662a29 0xac1f 0xc0a8690b 0x0230 0x0578 # OLD mdc old lxhadeb11
+# 0x8110 100 0x6b662a29 0xac1f 0xc0a8690b 0x0230 0x0578 # OLD mdc old lxhadeb11
0x8400 100 0xbae2c995 0x90e2 0xc0a8640a 0x0230 0x0578 # rpc lxhadeb10
0x8410 100 0xbae2c995 0x90e2 0xc0a8640a 0x0230 0x0578 # rpc lxhadeb10
0x8420 100 0x6b662a29 0xac1f 0xc0a8690b 0x0230 0x0578 # OLD rpc old lxhadeb11 ######
0x8410 1 RPC456 mid
0x8600 1 TOF low
0x8700 1 FW low
-0x8880 1 StartTRB3 low
-0x8890 0 VetoTRB3 low5t
-0x8900 0 Pion1 mid
-0x8910 0 Pion2 mid
+0x8880 0 StartTRB3 low
+#0x8890 0 VetoTRB3 low5t
+#0x8900 0 Pion1 mid
+#0x8910 0 Pion2 mid
0x1000 1 MDC12sec1 high
0x1010 1 MDC12sec2 high
-0x1020 1 MDC12sec3 mid
-0x1030 1 MDC12sec4 mid
+0x1020 1 MDC12sec3 high
+0x1030 1 MDC12sec4 high
0x1040 1 MDC12sec5 high
0x1050 1 MDC12sec6 high
0x1100 1 MDC34sec1 high
0x8a03 1 ECal3 mid
0x8a04 1 ECal4 mid
0x8a05 1 ECal5 mid
-0x83c0 1 RICH0 mid
-0x83c1 1 RICH1 mid
-0x83c2 1 RICH2 mid
-0x83c3 1 RICH3 mid
-0x83c4 1 RICH4 mid
-0x83c5 1 RICH5 mid
-0x83c6 1 RICH6 mid
-0x83c7 1 RICH7 mid
-0x83c8 1 RICH8 mid
-0x83c9 1 RICH9 mid
-0x83ca 1 RICHa mid
-0x83cb 1 RICHb mid
+0x83c0 0 RICH0 mid
+0x83c1 0 RICH1 mid
+0x83c2 0 RICH2 mid
+0x83c3 0 RICH3 mid
+0x83c4 0 RICH4 mid
+0x83c5 0 RICH5 mid
+0x83c6 0 RICH6 mid
+0x83c7 0 RICH7 mid
+0x83c8 0 RICH8 mid
+0x83c9 0 RICH9 mid
+0x83ca 0 RICHa mid
+0x83cb 0 RICHb mid
# ./restartEB.sh >/dev/null 2>/dev/null &
# JAM 29-06-2018 instead restarting, just close run, drop buffers and reopen the file below:
+
+# JAM 23-01-2019: get last run prefix from bnet master:
+if [ ! -f "/tmp/EB_prefix.txt" ]
+then
+/usr/bin/wget -a /tmp/EB_restart.log -O /tmp/EB_prefix.txt "http://lxhadeb07:8099/Master/BNET/RunPrefix/value/get.json"
+fi
+prefix="$(/bin/cat /tmp/EB_prefix.txt)"
+echo " <EB> DAQ restart: Found previous prefix $prefix";
+
+
echo " <EB> DAQ restart: Closing file run";
/usr/bin/wget -a /tmp/EB_restart.log -O /tmp/EB_fileres.txt "http://lxhadeb07:8099/Master/BNET/StopRun/execute"
-
+#echo " <EB> DAQ restart: Resetting Eventbuilder buffers...";
+#/usr/bin/wget -a /tmp/EB_restart.log -O /tmp/EB_fileres.txt "http://lxhadeb07:8099/Master/BNET/ResetDAQ/execute"
scp /home/hadaq/oper/daq2ora/daq2ora_current.txt hadesp33:/home/hadaq/trbsoft/hadesdaq/hmon/files/ 1>/dev/null &
# JAM 29-06-2018 instead restarting, just drop buffers and reopen the most recent file type:
-echo " <EB> DAQ restart: Resetting Eventbuilder buffers, restarting file run";
+echo " <EB> DAQ restart: Resetting Eventbuilder buffers...";
/usr/bin/wget -a /tmp/EB_restart.log -O /tmp/EB_fileres.txt "http://lxhadeb07:8099/Master/BNET/ResetDAQ/execute"
-/usr/bin/wget -a /tmp/EB_restart.log -O /tmp/EB_fileres.txt "http://lxhadeb07:8099/Master/BNET/StartRun/execute"
-
+echo " <EB> DAQ restart: Restarting file run with prefix $prefix";
+/usr/bin/wget -a /tmp/EB_restart.log -O /tmp/EB_fileres.txt "http://lxhadeb07:8099/Master/BNET/StartRun/execute?prefix=$prefix"
+
+rm /tmp/EB_prefix.txt
#Start-up finished
notifyall.sh "DAQ" "<N> DAQ has been started." "STARTUP" &
0x234a 283 1 12 0
0x234b 474 1 12 0 #AT (29.06.11) exchange OEPB 279->092 // 14.02.12 092->474
0x234c 488 1 12 0 ## 30.8.2018 OEP switch with 0x2154 due to many faults there, (old #197 now at 0x2154)
-0x234d 189 1 12 0
-0x234e 190 1 12 0
-0x234f 191 1 12 0
+0x234d 092 1 12 0 ## 11.1.2019 OEP exchange, old 189
+0x234e 133 1 12 0 ## 11.1.2019 OEP exchange, old 190
+0x234f 232 1 12 0 ## 11.1.2019 OEP exchange, old 191
###################################################
0x2350 210 1 12 0 #AT 20110518 was 143, now 210
0x2351 091 1 12 0
-register/register_interface_tdcreg0_P1sr18_P2sr13s3458_P34sr23.db
\ No newline at end of file
+register/register_interface_tdcreg0_all_spikerejp12-18ns-34-23ns.db
\ No newline at end of file
Hmon::TraceDBLoad();
trb_init_ports() or die trb_strerror();
-# print "WARNING: This script is not yet tested, but might already be working... \n";
+print "WARNING: This script is not yet tested, but might already be working... \n";
# my $dummy = <STDIN>;
my $msg = "";
DiRich 106 ce00000a49003f28 7292
DiRich 107 8400000a48e26928 7732
DiRich 108 b000000a4907ea28 7285
+ DiRich 109 8700000a4907eb28 7a05
DiRich 110 fd00000a49400e28 7141
DiRich 111 5200000a495c5a28 7485
DiRich 112 8100000a495bed28 7174
DiRich 134 5300000a48b56728 7446
DiRich 136 d800000a49dfa628 7a15
DiRich 139 6000000a52013528 7932
- DiRich 140 9600000a52636828 7382
DiRich 142 5600000a48b0b928 7024
DiRich 143 c300000a48e4dd28 7015
DiRich 144 3c00000a5204e828 7014
DiRich 207 2900000a494df328 7632
DiRich 209 6200000a49eb0a28 7432
DiRich 212 8900000a49eb0f28 7533
+ DiRich 213 e600000a48abc628 7875
DiRich 214 5100000a48e3bd28 7422
DiRich 215 4c00000a48e3ca28 7633
DiRich 216 3f00000a48dda328 7643
DiRich 334 aa00000a496b9c28 7234
DiRich 335 3800000a49380728 7434
DiRich 336 e300000a4938b328 7345
+ DiRich 337 bd00000a49380028 7a07
DiRich 339 ba00000a48bbef28 7514
DiRich 342 bf00000a49c34828 7610
DiRich 343 8d00000a48b57028 7915
DiRich 350 2c00000a497dd228 7110
DiRich 352 7a00000a49855d28 7121
DiRich 353 6d00000a49857528 7417
+ DiRich 354 8300000a49084a28 70a2
DiRich 356 2200000a4907c528 7132
DiRich 357 1400000a49785228 7a31
DiRich 359 7300000a49091428 7483
DiRich 361 2e00000a488f1328 7525
DiRich 363 3f00000a488f0e28 7425
DiRich 364 5000000a48919e28 7373
+ DiRich 365 6b00000a49784d28 7874
DiRich 366 9800000a49789c28 7593
DiRich 367 7500000a4978ac28 7414
DiRich 369 4d00000a496aea28 7693
DiRich 490 bb00000a48e9c728 70b1
DiRich 491 d900000a48b59c28 70b7
DiRich 492 4200000a49dcee28 7a02
+ DiRich 493 8200000a49dd0128 70a5
DiRich 494 af00000a4982df28 7b27
DiRich 495 c500000a49dcfa28 7b34
DiRich 496 6300000a49824328 7b35
DiRich 516 1000000a488fdb28 7b17
DiRich 518 6b00000a488fe228 72a4
DiRich 519 8900000a49279928 7296
+ DiRich 520 c300000a49279428 7775
DiRich 521 f700000a48c44128 7061
DiRich 524 0700000a49dd0628 73a5
DiRich 525 cc00000a49dd2a28 7b25
DiRich 632 dd00000a48adfb28 7636
DiRich 634 c300000a4920db28 73a2
DiRich 635 b400000a48b35e28 7516
+ DiRich 638 e800000a48f3e828 7382
DiRich 639 b100000a48f3eb28 7536
DiRich 642 c500000a49bfcc28 7196
DiRich 643 f200000a49bfcd28 7436
DiRich 726 a800000a497b0628 7316
DiRich 727 7f00000a49313428 72b3
DiRich 728 8c00000a497b0928 7327
+ DiRich 730 c000000a497b3128 7a06
DiRich 731 4500000a497b3628 7676
DiRich 732 2400000a48c81528 7597
DiRich 733 4c00000a48c82228 7697
DiRich 918 2000000a49966a28 7865
DiRich 919 bf00000a48e45428 70b2
DiRich 920 9100000a4949ce28 7767
+ DiRich 925 8900000a48dfb128 7a04
+ DiRich 1033 0600000a49897828 70a4
+ DiRich 1037 7000000a49bc5128 70a3
DiRich 1038 5300000a49d52228 7056
DiRich 1039 1b00000a49d36a28 7057
DiRich 1040 5700000a49d35228 7873
DiRich 1069 4900000a4955c928 7376
DiRich 1070 4a00000a49555f28 7286
DiRich 1072 c000000a49d58828 7177
+ DiRich 1073 d200000a49d35528 7774
DiRich 1074 c500000a49562c28 7476
DiRich 1075 ed00000a490e1e28 7356
DiRich 1076 dc00000a49555628 7041
DiRichConcentrator 22 1100000a52027828 8279
DiRichConcentrator 23 b500000a51d87228 8217
DiRichConcentrator 25 9c00000a52065728 8297
+DiRichConcentrator 29 7c00000a52570e28 825a
DiRichConcentrator 37 0c00000a525a5828 8211
DiRichConcentrator 38 5a00000a52598c28 8291
-DiRichConcentrator 40 ec00000a52048628 825a
DiRichConcentrator 43 5f00000a51e39328 8261
DiRichConcentrator 44 8400000a51f7ca28 8285
DiRichConcentrator 45 5a00000a51e56628 8298
sleep 1
/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb10/eb_runinfo2ora_3.txt > /home/hadaq/log/runinfo2ora_3_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb05/eb_runinfo2ora_4.txt > /home/hadaq/log/runinfo2ora_4_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb11/eb_runinfo2ora_4.txt > /home/hadaq/log/runinfo2ora_4_log.txt 2>&1 &
sleep 1
/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb08/eb_runinfo2ora_5.txt > /home/hadaq/log/runinfo2ora_5_log.txt 2>&1 &
sleep 1
sleep 1
/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb10/eb_runinfo2ora_7.txt > /home/hadaq/log/runinfo2ora_7_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb05/eb_runinfo2ora_8.txt > /home/hadaq/log/runinfo2ora_8_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb11/eb_runinfo2ora_8.txt > /home/hadaq/log/runinfo2ora_8_log.txt 2>&1 &
sleep 1
/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb08/eb_runinfo2ora_9.txt > /home/hadaq/log/runinfo2ora_9_log.txt 2>&1 &
sleep 1
sleep 1
/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb10/eb_runinfo2ora_11.txt > /home/hadaq/log/runinfo2ora_11_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb05/eb_runinfo2ora_12.txt > /home/hadaq/log/runinfo2ora_12_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb11/eb_runinfo2ora_12.txt > /home/hadaq/log/runinfo2ora_12_log.txt 2>&1 &
sleep 1
/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb08/eb_runinfo2ora_13.txt > /home/hadaq/log/runinfo2ora_13_log.txt 2>&1 &
sleep 1
sleep 1
/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb10/eb_runinfo2ora_15.txt > /home/hadaq/log/runinfo2ora_15_log.txt 2>&1 &
sleep 1
-/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb05/eb_runinfo2ora_16.txt > /home/hadaq/log/runinfo2ora_16_log.txt 2>&1 &
+/home/hadaq/trbsoft/daq/oracle/runinfo2ora.pl -f /home/hadaq/oper/lxhadeb11/eb_runinfo2ora_16.txt > /home/hadaq/log/runinfo2ora_16_log.txt 2>&1 &
trbcmd loadbit 0xfe51 0x7114 0x00ff0000 0x00050000 #minimum event size
load_register register_tdc_rich.db
+
+trbcmd w 0x0110 0xe120 0x240
command_client.pl -e etraxp059 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
command_client.pl -e etraxp067 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp110 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp056 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp052 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp124 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp094 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp055 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
command_client.pl -e etraxp085 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
command_client.pl -e etraxp065 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
command_client.pl -e etraxp063 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp091 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp080 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp078 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp122 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp092 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp083 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp075 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp061 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
command_client.pl -e etraxp054 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
command_client.pl -e etraxp053 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp052 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp110 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
command_client.pl -e etraxp051 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp092 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp083 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp075 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
-command_client.pl -e etraxp061 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp091 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp080 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp078 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
+command_client.pl -e etraxp050 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400000'
command_client.pl -e etraxp059 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
command_client.pl -e etraxp067 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp110 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp056 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp052 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp124 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp094 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp055 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
command_client.pl -e etraxp085 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
command_client.pl -e etraxp065 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
command_client.pl -e etraxp063 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp091 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp080 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp078 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp122 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp092 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp083 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp075 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp061 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
command_client.pl -e etraxp054 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
command_client.pl -e etraxp053 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp052 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp110 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
command_client.pl -e etraxp051 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
command_client.pl -e etraxp054 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x4000CC'
command_client.pl -e etraxp053 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x4000CC'
-command_client.pl -e etraxp052 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x4000CC'
+command_client.pl -e etraxp110 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x4000CC'
command_client.pl -e etraxp051 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x4000CC'
-command_client.pl -e etraxp092 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp083 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp075 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
-command_client.pl -e etraxp061 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp091 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp080 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp078 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
+command_client.pl -e etraxp050 -c '/home/hadaq/bin/rw_trbv2 --trb w 0 c2 0x400033'
command_client.pl -e etraxp059 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
command_client.pl -e etraxp067 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
-command_client.pl -e etraxp110 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
-command_client.pl -e etraxp056 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV'
+command_client.pl -e etraxp052 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
+command_client.pl -e etraxp124 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV'
-command_client.pl -e etraxp094 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
+command_client.pl -e etraxp055 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
command_client.pl -e etraxp085 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
command_client.pl -e etraxp065 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
command_client.pl -e etraxp063 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV'
-command_client.pl -e etraxp091 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
-command_client.pl -e etraxp080 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
-command_client.pl -e etraxp078 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
-command_client.pl -e etraxp122 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV'
+command_client.pl -e etraxp092 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
+command_client.pl -e etraxp083 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
+command_client.pl -e etraxp075 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
+command_client.pl -e etraxp061 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV'
command_client.pl -e etraxp054 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
command_client.pl -e etraxp053 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
-command_client.pl -e etraxp052 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
+command_client.pl -e etraxp110 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
command_client.pl -e etraxp051 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV'
-command_client.pl -e etraxp092 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
-command_client.pl -e etraxp083 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
-command_client.pl -e etraxp075 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
-command_client.pl -e etraxp061 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV'
+command_client.pl -e etraxp091 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
+command_client.pl -e etraxp080 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
+command_client.pl -e etraxp078 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV' &
+command_client.pl -e etraxp050 -c '/home/hadaq/bin/spi_trbv2_5 /home/hadaq/rpc/configFile_40mV'
-command_client.pl -e etraxp094 -c 'spi_trbv2_5 /home/hadaq/rpc/triggerBoards/triggerBoard_094'
+command_client.pl -e etraxp055 -c 'spi_trbv2_5 /home/hadaq/rpc/triggerBoards/triggerBoard_094'
+# 1. NINO (StartX)
# Board Chain ChainLen DAC Channel Command Value
- 5000 1 2 0 0 3 0x4000 # ---Glob. Thres #1
+ 5000 1 2 0 0 3 0x5500 # ---Glob. Thres #1
5000 1 2 0 1 3 0x7000 #
5000 1 2 0 2 3 0x7000 # --- Str. 9-10ns, 7-20ns, 6 - 30ns, 5-70ns
5000 1 2 0 3 3 0x7000 #
5000 1 2 1 5 3 0x7000 # ch. 6
5000 1 2 1 6 3 0x7000 # ch. 7
5000 1 2 1 7 3 0x7000 # ch. 8
+# 2.NINO (StartX)
#############################################################################
- 5000 2 2 0 0 3 0x4000 # ---Glob. Thres #2
+ 5000 2 2 0 0 3 0x5500 # ---Glob. Thres #2
5000 2 2 0 1 3 0x5000 #
5000 2 2 0 2 3 0x7000 # --- Str. 9-20ns, 7-30ns, 5-80ns
5000 2 2 0 3 3 0x5000 #
5000 2 2 0 7 3 0x9000
5000 2 2 1 0 3 0x7000 ### ch. 4
5000 2 2 1 1 3 0x7000 ### ch. 3
- 5000 2 2 1 2 3 0x9000 ### ch. 2
+ 5000 2 2 1 2 3 0x7000 ### ch. 2
5000 2 2 1 3 3 0x7000 ### ch. 1
5000 2 2 1 4 3 0x7000 ### ch. 5
5000 2 2 1 5 3 0x7000 ### ch. 6
######7
####### Next TDC
#######
+# 3.NINO (Start Y)
# Board Chain ChainLen DAC Channel Command Value
- 5001 1 2 0 0 3 0x4000 # ---Glob. Thres #3
+ 5001 1 2 0 0 3 0x5500 # ---Glob. Thres #3
5001 1 2 0 1 3 0x7000 #
5001 1 2 0 2 3 0x7000 # --- Str. 9-20ns, 7-30ns, 5-80ns
5001 1 2 0 3 3 0x7000 #
5001 1 2 1 5 3 0x7000 ### ch. 6
5001 1 2 1 6 3 0x7000 ### ch. 7
5001 1 2 1 7 3 0x7000 ### ch. 8
+# 4.NINO (Start Y)
#############################################################################
- 5001 2 2 0 0 3 0x4000 # ---Glob. Thres #4
+ 5001 2 2 0 0 3 0x5500 # ---Glob. Thres #4
5001 2 2 0 1 3 0x5000 #
5001 2 2 0 2 3 0x7000 # --- Str. 9-20ns, 7-30ns, 5-80ns
5001 2 2 0 3 3 0x5000 #
#######
####### Next TDC
#######
+# 5. NINO (Veto)
# Board Chain ChainLen DAC Channel Command Value
- 5002 1 2 0 0 3 0x2000 # ---Glob. Thres #5
+ 5002 1 2 0 0 3 0x3000 # ---Glob. Thres #5
5002 1 2 0 1 3 0x5000 #
5002 1 2 0 2 3 0x7000 # --- Str. 9-10ns, 7-20ns, 6 - 30ns, 5-70ns
5002 1 2 0 3 3 0x6000 #
5002 1 2 0 5 3 0x8000
5002 1 2 0 6 3 0x9000
5002 1 2 0 7 3 0x9000
- 5002 1 2 1 0 3 0x3000 ### ch. 4
- 5002 1 2 1 1 3 0x3000 ### ch. 3
- 5002 1 2 1 2 3 0x3000 ### ch. 2
- 5002 1 2 1 3 3 0x3000 ### ch. 1
- 5002 1 2 1 4 3 0x3000 ### ch. 5
- 5002 1 2 1 5 3 0x3000 ### ch. 6
- 5002 1 2 1 6 3 0x3000 ### ch. 7
- 5002 1 2 1 7 3 0x3000 ### ch. 8
+ 5002 1 2 1 0 3 0x5000 ### ch. 4
+ 5002 1 2 1 1 3 0x5000 ### ch. 3
+ 5002 1 2 1 2 3 0x5000 ### ch. 2
+ 5002 1 2 1 3 3 0x5000 ### ch. 1
+ 5002 1 2 1 4 3 0x5000 ### ch. 5
+ 5002 1 2 1 5 3 0x5000 ### ch. 6
+ 5002 1 2 1 6 3 0x5000 ### ch. 7
+ 5002 1 2 1 7 3 0x5000 ### ch. 8
+# 6. NINO (HALO)
#############################################################################
- 5002 2 2 0 0 3 0x8000 # ---Glob. Thres #6
+ 5002 2 2 0 0 3 0x2500 # ---Glob. Thres #6
5002 2 2 0 1 3 0x5000 #
5002 2 2 0 2 3 0x7000 # --- Str. 9-20ns, 7-30ns, 5-80ns
5002 2 2 0 3 3 0x5000 #
5002 2 2 0 5 3 0x9000
5002 2 2 0 6 3 0x9000
5002 2 2 0 7 3 0x9000
- 5002 2 2 1 0 3 0x8000 ### ch. 4
- 5002 2 2 1 1 3 0x8000 ### ch. 3
- 5002 2 2 1 2 3 0x9500 ### ch. 2
- 5002 2 2 1 3 3 0x8000 ### ch. 1
- 5002 2 2 1 4 3 0x8000 ### ch. 5
- 5002 2 2 1 5 3 0x8000 ### ch. 6
- 5002 2 2 1 6 3 0x8000 ### ch. 7
- 5002 2 2 1 7 3 0x9000 ### ch. 8
+ 5002 2 2 1 0 3 0x7000 ### ch. 4
+ 5002 2 2 1 1 3 0x7000 ### ch. 3
+ 5002 2 2 1 2 3 0x7500 ### ch. 2
+ 5002 2 2 1 3 3 0x7000 ### ch. 1
+ 5002 2 2 1 4 3 0x7000 ### ch. 5
+ 5002 2 2 1 5 3 0x7000 ### ch. 6
+ 5002 2 2 1 6 3 0x7000 ### ch. 7
+ 5002 2 2 1 7 3 0x7000 ### ch. 8
######6
####### Next TDC
#######
trbcmd w 0x5000 0xc802 0xffff # enable 16 channels in 0x5000
trbcmd w 0x5001 0xc802 0xffff # enable 16 channels in 0x5001
-trbcmd w 0x5002 0xc802 0x00ff # enable 8 channels in 0x5002
+trbcmd w 0x5002 0xc802 0x0fff # enable 8 (Veto) and 4 (HALO) channels in 0x5002
trbcmd w 0x5003 0xc802 0x0000 # enable 0 channels in 0x5003