-../users/cern_cbmrich/ChannelMapping.pm
\ No newline at end of file
+../users/gsi_dirc/ChannelMapping.pm
\ No newline at end of file
my $unix_compile_time = $ids->{$board}->{1}*2**16+$ids->{$board}->{0};
if ($unix_compile_time >= 0x546f1960) {
- $mask = 0x1;
+ $mask = 0x0;
}
else {
$mask =0x10;
<Module name="Combiner" class="hadaq::CombinerModule">
<!-- these parameters will force to create inputs/oputputs of module -->
- <NumInputs value="23"/>
+ <NumInputs value="13"/>
<NumOutputs value="2"/>
<InputPort name="Input0" url="hadaq://host:50000" thread="UdpThread1"/>
<InputPort name="Input9" url="hadaq://host:50009" thread="UdpThread2"/>
<InputPort name="Input10" url="hadaq://host:50010" thread="UdpThread3"/>
<InputPort name="Input11" url="hadaq://host:50011" thread="UdpThread4"/>
- <InputPort name="Input12" url="hadaq://host:50012" thread="UdpThread1"/>
+ <InputPort name="Input12" url="hadaq://host:49999" thread="UdpThread1"/>
+
<InputPort name="Input13" url="hadaq://host:50013" thread="UdpThread2"/>
<InputPort name="Input14" url="hadaq://host:50014" thread="UdpThread3"/>
<InputPort name="Input15" url="hadaq://host:50015" thread="UdpThread4"/>
<FlushTimeout value="2.0"/>
</InputPort>
- <OutputPort name="Output1" url="hld:///d/dabc.hld?maxsize=1500"/>
+ <OutputPort name="Output1" url="hld:///d/may2015/dabc.hld?maxsize=1500"/>
<DoShmControl value="false"/>
<FlushTimeout value="2.0"/>
<InputPort name="Input0" url="Combiner/Output0" queue="10"/>
- <OutputPort name="Output0" url="mbs://Stream"/>
+ <OutputPort name="Output0" url="mbs://Stream:6789"/>
<OutputPort name="Output1" url="lmd://test.lmd?maxsize=30&log=2"/>
<!-- this is 32-bit MBS subevent id, which than can be seen in the analysis. Here procid=0x1f is configured -->
#BarrelDirc Heatmap settings
HeatmapDirc => {
# upper limit for high end of color scale
- max_count_uclamp => 100000,
+## max_count_uclamp => 1000000,
+ max_count_uclamp => 2000,
+# max_count_uclamp => 20000,
# lower limit for high end of color scale
max_count_lclamp => 10,
HeatmapDiscDirc => {
# upper limit for high end of color scale
max_count_uclamp => 100000,
+## max_count_uclamp => 100,
# lower limit for high end of color scale
max_count_lclamp => 30,
cd ../../dmon
./stop.pl
./start.pl ../users/gsi_dirc/dmon_config.pl
+
+
0x2016 0 0xffffffff 0x00000000
0x2017 0 0x0000ffff 0x00000000
-# TOF3
+# TOF2
0x2018 0 0x0000ffff 0x00000000
0x2019 0 0xffffffff 0x00000000
0x201e 0 0x00000000 0x00000000
0x201f 0 0x00000000 0x00000000
-#DISC DIRC
- 0x2029 0 0x00000000 0x00000000
- 0x202a 0 0x00000000 0x00000000
+# EDD
0x202b 0 0x00000000 0x00000000
+#DISC-DIRC
+ 0x2026 0 0xfffffff 0x0000ffff
+
# AUX
0x202c 0 0xffffffff 0x00000000
0x202d 0 0xffffffff 0x00000000
# SubEvtId SubEvtDec QueDec PackSize FrameSize UseGbE MultiQueue Enable RX Add.Slw.Head TType_inserted
# Hub # Type # C0 # C1 # C2 # C3 # C4 # C5 # C6 # C7 # C8 # C9 #
###################################################################################################################################################
- 0x7999 0 0x7999 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x1
- 0x8000 0 0x8000 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x8001 0 0x8001 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x8002 0 0x8002 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x8003 0 0x8003 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x8004 0 0x8004 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x8005 0 0x8005 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x8006 0 0x8006 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x8007 0 0x8007 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x8008 0 0x8008 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x8009 0 0x8009 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x800a 0 0x800a 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
- 0x800b 0 0x800b 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
+ 0x7999 0 0x7999 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x1
+ 0x8000 0 0x8000 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x8001 0 0x8001 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x8002 0 0x8002 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x8003 0 0x8003 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x8004 0 0x8004 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x8005 0 0x8005 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x8006 0 0x8006 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x8007 0 0x8007 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x8008 0 0x8008 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x8009 0 0x8009 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x800a 0 0x800a 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
+ 0x800b 0 0x800b 0x00020001 0x00030064 0x1DE8 0x578 1 1 1 1 0x0
# 0x8012 0 0x8012 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
# 0x8013 0 0x8013 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
# 0x8014 0 0x8014 0x00020001 0x00030064 0x1DE8 0x578 1 0 1 1 0x0
my $label = "test";
my $time = -1;
my $name = "cc";
+my $dabc;
my $c;
my $result = GetOptions (
"h|help" => \$help,
+ "d|dabc" => \$dabc,
"t|time=i" => \$time,
"l|label=s" => \$label,
"n|filename=s" => \$name,
$c=qq|pkill -f "daq_netmem -S $label"|; qx($c); # if any, kill existing daq_netmem
-$c=qq|xterm -geometry 122x15-0+0 -e bash -c 'daq_evtbuild -S $label -m 13 -x $name --filesize 512 -d file -o $dataPath'|;
-#$c=qq|xterm -geometry 122x16-0+0 -e bash -c 'daq_evtbuild -S $label -m 23 -x $name -d file -o $dataPath'|;
-#print $c;
+if(defined $dabc) {
-system("$c &");
+ $c=qq|perl -p -e 's/dabc.hld/$name.hld/' EventBuilderNew.xml > EventBuilder_autogenerated.xml|;
+ qx($c);
-sleep 1;
-$c=qq"xterm -geometry 82x45-0+210 -e bash -c 'daq_netmem -S $label -m 13 -i UDP:127.0.0.1:49999 -i UDP:127.0.0.1:50000 -i UDP:127.0.0.1:50001 -i UDP:127.0.0.1:50002 -i UDP:127.0.0.1:50003 -i UDP:127.0.0.1:50004 -i UDP:127.0.0.1:50005 -i UDP:127.0.0.1:50006 -i UDP:127.0.0.1:50007 -i UDP:127.0.0.1:50008 -i UDP:127.0.0.1:50009 -i UDP:127.0.0.1:50010 -i UDP:127.0.0.1:50011'";
+ $c=qq|urxvt -geometry 80x27-0+0 -e bash -c 'dabc_exe EventBuilder_autogenerated.xml'|;
+ system("$c &");
+}
+else {
+ $c=qq|xterm -geometry 122x15-0+0 -e bash -c 'daq_evtbuild -S $label -m 13 -x $name --filesize 1536 -d file -o $dataPath'|;
+ #$c=qq|xterm -geometry 122x16-0+0 -e bash -c 'daq_evtbuild -S $label -m 23 -x $name -d file -o $dataPath'|;
+ #print $c;
+ system("$c &");
+ sleep 1;
+ $c=qq"xterm -geometry 82x45-0+210 -e bash -c 'daq_netmem -S $label -m 13 -i UDP:127.0.0.1:49999 -i UDP:127.0.0.1:50000 -i UDP:127.0.0.1:50001 -i UDP:127.0.0.1:50002 -i UDP:127.0.0.1:50003 -i UDP:127.0.0.1:50004 -i UDP:127.0.0.1:50005 -i UDP:127.0.0.1:50006 -i UDP:127.0.0.1:50007 -i UDP:127.0.0.1:50008 -i UDP:127.0.0.1:50009 -i UDP:127.0.0.1:50010 -i UDP:127.0.0.1:50011'";
-#$c=qq"xterm -geometry 82x44-0+234 -e bash -c 'daq_netmem -S $label -m 23 -i UDP:127.0.0.1:50000 -i UDP:127.0.0.1:50001 -i UDP:127.0.0.1:50002 -i UDP:127.0.0.1:50003 -i UDP:127.0.0.1:50004 -i UDP:127.0.0.1:50005 -i UDP:127.0.0.1:50006 -i UDP:127.0.0.1:50007 -i UDP:127.0.0.1:50008 -i UDP:127.0.0.1:50009 -i UDP:127.0.0.1:50010 -i UDP:127.0.0.1:50011 -i UDP:127.0.0.1:50012 -i UDP:127.0.0.1:50013 -i UDP:127.0.0.1:50014 -i UDP:127.0.0.1:50015 -i UDP:127.0.0.1:50016 -i UDP:127.0.0.1:50017 -i UDP:127.0.0.1:50018 -i UDP:127.0.0.1:50019 -i UDP:127.0.0.1:50020 -i UDP:127.0.0.1:50021 -i UDP:127.0.0.1:50022; sleep 2'";
+ #$c=qq"xterm -geometry 82x44-0+234 -e bash -c 'daq_netmem -S $label -m 23 -i UDP:127.0.0.1:50000 -i UDP:127.0.0.1:50001 -i UDP:127.0.0.1:50002 -i UDP:127.0.0.1:50003 -i UDP:127.0.0.1:50004 -i UDP:127.0.0.1:50005 -i UDP:127.0.0.1:50006 -i UDP:127.0.0.1:50007 -i UDP:127.0.0.1:50008 -i UDP:127.0.0.1:50009 -i UDP:127.0.0.1:50010 -i UDP:127.0.0.1:50011 -i UDP:127.0.0.1:50012 -i UDP:127.0.0.1:50013 -i UDP:127.0.0.1:50014 -i UDP:127.0.0.1:50015 -i UDP:127.0.0.1:50016 -i UDP:127.0.0.1:50017 -i UDP:127.0.0.1:50018 -i UDP:127.0.0.1:50019 -i UDP:127.0.0.1:50020 -i UDP:127.0.0.1:50021 -i UDP:127.0.0.1:50022; sleep 2'";
-#$c=qq"xterm -geometry 82x17-0+210 -e bash -c 'daq_netmem -S $label -m 2 -i UDP:127.0.0.1:50000 -i UDP:127.0.0.1:50002'";
-system("$c &");
+ #$c=qq"xterm -geometry 82x17-0+210 -e bash -c 'daq_netmem -S $label -m 2 -i UDP:127.0.0.1:50000 -i UDP:127.0.0.1:50002'";
+ system("$c &");
-print "Saving data to $dataPath\n";
+ print "Saving data to $dataPath\n";
+}
if($time == -1) {
print "Data taking will run until manual quit with Ctrl+C\n\n";
##################################################
# standard TDCs
+trbcmd clearbit 0xfe4c 0xc800 0x2000 ## clear bit to reset the epoch and coarse counters
trbcmd w 0xfe4c 0xc800 0x00002000 ## Triggered mode
#trbcmd w 0xfe4c 0xc800 0x00003000 ## Triggerless mode
#trbcmd w 0xfe4c 0xc801 0x000f0005 ## trigger window enable & trigger window width
# special Matthias TDCs
+trbcmd clearbit 0xfe48 0xc800 0x2000 ## clear bit to reset the epoch and coarse counters
trbcmd w 0xfe48 0xc800 0x00002000 ## Triggered mode
trbcmd w 0xfe48 0xc801 0x80c600c6 ## triggerwindow +/-990ns ;5ns granularity
trbcmd w 0xfe48 0xc802 0xffffffff ## channel 01-32 enable
# AUX TDCs
+trbcmd clearbit 0xfe4a 0xc800 0x2000 ## clear bit to reset the epoch and coarse counters
trbcmd w 0xfe4a 0xc800 0x00002000 ## Triggered mode
trbcmd w 0xfe4a 0xc801 0x80c600c6 ## triggerwindow +/-990ns ;5ns granularity
trbcmd w 0xfe4a 0xc802 0x00000000 ## channel 33-64 enable
#trbcmd w 0xffff 0x20 0x33
# Barrel DIRC
-prepare_padiwas_invert_leds.pl --endpoints=0x2000-0x2013 --chains=0..2 --invert=0xffff --stretch=0x0000
-padiwa_led_off.pl
+prepare_padiwas_invert_leds.pl --endpoints=0x2000-0x2013 --chains=0..2 --invert=0xffff --stretch=0xffff
+#padiwa_led_off.pl
# Beam
prepare_padiwas_invert_leds.pl --endpoints=0x2014-0x201f --chains=0..2 --invert=0xffff
## 2015 ./load_thresh_mcptof.sh 1500 1500 1500 1500
#MCP-TOF, SciTils
-./write_thresholds.pl mcptof_mcpout_zero.log -o 2000 >> /dev/null # =14 mV after amp
-./write_thresholds.pl mcptof_pixels_zero.log -o 2000 >> /dev/null # =14 mV after amp
-./write_thresholds.pl mcptof_scitil_zero.log -o 2000 >> /dev/null # =20 mV after amp
-./write_thresholds.pl mcptof_hodo_zero.log -o 1000 >> /dev/null # =7 mV after amp
+./write_thresholds.pl mcptof_mcpout_zero.log -o 0 >> /dev/null # =10 mV before amp
+./write_thresholds.pl mcptof_pixels_zero.log -o 0 >> /dev/null # =10 mV before amp
+./write_thresholds.pl mcptof_scitil_zero.log -o 0 >> /dev/null # =10 mV before amp
+./write_thresholds.pl mcptof_hodo_zero.log -o 0 >> /dev/null # =7 mV before amp
+./write_thresholds.pl mcptof_mcpout_zero.log -o 1500 >> /dev/null # =10 mV before amp
+./write_thresholds.pl mcptof_pixels_zero.log -o 1500 >> /dev/null # =10 mV before amp
+./write_thresholds.pl mcptof_scitil_zero.log -o 1500 >> /dev/null # =10 mV before amp
+./write_thresholds.pl mcptof_hodo_zero.log -o 1000 >> /dev/null # =7 mV before amp
+
+
## Barrel DIRC
-./write_thresholds.pl ~/trbsoft/daqtools/users/gsi_dirc/thresh/201505101447.thr -o 600 >> /dev/null # 1.5mV at plug
+#./write_thresholds.pl ~/trbsoft/daqtools/users/gsi_dirc/thresh/201505101447.thr -o 600 >> /dev/null # 1.5mV at plug
+#./write_thresholds.pl padiwa_threshold_results_20150511_2.log -o 400 > /dev/null # 1mV at plug
+./write_thresholds.pl padiwa_threshold_results_20150516_high_stretch_CS.log -o 400 > /dev/null # 1mV at plug
+./padiwa_led_off_MT.sh > /dev/null
cd -
print "HTTP/1.0 200 OK\n";
print "Content-type: text/html\r\n\r\n";
}
+
else {
use lib '..';
-# use if (!($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i)), apacheEnv;
+ use if (!($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i)), apacheEnv;
print "Content-type: text/html\n\n";
}