########################################
0001 0xca00000711f93828
+0002 0x6f00000711e42a28
+0003 0x97000007122e0928
+0004 0x01000007125dbf28
+0005 0xdc000007122daa28
+0006 0x2d00000711e46b28
+0007 0x5800000711e42b28
1733 0x45000006ea596c28
1735 0xc2000006ea597828
+
+
+# concentrator/combiner
+ 100000 0xca00000712ac3228
use Time::HiRes qw(usleep);
use Data::Dumper;
-my $dirich = 0x1200;
+my $dirich = 0x1204;
my $throffset = 0xa000;
my $monitor = 0xdfc0;
print "\nresult:\n";
#print Dumper $boundaries;
+print "channel | noiseband [mV]\n";
+print "------------------------\n";
foreach my $cur_channel (sort {$a <=> $b} keys %$boundaries) {
my $diff = $boundaries->{$cur_channel}->{upper} - $boundaries->{$cur_channel}->{lower};
my $width = $diff * 38E-6 * 1000;
- printf "channel: %2d: noiseband [mV]: %02.0f\n", $cur_channel , $width;
+ printf "%2d | %02.0f\n", $cur_channel , $width;
}
print "\nsummary:\n";
my $trbnum= $map->{$ct}->{trb};
my $num = sprintf "%3.3d", $trbnum;
my $host= "trb" . $num;
+ #my $host= "trb" . $num ."b";
my $system = $map->{$ct}->{sys};
#print "192.168.0.$ct $host.gsi.de $host\n";
#my $r = $p->ping($host,1);
# Address # S/N # FPGA
-0x1200 0001 1
+0x1201 0001 1
+0x1202 0002 1
+0x1203 0003 1
+0x1204 0004 1
+0x1205 0005 1
+0x1206 0006 1
+0x1207 0007 1
#CTS
0x0840 84 0
-0x0841 84 1
+0x8841 84 1 # hub
0x0842 84 2
0x0843 84 3
0xc001 84 5
0x0611 61 1
0x0612 61 2
0x0613 61 3
-0x8000 61 5
+0x8610 61 5
#slave
0x1130 113 0
0x1131 113 1
0x1132 113 2
0x1133 113 3
-0x8001 113 5
+0x8113 113 5
#slave
0x1580 158 0
0x1581 158 1
0x1582 158 2
0x1583 158 3
-0x8002 158 5
+0x8158 158 5
+
+# concentrator/combiner
+0x8300 10000 0
# Hub # Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # C9 # C10 #
#################################################################################################################################################################
0xc001 0 0xc001 0x00020001 0x00030062 0xEA60 0x578 1 0 1 0xffffff 0x7 0x1
- 0x8000 0 0x8000 0x00020001 0x00030062 0xEA60 0x578 1 0 1 0xffffff 0x7 0x1
- 0x8001 0 0x8001 0x00020001 0x00030062 0xEA60 0x578 1 0 1 0xffffff 0x7 0x1
- 0x8002 0 0x8002 0x00020001 0x00030062 0xEA60 0x578 1 0 1 0xffffff 0x7 0x1
+ 0x8610 0 0x8000 0x00020001 0x00030062 0xEA60 0x578 1 0 1 0xffffff 0x7 0x1
+ 0x8113 0 0x8001 0x00020001 0x00030062 0xEA60 0x578 1 0 1 0xffffff 0x7 0x1
+ 0x8158 0 0x8002 0x00020001 0x00030062 0xEA60 0x578 1 0 1 0xffffff 0x7 0x1
#14:dd:a9:d3:f4:b8 # hadesp39
0xc001 0 0xa9d3f4b8 0x14dd 0xc0a800b1 0xc3a4 0xDEADc000 0x001B 0xc0a80154 0xc350 0x0578
- 0x8000 0 0xa9d3f4b8 0x14dd 0xc0a800b1 0xc38d 0xDEADc001 0x001d 0xc0a80155 0xc350 0x0578
- 0x8001 0 0xa9d3f4b8 0x14dd 0xc0a800b1 0xc3c1 0xDEADc002 0x001d 0xc0a80156 0xc350 0x0578
- 0x8002 0 0xa9d3f4b8 0x14dd 0xc0a800b1 0xc3ee 0xDEADc003 0x001d 0xc0a80157 0xc350 0x0578
+ 0x8610 0 0xa9d3f4b8 0x14dd 0xc0a800b1 0xc38d 0xDEADc001 0x001d 0xc0a80155 0xc350 0x0578
+ 0x8113 0 0xa9d3f4b8 0x14dd 0xc0a800b1 0xc3c1 0xDEADc002 0x001d 0xc0a80156 0xc350 0x0578
+ 0x8158 0 0xa9d3f4b8 0x14dd 0xc0a800b1 0xc3ee 0xDEADc003 0x001d 0xc0a80157 0xc350 0x0578
#0xfe4e 0 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 # ADA addon
#0xfe50 0 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 # cbmtof
#0xfe62 0 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 # trb3sc
+0xfe51 0 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 # dirich
#0xfe48 0 0x50003000 0x80640064 0x00000000 0x00000000 0x0000007c 0x00000000
#0xfe4a 0 0x50003000 0x80640064 0x00000000 0x00000000 0x0000007c 0x00000000 # gpin addon
#0xfe4e 0 0x50003000 0x80640064 0x00000000 0x00000000 0x0000007c 0x00000000 # ADA addon
#0xfe50 0 0x50003000 0x80640064 0x00000000 0x00000000 0x0000007c 0x00000000 # cbmtof
#0xfe62 0 0x50003000 0x80640064 0x00000000 0x00000000 0x0000007c 0x00000000 # trb3sc
+0xfe51 0 0x50003000 0x00640064 0x00000000 0x00000000 0x00000078 0x00000000 # dirich
hadaq::TrbProcessor::SetTDCRange(0x1130, 0x1603);
// [min..max] range for HUB ids
- hadaq::TrbProcessor::SetHUBRange(0x8000, 0x82FF);
+ hadaq::TrbProcessor::SetHUBRange(0x8000, 0x8fff);
// when first argument true - TRB/TDC will be created on-the-fly
// second parameter is function name, called after elements are created
hUser = MakeH2("ToT_vs_LED","ToT versus LED difference", 500, -4, 0, 500, -2, -1, "ToT/ns;LED diff/ns");
*/
- hDif1 = MakeH1("LE1","1 vs. 11", 30000, -90, 90, "ns");
- hDif2 = MakeH1("LE2","2 vs. 12", 30000, -90, 90, "ns");
+ hDif1 = MakeH1("LE1","1 vs. 2", 30000, -90, 90, "ns");
+ hDif2 = MakeH1("TE2","1 vs. 2", 30000, -90, 90, "ns");
/*
*/
- FillH1(hDif1, (fHits[1][0] - fHits[16][0]));
- //FillH1(hDif2, (fHits[2][0] - fHits[12][0]));
+ FillH1(hDif1, (fHits[1][0] - fHits[2][0]) );
+ FillH1(hDif2, (fHits[1][1] - fHits[2][1]) );
void second()
{
//new SecondProc("A", "TDC_1133");
- new SecondProc("A", "TDC_1580");
+ //new SecondProc("A", "TDC_1580");
+ new SecondProc("A", "TDC_1202");
}
export TRB3_SERVER=trb084:26000
export TRBNETDPID=$(pgrep -f "trbnetd -i 84")
-export DAQOPSERVER=hadeb05:84
+#export DAQOPSERVER=hadeb05:84
+export DAQOPSERVER=hades39:84
echo "- trbnetd pid: $TRBNETDPID"
## Set addresses
##################################################
merge_serial_address.pl $DAQ_TOOLS_PATH/base/serials_trb3.db $USER_DIR/db/addresses_trb3.db
+merge_serial_address.pl $DAQ_TOOLS_PATH/base/serials_dirich.db $USER_DIR/db/addresses_dirich.db
+
+
+#echo "disable port 6 on hub 0x8841"
+#trbcmd clearbit 0x8841 0xc0 0x40
+#trbcmd clearbit 0x8841 0xc1 0x40
+#trbcmd clearbit 0x8841 0xc3 0x40
+
echo "GbE settings"
loadregisterdb.pl db/register_configgbe.db
echo "TDC settings"
loadregisterdb.pl db/register_configtdc.db
+echo "TDC settings end"
# setup central FPGA - enable peripherial signals
#switchport.pl 0x8840 5 off
#trbcmd setbit 0xc001 0xa14d 0x2 #select F5_COMM input
#trbcmd setbit 0xc840 0xa101 0x200 #enable input at CTS
+# set correct timeout: off for channel 0, 1, 2sec for 2
+#trbcmd w 0xfffe 0xc5 0x50ff
+
echo "pulser"
# pulser #0 to 10 kHz
trbcmd w 0xc001 0xa150 0x0000270f
trbcmd w 0x1580 0xc802 0xffffffff # enable upper 16 channels for padiwa
+cd ~/trbsoft/daqtools/xml-db
+./put.pl Readout 0xfe51 SetMaxEventSize 500
+cd -
+
+trbcmd w 0xfe51 0xdf80 0xffffffff # enable monitor counters
+
trbcmd w 0x1133 0xc804 0x7c # max number of words
trbcmd clearbit 0x1133 0xc801 0x80000000 # disable window
trbcmd w 0x1133 0xc802 0x00000c03 # enable pulser
-trbcmd setbit 0xc001 0xa101 0x8 # enable external trigger in of CTS
+#trbcmd setbit 0xc001 0xa101 0x8 # enable external trigger in of CTS