]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
JAM: snapshot commit after changing some oracle scripts and repairing board config...
authorHadaq Hades <jan@lxhadeb07>
Thu, 30 Aug 2018 14:45:44 +0000 (16:45 +0200)
committerHadaq Hades <jan@lxhadeb07>
Thu, 30 Aug 2018 14:45:44 +0000 (16:45 +0200)
42 files changed:
ecal/startup.script
evtbuild/eb_bnet_ltsm.conf
evtbuild/start_eb_gbe.pl
evtbuild/start_eb_gbe.sh
hmon/HPlot.pm
hmon/QA.pm
hmon/hmon_endpoints.pl
hmon/hmon_richMagnet.pl
hmon/hmon_rich_temp_backplane.pl
hmon/hmon_richrate.pl
hmon/hmon_startmon.pl [changed mode: 0644->0755]
hmon/hmon_trgerr.pl
hmon/monitor.cgi
hmon/permanent/hmon_magnet.pl
hmon/permanent/hmon_open_ssh_master_channels.pl
hmon/permanent/hmon_pionlv.pl [changed mode: 0755->0644]
hmon/permanent/hmon_pionsupply.pl [changed mode: 0755->0644]
hmon/permanent/hmon_qaplots.pl
hmon/permanent/hmon_richhv.pl
hmon/permanent/hmon_sequencer.pl
hmon/permanent/hmon_spill.pl [changed mode: 0644->0755]
hmon/rich_drawing.htm
hmon/speakdaemon.pl
hmon/start.sh
hub/register_configgbe_ip.db
main/data_sources.db
main/main_hades.script
main/startup_briccolage.sh
mdc/addresses_oep.db
mdc/register_thresholds_current.db
oracle/boards.txt
oracle/daq2stdout.pl
oracle/postgres2ora.pl
oracle/repairRich2ora.pl [new file with mode: 0755]
oracle/subevtids.txt
rich/addresses_dirich.db
rich/addresses_dirich_concentrator.db
rich/startup.script
start/ThreshNinoStart.db
start/addresses_trb3sc.db
start/serials_trb3sc.db
start/startup.script

index ee674eb76a4f5e999969eed41ce915e99e6592fc..1c3c5dae94df266fb37ba31024fec81bb79c5e81 100644 (file)
   set_addresses  serials_trb3sc.db  addresses_ecal.db
 !endif
 
+# set trigger for cosmics -> not working!
+#exec_cmd{local} /home/hadaq/trbsoft/daq/ecal/loadregisterdb.pl /home/hadaq/trbsoft/daq/ecal/register_monitoring_trigger.db
 
-  #?  
+trbcmd w 0xfe71 0x7111 500  #max number of words per board
 
- # trbcmd w 0xfe71 0xc800 0x00000000
- # trbcmd w 0xfe71 0xc800 0x50003000
+#prepare PaDiWa-AMPS2
+    
+#set global thresholds
+#DEACTIVATED FOR ECAL COSMIC TEST -> tuning by hand
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=0 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=1 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=2 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=3 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=4 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=5 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=6 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=7 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=8 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=9 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=10 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=11 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=12 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=13 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=14 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=15 --execute=pwm --data=0xd990
+
+
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=0 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=1 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=2 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=3 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=4 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=5 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=6 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=7 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=8 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=9 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=10 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=11 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=12 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=13 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=14 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=15 --execute=pwm --data=0xd990
+
+
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=0 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=1 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=2 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=3 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=4 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=5 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=6 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=7 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=8 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=9 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=10 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=11 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=12 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=13 --execute=pwm --data=0xd990
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=14 --execute=pwm --data=0x99c
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=15 --execute=pwm --data=0xd990
+  
 
- # trbcmd w 0xfe71 0xc804 0x00000000
- # trbcmd w 0xfe71 0xc804 0x00000078
 
 
-  #prepare PaDiWa-AMPS2
-    
-  #set thresholds
-
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=0 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=1 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=2 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=3 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=4 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=5 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=6 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=7 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=8 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=9 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=10 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=11 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=12 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=13 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=14 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=15 --execute=pwm --data=0xd028
-
-
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=0 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=1 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=2 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=3 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=4 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=5 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=6 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=7 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=8 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=9 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=10 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=11 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=12 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=13 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=14 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=15 --execute=pwm --data=0xd028
-
-
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=0 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=1 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=2 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=3 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=4 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=5 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=6 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=7 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=8 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=9 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=10 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=11 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=12 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=13 --execute=pwm --data=0xd028
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=14 --execute=pwm --data=0xfe5
-  exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=15 --execute=pwm --data=0xd028
-
-
-  #set invert to 0xaaaa
+
+#thresholds for quiet TDCs
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=0 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=1 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=2 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=3 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=4 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=5 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=6 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=7 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=8 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=9 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=10 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=11 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=12 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=13 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=14 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=15 --execute=pwm --data=0x7777
+
+
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=0 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=1 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=2 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=3 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=4 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=5 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=6 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=7 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=8 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=9 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=10 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=11 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=12 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=13 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=14 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --channel=15 --execute=pwm --data=0x7777
+
+
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=0 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=1 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=2 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=3 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=4 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=5 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=6 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=7 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=8 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=9 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=10 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=11 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=12 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=13 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=14 --execute=pwm --data=0x7777
+#exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=15 --execute=pwm --data=0x7777
+  
+
+
+#set invert to 0xaaaa
 
   exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --execute=invert --data=0xaaaa
   exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=1 --execute=invert --data=0xaaaa
   exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --execute=invert --data=0xaaaa
 
   
-  #set dischargedelayselect to 20
+#set global dischargedelayselect to 20
 
   exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=0 --execute=dischargedelayselect --data=20
   exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=0 --channel=1 --execute=dischargedelayselect --data=20
   exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=14 --execute=dischargedelayselect --data=20
   exec_cmd{local} spi_slave.pl --endpoint=0xfe71 --chain=2 --channel=15 --execute=dischargedelayselect --data=20
 
+  
 #Load TDC settings
+
   load_register  register_tdc_ecal.db
 
-  load_register  register_monitoring_trigger.db
 #wait
 
 
index d405be76feb586e822398407ac68bb8f66e22629..424d12c8dfb224cca316d204516777c1adfc9ebe 100644 (file)
@@ -71,10 +71,10 @@ QUEUESIZE: 32
 BNETINP:       1 1 1 1
 
 # JAM18 - following is default setup for the control button selection:
-BNETBLD:       3 3 3 0
+#BNETBLD:      3 3 3 0
 
-## below not enough ltsm connections
-#BNETBLD:      4 4 4 0
+## below not enough ltsm connections ?
+BNETBLD:       4 4 4 0
 
 # JAM - do not modify this anymore, please use control button "Restart BNET 1 Builder" instead
 #BNETBLD:      1 0 0 0
index 897f67d60128161c75519676d0851eaeb667a097..fd7b347623febfa9c8b7f08a805eb32df41bfec9 100755 (executable)
@@ -62,26 +62,26 @@ read_config $opt_ebconf => %$temp_args_href;
 #print Dumper $temp_args_href;
 #exit;
 
-my %IP_GSI_lookup = (
-    '192.168.100.15'   => '140.181.66.160',
-    '192.168.100.12'   => '140.181.76.94',
-    '192.168.100.13'   => '140.181.91.154',
-    '192.168.100.14'   => '140.181.88.20',
-    '192.168.100.8'    => '140.181.80.62',
-    '192.168.100.9'    => '140.181.80.64',
-#     '192.168.100.10'    => '140.181.80.68'
-  );
+my %IP_GSI_lookup = (
+    '192.168.100.15'   => '140.181.66.160',
+    '192.168.100.12'   => '140.181.76.94',
+    '192.168.100.13'   => '140.181.91.154',
+    '192.168.100.14'   => '140.181.88.20',
+    '192.168.100.8'    => '140.181.80.62',
+    '192.168.100.9'    => '140.181.80.64',
+    '192.168.100.10'   => '140.181.80.68'
+  );
   
   
- my %IP_GSI_lookup = (
-    '192.168.100.15'   => 'lxhadeb05',
-    '192.168.100.12'   => 'lxhadeb02',
-    '192.168.100.13'   => 'lxhadeb03',
-    '192.168.100.14'   => 'lxhadeb04',
-    '192.168.100.8'    => 'lxhadeb08',
-    '192.168.100.9'    => 'lxhadeb09',
-    '192.168.100.10'    => 'lxhadeb10'
-  );
+ my %IP_GSI_lookup = (
+    '192.168.100.15'   => 'lxhadeb05',
+    '192.168.100.12'   => 'lxhadeb02',
+    '192.168.100.13'   => 'lxhadeb03',
+    '192.168.100.14'   => 'lxhadeb04',
+    '192.168.100.8'    => 'lxhadeb08',
+    '192.168.100.9'    => 'lxhadeb09',
+    '192.168.100.10'    => 'lxhadeb10'
+  );
    
   
 my $IP_GSI_href = \%IP_GSI_lookup;
@@ -379,10 +379,10 @@ sub getEBArgs()
     my @ltsm_list = split(/\s+/, $listOfLTSM);
     
     my $ltsm_path          = $temp_args_href->{'Parallel'}->{'LTSM_PATH'};
-    my $ltsm_server          = $temp_args_href->{'Parallel'}->{'LTSM_Server'};
+    my $ltsm_server        = $temp_args_href->{'Parallel'}->{'LTSM_Server'};
     my $ltsm_node          = $temp_args_href->{'Parallel'}->{'LTSM_Node'};
-    my $ltsm_passwd          = $temp_args_href->{'Parallel'}->{'LTSM_Passwd'};
-    my $ltsm_filesys          = $temp_args_href->{'Parallel'}->{'LTSM_Filesystem'};
+    my $ltsm_passwd        = $temp_args_href->{'Parallel'}->{'LTSM_Passwd'};
+    my $ltsm_filesys       = $temp_args_href->{'Parallel'}->{'LTSM_Filesystem'};
     
     
     
@@ -454,7 +454,7 @@ sub getEBArgs()
         # JAM2018: bnet requieres calibration modes in a list like the ports:
         $href->{$ebproc}->{'CALIB_LIST'} = $eb_ids_gbe_href->{$ebproc}->{'calib_list'};
         
-          # JAM2018: bnet requieres hub addresses/subevents in a list like the ports:
+        # JAM2018: bnet requires hub addresses/subevents in a list like the ports:
         $href->{$ebproc}->{'HUB_LIST'} = $eb_ids_gbe_href->{$ebproc}->{'addr_list'};
         
         
@@ -511,20 +511,20 @@ sub getEBArgs()
         
         $href->{$ebproc}->{'LTSM'}             = $ltsm_list[$ebproc];  # 0|1
         $href->{$ebproc}->{'LTSM_PATH'}        = $ltsm_path;
-        $href->{$ebproc}->{'LTSM_Server'}        = $ltsm_server;
+        $href->{$ebproc}->{'LTSM_Server'}      = $ltsm_server;
         $href->{$ebproc}->{'LTSM_Node'}        = $ltsm_node;
-        $href->{$ebproc}->{'LTSM_Passwd'}        = $ltsm_passwd;
-        $href->{$ebproc}->{'LTSM_Filesystem'}        = $ltsm_filesys;
+        $href->{$ebproc}->{'LTSM_Passwd'}      = $ltsm_passwd;
+        $href->{$ebproc}->{'LTSM_Filesystem'}  = $ltsm_filesys;
         
 
         $href->{$ebproc}->{'EPICS_CTRL'}       = $epics_list[$ebproc];  # 0|1
 
-       $href->{$ebproc}->{'DABC'}       = $dabc_list[$ebproc];  # 0|1
+       $href->{$ebproc}->{'DABC'}             = $dabc_list[$ebproc];  # 0|1
 
-       $href->{$ebproc}->{'EB_DEBUG'}       = $ebdbg_list[$ebproc];  # 0|1
+       $href->{$ebproc}->{'EB_DEBUG'}         = $ebdbg_list[$ebproc];  # 0|1
 
-        $href->{$ebproc}->{'EB_LOG'}       = $eblog_list[$ebproc];  # 0|1
-        $href->{$ebproc}->{'NM_LOG'}       = $nmlog_list[$ebproc];  # 0|1
+        $href->{$ebproc}->{'EB_LOG'}           = $eblog_list[$ebproc];  # 0|1
+        $href->{$ebproc}->{'NM_LOG'}           = $nmlog_list[$ebproc];  # 0|1
         
         
         if($ebproc<4)
@@ -606,8 +606,8 @@ my $ebproc =0;
 # here test special installations:
   my $cdworkdir = "cd /home/hadaq/oper;";
 
-   my $cmd_dabc = "/home/hadaq/soft/dabc/bin/dabc_exe.head ";
-#   my $cmd_dabc = "/usr/bin/gdb  -x /home/hadaq/soft/dabc/head/base/run/gdbcmd.txt --args /home/hadaq/soft/dabc/bin/dabc_exe.head ";
+#  my $cmd_dabc = "/home/hadaq/soft/dabc/bin/dabc_exe.head ";
+   my $cmd_dabc = "/usr/bin/gdb  -x /home/hadaq/soft/dabc/head/base/run/gdbcmd.txt --args /home/hadaq/soft/dabc/bin/dabc_exe.head ";
 
    
   my $conf_bnet_inp = " BnetInputHades.head.xml";
@@ -825,7 +825,9 @@ for ( my $ebserver=0; $ebserver<4; $ebserver=$ebserver+1){
                " export BNEBNUM=" . $ebid . ";" .
                " export BNEBID=" . $portid . "; " .
                " export BNEBPORT=" . $bnebport . "; " .
-               " export PREFIX=" . $EB_Args_href->{$ebproc}->{'PREFIX'}. "; " .
+               # ignore prefix at startup. always start without files and show it:
+               #" export PREFIX=" . $EB_Args_href->{$ebproc}->{'PREFIX'}. "; " .
+               " export PREFIX=--;" .
                " export BNETSENDERS=" . $bnetsenders . ";" .
                " export BNETRECEIVERS=" . $bnetrcvs . ";" .
                " export HADAQPORTS=" . $bnet_port_list[$ebserver]. "; " ;
@@ -855,6 +857,8 @@ for ( my $ebserver=0; $ebserver<4; $ebserver=$ebserver+1){
          $exports = $exports . " export LTSMNODE=". $EB_Args_href->{$ebproc}->{'LTSM_Node'} . ";";
          $exports = $exports . " export LTSMPASSWD=". $EB_Args_href->{$ebproc}->{'LTSM_Passwd'} . ";";
         $exports = $exports . " export LTSMFSNAME=". $EB_Args_href->{$ebproc}->{'LTSM_Filesystem'} . ";";
+        $exports = $exports . " export DSM_LOG=/home/hadaq/oper/ltsm". $ebid .".log;";
+
 # switch on by number of outputs
        }
        
@@ -896,11 +900,13 @@ for ( my $ebserver=0; $ebserver<4; $ebserver=$ebserver+1){
  
  # finally, we need to set eb lut on cts for setup of EB15 => bnet distribution
  #trbcmd w 0x0003 0xa0f0 0x8000`;
- `trbcmd w 0x0003 0xa0f0 0x1`; 
+ #`trbcmd w 0x0003 0xa0f0 0x1`; 
+ `trbcmd setbit 0x0003 0xa0f0 0x1`; 
  # use EB1 as pseude for BNET now
  # all calibration triggers also assigned to pseudo EB15 => bnet distribution for the moment
  #trbcmd w 0x0003 0xa0f3 0xfff`;
- `trbcmd w 0x0003 0xa0f3 0xff0`; 
+ # `trbcmd w 0x0003 0xa0f3 0xff0`; 
+ `trbcmd setbit 0x0003 0xa0f3 0xff0`; 
  # use EB1 as pseudo receiver for calib triggers
  
   sleep (20); # need to wait until forking is done, otherwise it does not work via gui control xterm
@@ -2001,9 +2007,12 @@ sub writeArgs2file()
     }
     print $fh ";\n";
     
+    ## do not start te files by default. user should actively restart the file JAM 29-06-2018
     # here put command to start the correct file prefix in bnet builders:
-    my $prefix=$EB_Args_href->{0}->{'PREFIX'};
-    print $fh "/usr/bin/wget  -a /tmp/EB_filestart.log  -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=$prefix&oninit=10\"\n"; 
+    #my $prefix=$EB_Args_href->{0}->{'PREFIX'};
+    #print $fh "/usr/bin/wget  -a /tmp/EB_filestart.log  -O /tmp/EB_fileres.txt \"http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=$prefix&oninit=10\"\n"; 
+    
+    
     $fh->close();
 
     system("chmod 755 ./$fileName");
index 67a3d361a73257057961fab3acee7cbe3d65c3bb..3073db03b10a03baecfe626240ebda2fa428fdd5 100755 (executable)
@@ -1,2 +1 @@
 ./start_eb_gbe.pl -e restart -n 1-16 -d on -p te -b 3;
-/usr/bin/wget  -a /tmp/EB_filestart.log  -O /tmp/EB_fileres.txt "http://lxhadeb03:8090/Master/BNET/StartRun/execute?prefix=te&oninit=10"
index 6a62172cdafd28206e71d4750e5cda5334137ed2..b01c41bf3a48d7beff9063c808788be619aac22c 100755 (executable)
@@ -233,7 +233,7 @@ sub PlotDraw {
           plot_write($p->{$name}->{fh},(($i-($p->{$name}->{entries}-$realentries))/$p->{$name}->{xscale})." ".$p->{$name}->{value}->[$j]->[$i]);
           }
         else {
-          plot_write($p->{$name}->{fh},(($i-$realentries)/($p->{$name}->{xscale}||1))." ".($p->{$name}->{value}->[$j]->[$i]||0));
+          plot_write($p->{$name}->{fh},(($i-$realentries)/$p->{$name}->{xscale})." ".($p->{$name}->{value}->[$j]->[$i]||0));
           }
         }
       plot_write($p->{$name}->{fh},"e");
@@ -241,13 +241,13 @@ sub PlotDraw {
     }
 
   if($p->{$name}->{type} == TYPE_BARGRAPH) {
-    my $realentries = $p->{$name}{limitentries} || $p->{$name}->{entries};
+    my $realentries = $p->{$name}{limitentries} || $p->{$name}{entries};
     #plot_write($p->{$name}->{fh}, $p->{$name}->{plot_string});
-    for(my $j=0; $j<$p->{$name}->{curves}; $j++) {
-      for(my $i=$p->{$name}->{entries}-$realentries; $i< $p->{$name}->{entries}; $i++) {
-        plot_write($p->{$name}->{fh},' '.$p->{$name}->{value}->[$j]->[$i]);
+    for(my $j=0; $j<$p->{$name}{curves}; $j++) {
+      for(my $i=$p->{$name}{entries}-$realentries; $i< $p->{$name}{entries}; $i++) {
+        plot_write($p->{$name}{fh},' '.$p->{$name}{value}[$j][$i]||0);
         }
-      plot_write($p->{$name}->{fh},"e");
+      plot_write($p->{$name}{fh},"e");
       }
     }
 
@@ -255,6 +255,7 @@ sub PlotDraw {
       for(my $j=0; $j<$p->{$name}->{curves}; $j++) {
         for(my $i=0; $i< $p->{$name}->{entries}; $i++) {
           plot_write($p->{$name}->{fh},($p->{$name}->{value}->[$j]->[$i]//'NaN')." ",1);#"NaN"
+          #plot_write($p->{$name}->{fh},((int((($p->{$name}->{value}->[$j]->[$i]||0)*100+0.5)/100))//'NaN')." ",1);#"NaN"
           }
         plot_write($p->{$name}->{fh}," ",0);
         }
@@ -264,6 +265,7 @@ sub PlotDraw {
         for(my $j=0; $j<$p->{$name}->{curves}; $j++) {
           for(my $i=0; $i< $p->{$name}->{entries}; $i++) {
             plot_write($p->{$name}->{fh},($p->{$name}->{value}->[$j]->[$i]||0)." ",1);
+            #plot_write($p->{$name}->{fh},(int((($p->{$name}->{value}->[$j]->[$i]||0)*100+0.5)/100))." ",1);
             }
           plot_write($p->{$name}->{fh}," ",0);
           }
index bef0f604ec516f3e27d765d6b6fc5bfbf7a21b70..0831d93a714964ded6fc1fd499410600df0ac0be 100644 (file)
@@ -48,8 +48,8 @@ $entries->{'endp'}    = ['mdc','rich', 'tof', 'rpc', 'other'];
 $entries->{'feeerr'}  = ['mdcinvalid', 'trb', 'feeerr','trginp','trgqual'];
 $entries->{'pion'}    = ['nxstatus', 'HV', 'HVcurr', 'cooling','seu'];
 $entries->{'other'}   = ['magnet','goofy','','','sequencer'];
-$entries->{'rich'}    = ['temp','volt','curr','bkpl',''];
-$entries->{'ecal'}    = ['','','','',''];
+$entries->{'rich'}    = ['temp','volt','curr','bkpl','richhv'];
+$entries->{'ecal'}    = ['temp','','','',''];
 
 
 our $QAServer = "hades33";
@@ -76,6 +76,7 @@ our @MdcOepLimits     = (372, 372-1, 372-3);
 our @MdcVoltageLimits = (50, 60, 100);
 our @MdcLockLimits    = (0, 3, 5);
 our @MdcTempLimits    = (75, 80, 85);
+our @EcalTempLimits    = (55, 60, 65);
 our @RichInnerTempLimits = (32.5,33,34);
 our @TrgErrLimits     = (100, 1000, 10000);
 our @CPULimits        = (95, 100, 100);
@@ -107,7 +108,7 @@ use constant {CTSAddress => 0x0003};
 #  Missing Boards
 ###############################################################################
 
-our @mdc_boards_removed =(0x221a); #(0x2257, 0x2029); # 2233 added 2014-08-28 , 2203 at 2014/09/03, 2029 2014/09/23
+our @mdc_boards_removed =(); #(0x2257, 0x2029); # 2233 added 2014-08-28 , 2203 at 2014/09/03, 2029 2014/09/23
 our @mdc_chambers_removed =();
 our @rich_boards_removed =();
 our @tof_boards_removed =();
index c9fcd8ad84fab29ffdd06e1ffd4b170b12b9fae0..9ad70c8165fd593598d9ef4fd78130de882f19f9 100755 (executable)
@@ -151,13 +151,12 @@ while(1) {
     
     #0x7000,0x7001,0x7002,0x7003,0x7004,0x7005,0x7006,0x7007, Â§in the beamline?
     
-    #bkpl not equipped yet
-    #0x8251,0x8260,0x8240,
-    #0x71a6,0x71a7,0x71b6,0x71b7,0x71a0,0x71a1,0x71b0,0x71b1,
-    #0x72a6,0x72a7,0x72b6,0x72b7,0x72a0,0x72a1,0x72b0,0x72b1,
-    #0x73a6,0x73a7,0x73b6,0x73b7,0x73a0,0x73a1,0x73b0,0x73b1,
-    #0x7076,0x7077,0x7086,0x7087,0x7096,0x7097,
-    #0x7070,0x7071,0x7080,0x7081,0x7090,0x7091,
+    0x8251,0x8260,0x8240,
+    0x71a6,0x71a7,0x71b6,0x71b7,0x71a0,0x71a1,0x71b0,0x71b1,
+    0x72a6,0x72a7,0x72b6,0x72b7,0x72a0,0x72a1,0x72b0,0x72b1,
+    0x73a6,0x73a7,0x73b6,0x73b7,0x73a0,0x73a1,0x73b0,0x73b1,
+    0x7076,0x7077,0x7086,0x7087,0x7096,0x7097,
+    0x7070,0x7071,0x7080,0x7081,0x7090,0x7091,
     );
     
     my @tof_boards =(0x4c00,0x4c10,0x4c20,0x4c30,0x4c31,0x4c40,0x4c50,0x8600,0x8601,0x4800,0x4801,0x4802,0x4803,0x4810,0x4811,0x4812,0x4813,0x4820,0x4821,0x4822,
index 79e637ff406cdfecea16abee8893327c95451a44..20744928fbbac58d2a6d94c3719602dfc0e73949 100755 (executable)
@@ -37,11 +37,11 @@ ylabel  => "Sensor Number on Board",
 ymin    => -0.5,
 ymax    => 3.5,
 cbmax   => "100<*<1E5",
-cbmin   => 0,
+cbmin   => 0.0,
 cblabel => "B [uT]",
 noinit  => 1,
 additional => "",
-showvalues => 0,  };
+showvalues => 1,  };
 HPlot::PlotInit($plot1);
 
 my $str  = Hmon::MakeTitle(7, 9, "RICH Magnet",0);
@@ -52,42 +52,42 @@ Hmon::WriteFile("RichMagnet",$str);
 
 trb_init_ports() or die trb_strerror();
 
-my @calib = (((65.000,34.500,245.024),(-78.500,-20.000,-33.046),(-17.000,-33.000,-112.034),(2.5000,-24.000,43.524)),((106.000,-24.500,210.366),(-34.000,-60.500,-142.662),(114.000,-59.000,5.642),(73.000,-84.000,166.036)),((-31.000,-120.500,-156.364),(8.500,-85.000,-14.508),(54.500,-60.000,-96.790),(60.500,-108.500,-27.404)),(0,1,2,3),(0,1,2,3),(0,1,2,3));
+my $calib = [[[65.000,34.500,245.024],[-78.500,-20.000,-33.046],[-17.000,-33.000,-112.034],[2.5000,-24.000,43.524]],[[106.000,-24.500,210.366],[-34.000,-60.500,-142.662],[114.000,-59.000,5.642],[-29.500,-26.500,-131.378]],[[73.00,-84.000,166.036],[-31.000,-120.500,-156.364],[8.500,-85.000,-14.508],[54.500,-60.000,-96.790]],[[60.500,-108.500,-27.404],[-90.000,-49.000,169.260],[174.000,-55.500,-149.110],[-13.500,-33.500,-83.018]],[[-19.000,45.500,37.076],[95.500,10.00,211.978],[89.500,2.000,197.470],[13.000,6.500,-214.396]],[[-114.500,-19.500,157.170],[-11.500,-1.000,-58.032],[-1.500,-15.000,28.210],[41.000,15.500,155.558]]];
+
 while(1){
   my $count = 0;
   my $data;
+  my $magActive = trb_register_read_mem(0x0110, 0xe001,0,0x6) or sleep 5 and next;
   my $rich = trb_register_read_mem(0x0110, 0xe010,0,0x60) or sleep 5 and next;
-  print Dumper $rich;
-  
+  #print Dumper $magActive->{0x0110}[2];
+  my $val = 0;
   foreach my $b (@{$rich->{0x0110}}) {
-    my $t;
-    my $val;
+    my $t=0;
     
+    #printf("%u \n", ($magActive->{0x0110}[$count % 4] >> 8)); 
     if (($count % 4) == 0) {
-        $t = ($b & 0x3ffffff) / 100;
-        if ((($b >> 27)&0x1) == 1) {$t = $t * -1;}
+        #$t = ($b & 0x7ffffff) / 100;
+        #if ((($b >> 27)&0x1) == 1) {$t = $t * -1;}
         $val = 0;
     } else {
-        $t = ($b & 0x3ffffff) / 1000;
+        $t = int (($b & 0x7ffffff) / 1000);
         if ((($b >> 27)&0x1) == 1) {$t = $t * -1;}
+        $t = $t - $calib->[$count / 16][($count % 16) / 4][($count % 4)-1];
         $val += $t*$t;
     }
-    printf("%.3f\n",$t);
     if (($count % 4) == 3 ) {
         my $sens = ($count % 16) / 4;
         my $board = ($count / 16);
         
-        my $s = sprintf("%1x%1x",$board,$sens);
-        $data->{$s}=sqrt($val);
-        
-        HPlot::PlotFill('RichMagnet',sqrt($val),$board,$sens);#
+        if (($magActive->{0x0110}[$board] >> 8) == 0 ) {
+          HPlot::PlotFill('RichMagnet',sqrt($val),$board,$sens);#
+        }
     }
-    
-    
+
     
     $count ++;
     }
-    
+     #print Dumper \@calib;
     HPlot::PlotDraw('RichMagnet');  
                
   sleep 10;
index 18fbe2eb620ce0a2f976f8b5b5d0612fbe4553ca..6837d88d85cc80bc0fd77198f6e03d6f94081412 100755 (executable)
@@ -28,15 +28,23 @@ my $raw = {};
 my $val;
 my $mailerrstatecnt = 0;
 my ($max,$min,$avg,$sum,$count);
+my $interlockTemperature = 37.0; #Interlock value !!!
+
 
 trb_init_ports() or die trb_strerror();
 
 
+#my $LV3_3_Alarm = sprintf("HAD:RICH:PS:17:ALARM");
+#Perl2Epics::Connect("PS_RICH_3_3V_ALARM",$LV3_3_Alarm);
+
 while (1) {
   my $data;
+  my $trbneterr = 0;
   my $rich_temp1 = trb_register_read_mem(0x0110, 0xe100,0,10) or sleep 5 and next;
   my $rich_temp2 = trb_register_read_mem(0x0110, 0xe110,0,8) or sleep 5 and next;
+  my $Interlock_value = trb_register_read(0x0110, 0xe120) or $trbneterr = 1;
   my @rich_temp;
+  my $InterlockActive = "working";
  # push(@rich_temp,@{$rich_temp1->{0x0110}},@{$rich_temp2->{0x0110}});
 #      print Dumper @rich_temp;
   $min = 1000;
@@ -79,30 +87,34 @@ while (1) {
   
   $data->{updatetime} = $updatetime;
   
-  #-------Interlock workaround-------#
-  #var $Interlock = 0;
-  if ($max > 38.0 ) {
-    #printf  "Off\n";
-    #my $s = sprintf("HADES:RICH:HV:CR1:0:1000:PowerOn");
+  #-------Software Interlock-------#
+  my $InterlockValHW = (($Interlock_value->{0x0110} || 0) & 0xfff)/16;
+
+
+  if ($max > $interlockTemperature ) {
     my $s = sprintf("HAD:RICH:PS:17:SETONOFF");
     Perl2Epics::Connect("PS_RICH_3_3V",$s);
     Perl2Epics::Put("PS_RICH_3_3V",1);
-    #$Interlock = 1;
+    $InterlockActive = "Shutting down RICH ...";
   }
   
-  #-------Interlock workaround-------#
+  #-------Software Interlock-------#
+  #my $Epics_LV_data = Perl2Epics::GetAll();
+  my $strHWInterlock = "Hardware Interlock Temperature: " . $InterlockValHW ." &degC | ";
+ # if ($Epics_LV_data->{"PS_RICH_3_3V_ALARM"}->{val} == 1) {
+ #   $strHWInterlock .= "Shutting down RICH ...";
+ # } else {
+    $strHWInterlock .= "HW Installed";
+ # }
   
+  if ($trbneterr == 1) {$strHWInterlock = "Failure Trb3Sc 0x0110";}
 
   my $qastate = QA::GetQAState('below', $max, @QA::RichInnerTempLimits);
   
   my $qastate_interlock = QA::GetQAState('below', $max, @QA::RichInnerTempLimits);
   my $str = sprintf("%i - %i", $min, $max);
   QA::WriteQALog($fqa,"rich","bkpl", 40, $qastate, "Temperature", $str, 
-                 "Min/Max temperature in RICH " . $str);
- # my $strInterlockQA;               
- # if ($Interlock == 0)               
- # QA::WriteQALog($fqa,"rich","inlk", 40, $qastate_interlock, "Interlock", "LV is on..",
- # "LV is ...");
+                 "Min/Max temperature in RICH " . $str . " &degC<br> Software Interlock Temperature: " . $interlockTemperature . " &degC | " .$InterlockActive ."<br>". $strHWInterlock);
   
   my $fh;
   open($fh, ">", Hmon::HMONDIR."/files/richTemperatureBackplane.json");
index e89c72541611c2935bf46b626b7e1a3a44512b3b..ac8934acf1ddec7ddc370a43be9686207dce314e 100755 (executable)
@@ -11,6 +11,9 @@ use HPlot;
 use Time::HiRes qw(usleep time);
 use List::Util qw[min max];
 
+use Encode qw(encode from_to);
+use JSON::XS;
+
 
 my $plot1 = {
 name    => "RichRateQ1",
@@ -125,29 +128,66 @@ my $time = time();
 my $diff;
 my $iter = 0;
 
+
+
 trb_init_ports() or die trb_strerror();
 
 
 while(1) {
+  #my $data;
+  #my $max = 0 ;
+  #my $min = 5E9;
+  
   my $o = trb_register_read_mem(0xfe51,0xc000,0,33) or die trb_strerror() or sleep 5 and next;
 
   if (defined $old) {
     my $tdiff = time() - $oldtime;
     foreach my $b (keys %$o) {
+      #my $ratesum = 0;
       my $sec  = ($b>>1) & 0x3;
       my $xpos =  (($b>>8)&0xF)*24 + (($b>>4)&0xF)*2 + ($b&1);
 
       for my $v (0..31) {
         my $vdiff = ($o->{$b}->[$v+1]&0xfffffff) - ($old->{$b}->[$v+1]&0xfffffff);
+        
         if ($vdiff < 0) { $vdiff += 2**28;}
         $diff->{$b}->[$v+1] = $vdiff/($tdiff|1);
+        #$ratesum += $diff->{$b}->[$v+1];
         HPlot::PlotFill('RichRateQ'.$sec,$diff->{$b}->[$v+1],$xpos,$v);
         }
+      #my $s = sprintf("0x%04x",$b);
+      #$data->{$s}= int(100*($ratesum / 32) +0.5) /100;
+      
+      #$min = $data->{$s} if $data->{$s} < $min;
+      #$max = $data->{$s} if  $data->{$s}> $max;
       }
     for my $i (0..3) {    
       HPlot::PlotDraw('RichRateQ'.$i);    
       }
-    }
+    
+    
+    
+   # $data->{max} = $max;
+   # $data->{min} = $min;
+   # $data->{symbol} = " Hits/s";
+   # $data->{title} = "Mean DiRICH TDC Rate";
+    
+   # my $timeStamp = localtime();
+    
+   # my @months = qw( Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec );
+   # my @days = qw(Sun Mon Tue Wed Thu Fri Sat Sun);
+   # my ($sec,$minute,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
+   # my $updatetime = sprintf("%03s, %02d %s %04d  -  %02d:%02d:%02d",$days[$wday], $mday, $months[$mon], 1900 + $year, $hour, $minute, $sec);
+    
+   # $data->{updatetime} = $updatetime; 
+    
+    #print Dumper $data;
+   # my $fh;
+   # open($fh, ">", Hmon::HMONDIR."/files/richMeanRateDiRICH.json");
+   # print $fh   encode_json($data);
+   # close $fh;
+   }
+    
   $old = $o;
   $oldtime = time();
   sleep 2;
old mode 100644 (file)
new mode 100755 (executable)
index bad57a979adbebc8c770bda30d6b006e9ef08295..ba04e0804cea23640e3db2ba32789bce7eca722b 100755 (executable)
@@ -56,7 +56,7 @@ while (1) {
 
   #Clean-up by compare to former values
   foreach my $b (keys %$boards) {
-    if(! defined $allboards->{$b} || ($boards->{$b} - $allboards->{$b}) == 0) {
+    if(! defined $allboards->{$b} || ($boards->{$b} == $allboards->{$b})) {
       $boards->{$b} = 0;
       }
     }
@@ -88,7 +88,7 @@ while (1) {
   my $totalsum = 0;
   if (%laststore2) {
     foreach my $c (keys %store2) {
-      my $diff = $store2{$c} - ($laststore2{$c} || $store2{$c});
+      my $diff = $store2{$c} - ($laststore2{$c} || 0);
       while ($diff < 0) {
         $diff += 2**16;
       }
index 37f211dfba45f5c0b3c9e9f2fed9c20090158700..37760666cec4ff89f9654baa9e73a1bf61cdfbbc 100755 (executable)
@@ -101,15 +101,15 @@ function reload() {
   xmlhttp.onreadystatechange = function() {
     if(xmlhttp.readyState == 4) {
       if(!document.getElementById("footer")) {
-        document.getElementById("content").style.opacity="0";
+        //document.getElementById("content").style.opacity="0";
         document.getElementById("content").innerHTML=xmlhttp.responseText;
-        setTimeout('document.getElementById("content").style.opacity="1"',100);
+        //setTimeout('document.getElementById("content").style.opacity="1"',100);
         }
       else {  
         document.getElementById("content").innerHTML=xmlhttp.responseText;
         }
         
-      setTimeout('document.getElementById("contentback").innerHTML=document.getElementById("content").innerHTML',200);
+      //setTimeout('document.getElementById("contentback").innerHTML=document.getElementById("content").innerHTML',200);
         
       if(document.getElementById('logbox')) {
         if(saveScrollTop) {
index 25162d0bc37867540c2954ffb8e97a627f50cf63..b757ff43be91caa7713c5716660d332b64798543 100755 (executable)
@@ -30,9 +30,9 @@ my %range_list = (
                  'TC1238'           => {'min' => 4.6    , 'max' =>4.9  },
                  'TC1248'           => {'min' => 4.5    , 'max' =>4.7  },
                  'FI1400'           => {'min' => 0.36   , 'max' =>0.49 },
-                 'PSUI_rbk'         => {'min' => 2495   , 'max' =>2497 },
+          'PSUI_rbk'         => {'min' => 2495   , 'max' =>2497 },
                  'PSUV_rbk'         => {'min' => 0      , 'max' =>1    },
-                 'BBI'              => {'min' => 419    , 'max' =>450  },
+                 'BBI'              => {'min' => 419    , 'max' =>450  },
                  'LL1708'           => {'min' => 55.2   , 'max' =>63.0 },
                  'TP1240'           => {'min' => 75.5   , 'max' =>85.0 , 'cal_max' => 2},
                  'PI2610'           => {'min' => 1.7    , 'max' =>3.1  },
index 410052cbf97baa723b95929bd3385ccf08e7862b..e9e98a7c1ca1857a64dfce9bdadb5aa12266e1e2 100755 (executable)
@@ -4,7 +4,8 @@ use strict;
 use warnings;
 use v5.10.0;
 
-my @cpus = qw |lxhadeb02 lxhadeb03 lxhadeb04 lxhadeb05 lxhadeb06 lxhadeb07 lxhadesdaq hadesdaq01 hadesdaq02 hades30 hadesp31 hades33|;
+my @cpus = qw |lxhadeb02 lxhadeb03 lxhadeb04 lxhadeb05 lxhadeb06 lxhadeb07 lxhadeb08 lxhadeb09 lxhadeb10 lxhaddcs03 lxhaddcs04 lxhaddcs05 lxhaddcs06 lxhadesdaq hadesdaq01 hadesdaq02 hades30 hadesp31 hades33
+lxhadeb02p lxhadeb03p lxhadeb04p lxhadeb05p lxhadeb06p lxhadeb07p lxhadeb08p lxhadeb09p lxhadeb10p lxhaddcs03p lxhaddcs04p lxhaddcs05p lxhaddcs06p lxhadesdaqp hadesdaqp01 hadesdaqp02 hadesp30 hadesp33|;
 
 for my $cpu (@cpus) {
     my $c = "~/trbsoft/hadesdaq/hmon/hmon_ssh hadaq\@$cpu -N -f </dev/null &";
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 85053c7d25213f91a592a1d35af76608b40eb503..e27a1b467a932fdd1a6a15f65bfba3b0a992fa3d 100755 (executable)
@@ -15,7 +15,7 @@ my $title = qq$<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
   <link href="../files/indexstyles.css" rel="stylesheet" type="text/css"/>
   <title>Hmon Vertex Reconstruction</title>
   </head>
-  <body class="index"  style="position:relative;background:#d8e8f8;width:850px;margin:auto;padding:120px 0 40px 0">
+  <body class="index"  style="position:relative;background:#d8e8f8;width:1250px;margin:auto;padding:120px 0 40px 0">
   <div style="position:fixed;left:0;top:0;width:100%;height:40px;background:#d8e8f8;box-shadow:none;"></div>
   <h1 style="position:fixed;top:5px;left:0px;width:100%;display:block;text-align:center;margin:26px 0 0px 0">HADES QA Plots</h1>
   <div  style="position:fixed;left:10px;top:30px;background:#346;padding:10px;margin:-22px 5px 5px 15px;"><img style="background:white;padding:6px 0 6px 0;" src = "../doc/background.png" width=84></div>
@@ -32,10 +32,7 @@ my $out = $title;
   <div class="linkbox">
   <ul>
   <li><a href="qaplot_Main.htm">Main</a><br>
-  <li><a href="qaplot_Hodo.htm">Hodoscope</a><br>
   <li><a href="qaplot_Start.htm">Start</a><br>
-  <li><a href="qaplot_PionTrackerRaw.htm">Pion Tracker Raw</a><br>
-  <li><a href="qaplot_PionTrackerCal.htm">Pion tracker Cal</a><br>
   <li><a href="qaplot_RICH.htm">RICH</a><br>
   <li><a href="qaplot_MDCMon.htm">MDC</a><br>
   <li><a href="qaplot_MDCExpert.htm">MDC Expert</a><br>
@@ -44,7 +41,7 @@ my $out = $title;
   <li><a href="qaplot_TOFMon.htm">TOF</a><br>
   <li><a href="qaplot_RPC.htm">RPC</a><br>
   <li><a href="qaplot_WALLMon.htm">Wall</a><br>
-  <li><a href="qaplot_SHOWERMon.htm">Shower</a>
+  <li><a href="qaplot_EcalMon.htm">ECal</a>
   <li><a href="qaplot_Physics.htm">Physics</a>
   </ul></div>
   <div class="linkbox">
@@ -57,7 +54,7 @@ open ($fh,"> ".Hmon::HMONDIR."/files/qa.htm") or die;
 print $fh $out;
 close $fh;
 
-my @pages = qw(Main Start Hodo PionTrackerRaw PionTrackerCal RICH MDCMon MDCTimes MDCTimesRaw MDCExpert MDCTimesCal TOFMon RPC WALLMon SHOWERMon Physics);  
+my @pages = qw(Main Start  RICH MDCMon MDCTimes MDCTimesRaw MDCExpert MDCTimesCal TOFMon RPC WALLMon EcalMon Physics);  
 
 my $files = {};
 # $files->{'Main'} = ["MainPTScaler", "MainTRBNetDebugInfo", "MainTrigger", "MainTriggerTrend"];
@@ -73,9 +70,9 @@ my $files = {};
 # $files->{'Physics'} = ["PhysBetaMomSys0","PhysBetaMomSys1","PhysMatch","PhysMultCand","PhysMultDist","PhysToTmips","PhysVertex"];
 
 $files-> { "Main" } = [  "MainTrigger" ,  "MainTriggerTrend" ,  "MainPTScaler" ,  "MainTRBNetDebugInfo"  ];
-$files-> { "Hodo" } = [  "HodoMult" ,  "HodoTime"  ];
-$files-> { "PionTrackerRaw" } = [  "Mult" ,  "TS" ,  "Strip" ,  "Pileup" ,  "Overflow" ,  "ADCStrip" ,  "TSStrip" ,  "XY" ,  "RawPTHodoDt"  ];
-$files-> { "PionTrackerCal" } = [  "CalTS" ,  "CalADCStrip" ,  "CalTSStrip" ,  "CalPTHodoDt"  ];
+$files-> { "Hodo" } = [  "HodoMult" ,  "HodoTime"  ];
+$files-> { "PionTrackerRaw" } = [  "Mult" ,  "TS" ,  "Strip" ,  "Pileup" ,  "Overflow" ,  "ADCStrip" ,  "TSStrip" ,  "XY" ,  "RawPTHodoDt"  ];
+$files-> { "PionTrackerCal" } = [  "CalTS" ,  "CalADCStrip" ,  "CalTSStrip" ,  "CalPTHodoDt"  ];
 $files-> { "Start" } = [  "StartMain"  ];
 $files-> { "RICH" } = [  "RICHMult" ,  "RICHCharge" ,  "RICHColRow" ,  "RICHHitMult" ,  "RICHDirClus"  ];
 $files-> { "MDCMon" } = [  "MDCMain" ,  "Errors"  ];
@@ -86,9 +83,9 @@ $files-> { "MDCTimesRaw" } = [  "MDCTimesRaw0" ,  "MDCTimesRaw1" ,  "MDCTimes2Ra
 $files-> { "TOFMon" } = [  "TOFMain" ,  "TOFADC" ,  "TOFTDC" ,  "TOFHIT"  ];
 $files-> { "RPC" } = [  "RPCMain" ,  "RPCRawRPCMult" ,  "RPCRawSecMult" ,  "RPCRawColCellMult" ,  "RPCRawColCellMult2" ,  "RPCRawHitsTrend" ,  "RPCRawChargeDiff" ,  "RPCFeeTrbMbo" ,  "RPCFeeMboDbo" ,  "RPCFeeTrbChannel" ,  "RPCRpcHit" ,  "RPCRpcShower"  ];
 $files-> { "WALLMon" } = [  "WALLMain" ,  "WALLHit" ,  "WALLControl" ,  "WALLControlLATCH"  ];
-$files-> { "SHOWERMon" } = [  "SHOWERMain" ,  "SHOWERMults" ,  "SHOWERSUMS" ,  "SHOWERCAL" ,  "SHOWERSUMTREND"  ];
+$files-> { "SHOWERMon" } = [  "SHOWERMain" ,  "SHOWERMults" ,  "SHOWERSUMS" ,  "SHOWERCAL" ,  "SHOWERSUMTREND"  ];
 $files-> { "Physics" } = [  "PhysMultCand" ,  "PhysMatch" ,  "PhysMultDist" ,  "PhysBetaMomSys0" ,  "PhysBetaMomSys1" ,  "PhysVertex" ,  "PhysToTmips"  ];
-
+$files-> { "EcalMon"} = [];
 
 # while(1) {
  
@@ -99,7 +96,7 @@ $files-> { "Physics" } = [  "PhysMultCand" ,  "PhysMatch" ,  "PhysMultDist" ,  "
 
     for(my $p=0; $p < scalar @{$files->{$f}} ;$p++) {
       $out .= "<h3>$files->{$f}->[$p]</h3>";
-      $out .= "<div class=\"linkbox\" style=\"width:796px\"><img src=\"../qa/png/$files->{$f}->[$p].png\"></div>";
+      $out .= "<div class=\"linkbox\" style=\"width:1200px\"><img src=\"../qa/png/$files->{$f}->[$p].png\"></div>";
       }
 
     $out .= $foot;
index 340b92913efc9c7ffb32bae1c0c662e15d4b7bea..59ce73422a44cc71fc8285ae8e86ffc8082eb7f0 100755 (executable)
@@ -73,7 +73,7 @@ my $plot3 = {
     sizex   => 850,
     sizey   => 220,
     xmin    => 0,
-    xmax    => 96,
+    xmax    => 95,
     ymin    => '600',
     curves  => 1,
     countup => 1,
@@ -126,16 +126,35 @@ my $errortimer = 0;
 
 
 while(1) {
-  my $min = 1E5;
-  my $max = 0;
+  my $min_v = -1E5;
+  my $max_v =  1E5;
+  my $min_i = -1E5;
+  my $max_i =  1E5;
+  my $ChnlsOn = 0;
   my $data = Perl2Epics::GetAll();
-  #$str =  "<!DOCTYPE html>\n\n<html>\n<head>\n";
-  #$str .= "<style>\n.dot {\n height: 25px;\n width:25px;\n border-radius: 50%;\n display: inline-block;\n}\n \n ";
-  #$str .= "</style>\n</head>\n<body>\n";
+  
+    if ($data->{"HVPowerOn"}->{val} != 0) {
+        for (my $i = 0; $i <= 5;$i++){
+            for (my $j = 0; $j<=15; $j++) {
+            my $cnt = ($i*16)+$j;
+            
+            if ( (($i == 2) && ($j == 9)) || (($i == 3) && ($j == 5)) || (($i == 4) && ($j == 3)) || (($i == 4) && ($j >= 5)) || ($i > 4) ) { next;} #list of unused channels
+            
+            my $voltage_temp = $data->{"U$cnt"}->{val};
+            if ($min_v <= $voltage_temp) {$min_v = $voltage_temp;}
+            if ($max_v >= $voltage_temp) {$max_v = $voltage_temp;}
+            
+            my $current_temp = $data->{"I$cnt"}->{val};
+            if ($min_i <= $current_temp) {$min_i = $current_temp;}
+            if ($max_i >= $current_temp) {$max_i = $current_temp;}
+            }
+        }
+    }
+  
   $str = Hmon::MakeTitle(11, 18, "RICH HV", 1, "");
   $str .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"files/styles.css\">";
 
-  $str .= "<div style=\"text-align:left; margin-top: 10px;\">";
+  $str .= "<div style=\"text-align:left; margin-top: 10px; width: 200px\">";
   if ($data->{"HVPowerOn"}->{val} == 0) {
     $str .= "<div><div class=\"redbutton\" style=\"float:left\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> Main Switch HV: OFF</p></div>";
   } else {
@@ -143,9 +162,6 @@ while(1) {
   }
   
   if ($data->{"HVPowerOn"}->{val} != 0) {
-    #$str .= "<br>";
-    my $ChnlsOn = 0;
-    
     for(my $i = 0; $i <=5; $i++) {
         for(my $j = 0; $j<=15; $j++) {
         my $cnt = ($i*16)+$j;
@@ -154,8 +170,10 @@ while(1) {
     }
     if ($ChnlsOn == 0) {
         $str .= "<div><div class=\"redbutton\" style=\"float:left;\" title=\"channels off\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> channels off  (";
-    } elsif ($ChnlsOn > 66) {
+    } elsif ($ChnlsOn < 66) {
         $str .= "<div><div class=\"greenbutton\" style=\"float:left; background-color: orange;\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> channels on   (";
+    } elsif ($ChnlsOn > 66) {
+        $str .= "<div><div class=\"greenbutton\" style=\"float:left; background-color: #ffcc00;\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> channels on   (";
     } else {
         $str .= "<div><div class=\"greenbutton\" style=\"float:left\"></div><p style=\"text-align:left;position: relative; left: 10px;top: 6px;\"> channels on   (";
     }    
@@ -193,16 +211,16 @@ while(1) {
   $timer++;
   
   # average over current in sector 1 and 6
-  $current_sum += $data->{"I1"}->{val} + $data->{"I6"}->{val} if(defined $data->{"I1"}->{val} && defined defined $data->{"I6"}->{val});
+  #$current_sum += $data->{"I1"}->{val} + $data->{"I6"}->{val} if(defined $data->{"I1"}->{val} && defined defined $data->{"I6"}->{val});
   #printf "cur val:  %d\n", $data->{"I5"}->{val};
 
-  $current_average = $current_sum / $OVERCURRENT_period / 4 / 2;
+  #$current_average = $current_sum / $OVERCURRENT_period / 4 / 2;
 
   my $qastate = QA::OK;
   my $value = "";
   my $longtext = "";
 
-  if($min < 2200) {
+  if($min_v > -800 || $max_v < -1150) {
     $qastate = QA::WARN;
     $errortimer++;
     }
@@ -215,32 +233,35 @@ while(1) {
       Hmon::Speak('richhv', "Rich high voltage error");
       }
     }
-  
+    
+$qastate = QA::WARN_2 if ($ChnlsOn < 66);
+$qastate = QA::ERROR_2 if ($ChnlsOn == 0);
 $qastate = QA::NOTE if ($QA::RichHvOff == 1);
 
   if( $timer % (4*$OVERCURRENT_period) == 0) {
-      $value    = sprintf("%.2f / %.2f kV",$min/1000,$max/1000);
-      $longtext = sprintf("Averaged current in RICH HV: %i uA",$current_average);
-     # $longtext.= sprintf("<br>HV settings: %i, %i, %i, %i, %i, %i V", $data->{"U1"}->{val}||-1, $data->{"U2"}->{val}||-1,
-     #                                                                  $data->{"U3"}->{val}||-1, $data->{"U4"}->{val}||-1,
-     #                                                                  $data->{"U5"}->{val}||-1, $data->{"U6"}->{val}||-1);
-      #print "current_average: $current_average, sum: $current_sum\n";
-  
-      $current_sum = 0;
-      QA::WriteQALog($flog,"other","rich",30,$qastate,"RICH HV",$value,$longtext);
+    if ($data->{"HVPowerOn"}->{val} != 0) {
+      $value    = sprintf("%.2f / %.2f kV",$min_v/1000,$max_v/1000);
+      $longtext = sprintf("Min: %.2f kV | Max: %.2f kV <br> Min: %.4f mA | Max: %.4f mA <br> HV channel On: %i/66",$min_v/1000,$max_v/1000,$min_i,$max_i,$ChnlsOn);
+    } else {
+      $value    = sprintf("HV-Crate is OFF");
+      $longtext = sprintf("HV-Crate is OFF");
+    }
+      #$current_sum = 0;
+      QA::WriteQALog($flog,"rich","richhv",30,$qastate,"RICH HV",$value,$longtext);
   }
   
+  #printf("%f  %f \n",$min, $max);
   if ($data->{"HVPowerOn"}->{val} != 0) {
     for (my $i = 0; $i <= 5;$i++){
         for (my $j = 0; $j<=15; $j++) {
         my $cnt = ($i*16)+$j;
         HPlot::PlotAdd("RichCurr",$data->{"I$cnt"}->{val}||-1,);
         HPlot::PlotAdd("RichVolt",$data->{"U$cnt"}->{val}||-1,);
-        HPlot::PlotAdd("RichResist",$data->{"R$cnt"}->{val}/1000||-1,);
+        HPlot::PlotAdd("RichResist",($data->{"R$cnt"}->{val}/1000)||-1,);
         }
     }
     
-    HPlot::PlotAdd("RichResist",1,); #to avoid error messages
+    HPlot::PlotAdd("RichResist",700,); #to avoid error messages
     
     #print Dumper $data;
     if($timer%8 == 0) {
index 2b5da0f2a2ba2dd61aed1a2c7db32498ee1c35b3..d3c0fcd6736e42a2b3529b7eaac3c744c560364c 100755 (executable)
@@ -23,44 +23,7 @@ HAD:TOFHV:G3:status:alive:roc:average
 HAD:TOFHV:G4:status:alive:roc:average
 HAD:TOFHV:G5:status:alive:roc:average
 HAD:TOFHV:G6:status:alive:roc:average
-HAD:RPCHV:G8:status:alive:roc:average
-HAD:RPCHV:G9:status:alive:roc:average
-HAD:RICH:HV:G25:status:alive:roc:average
-HAD:SHWR:HV:G26:status:alive:roc:average
-HAD:SHWR:HV:G27:status:alive:roc:average
-HAD:SHWR:HV:G28:status:alive:roc:average
-HAD:SHWR:HV:G29:status:alive:roc:average
-HAD:SHWR:HV:G30:status:alive:roc:average
-HAD:SHWR:HV:G31:status:alive:roc:average
-HAD:RICH:HV:G32:status:alive:roc:average
-HAD:MDC:HV:G41:status:alive:roc:average
-HAD:MDC:HV:G42:status:alive:roc:average
-HAD:MDC:HV:G43:status:alive:roc:average
-HAD:MDC:HV:G44:status:alive:roc:average
-HAD:MDC:HV:G4011:status:alive:roc:average
-HAD:MDC:HV:G4012:status:alive:roc:average
-HAD:MDC:HV:G4013:status:alive:roc:average
-HAD:MDC:HV:G4014:status:alive:roc:average
-HAD:MDC:HV:G4015:status:alive:roc:average
-HAD:MDC:HV:G4016:status:alive:roc:average
-HAD:MDC:HV:G4021:status:alive:roc:average
-HAD:MDC:HV:G4022:status:alive:roc:average
-HAD:MDC:HV:G4023:status:alive:roc:average
-HAD:MDC:HV:G4024:status:alive:roc:average
-HAD:MDC:HV:G4025:status:alive:roc:average
-HAD:MDC:HV:G4026:status:alive:roc:average
-HAD:MDC:HV:G4031:status:alive:roc:average
-HAD:MDC:HV:G4032:status:alive:roc:average
-HAD:MDC:HV:G4033:status:alive:roc:average
-HAD:MDC:HV:G4034:status:alive:roc:average
-HAD:MDC:HV:G4035:status:alive:roc:average
-HAD:MDC:HV:G4036:status:alive:roc:average
-HAD:MDC:HV:G4041:status:alive:roc:average
-HAD:MDC:HV:G4042:status:alive:roc:average
-HAD:MDC:HV:G4043:status:alive:roc:average
-HAD:MDC:HV:G4044:status:alive:roc:average
-HAD:MDC:HV:G4045:status:alive:roc:average
-HAD:MDC:HV:G4046:status:alive:roc:average
+HAD:RPC:HV:G8:status:alive:roc:average
 HAD:MDC:HV:P1:S1:TRIP:status:alive:roc:average
 HAD:MDC:HV:P1:S2:TRIP:status:alive:roc:average
 HAD:MDC:HV:P1:S3:TRIP:status:alive:roc:average
@@ -87,12 +50,49 @@ HAD:MDC:HV:P4:S5:TRIP:status:alive:roc:average
 HAD:MDC:HV:P4:S6:TRIP:status:alive:roc:average
 HAD:MDC:TEMP:TempLV:status:alive:roc:average
 );
-
+# HAD:SHWR:HV:G26:status:alive:roc:average
+# HAD:SHWR:HV:G27:status:alive:roc:average
+# HAD:SHWR:HV:G28:status:alive:roc:average
+# HAD:SHWR:HV:G29:status:alive:roc:average
+# HAD:SHWR:HV:G30:status:alive:roc:average
+# HAD:SHWR:HV:G31:status:alive:roc:average
+# HAD:RICH:HV:G25:status:alive:roc:average
 # HAD:MDC:HV:Ind1:TRIP:status:alive:roc:average
 # HAD:MDC:HV:Ind2:TRIP:status:alive:roc:average
 # HAD:MDC:HV:Ind3:TRIP:status:alive:roc:average
 # HAD:MDC:HV:Ind4:TRIP:status:alive:roc:average
 
+# HAD:RPC:HV:G9:status:alive:roc:average
+
+# HAD:MDC:HV:G41:status:alive:roc:average
+# HAD:MDC:HV:G42:status:alive:roc:average
+# HAD:MDC:HV:G43:status:alive:roc:average
+# HAD:MDC:HV:G44:status:alive:roc:average
+# HAD:MDC:HV:G4011:status:alive:roc:average
+# HAD:MDC:HV:G4012:status:alive:roc:average
+# HAD:MDC:HV:G4013:status:alive:roc:average
+# HAD:MDC:HV:G4014:status:alive:roc:average
+# HAD:MDC:HV:G4015:status:alive:roc:average
+# HAD:MDC:HV:G4016:status:alive:roc:average
+# HAD:MDC:HV:G4021:status:alive:roc:average
+# HAD:MDC:HV:G4022:status:alive:roc:average
+# HAD:MDC:HV:G4023:status:alive:roc:average
+# HAD:MDC:HV:G4024:status:alive:roc:average
+# HAD:MDC:HV:G4025:status:alive:roc:average
+# HAD:MDC:HV:G4026:status:alive:roc:average
+# HAD:MDC:HV:G4031:status:alive:roc:average
+# HAD:MDC:HV:G4032:status:alive:roc:average
+# HAD:MDC:HV:G4033:status:alive:roc:average
+# HAD:MDC:HV:G4034:status:alive:roc:average
+# HAD:MDC:HV:G4035:status:alive:roc:average
+# HAD:MDC:HV:G4036:status:alive:roc:average
+# HAD:MDC:HV:G4041:status:alive:roc:average
+# HAD:MDC:HV:G4042:status:alive:roc:average
+# HAD:MDC:HV:G4043:status:alive:roc:average
+# HAD:MDC:HV:G4044:status:alive:roc:average
+# HAD:MDC:HV:G4045:status:alive:roc:average
+# HAD:MDC:HV:G4046:status:alive:roc:average
+
 my $flog = QA::OpenQAFile();
 
 for my $v (@variables) {
old mode 100644 (file)
new mode 100755 (executable)
index 33ff754025288b394830537d39e1f007d3dfebfd..09210d8016a05cbc390dbd1cc03bd7369095a44a 100644 (file)
@@ -807,7 +807,7 @@ td {
     </tr>
     
     <tr>
-     <td class="combiner-4-h" id="0x82a5" rowspan="1" colspan="6"><span class="tooltiptext" id="0x82a5_s">0x82a5</span></td> <!-- Combiner-->
+     <td class="power-4-h" rowspan="1" colspan="6" id="0x8200"><span class="tooltiptext" id="0x8200_s">0x8200</span></td>
 
      <td class="dirich" rowspan="3" colspan="1" id="0x7904"><span class="tooltiptext" id="0x7904_s">0x7904</span></td>
      <td class="dirich" rowspan="3" colspan="1" id="0x7905"><span class="tooltiptext" id="0x7905_s">0x7905</span></td>
@@ -945,7 +945,8 @@ td {
     </tr>
     
     <tr>
-     <td class="power-4-h" rowspan="1" colspan="6" id="0x8200"><span class="tooltiptext" id="0x8200_s">0x8200</span></td>
+     
+     <td class="combiner-4-h" id="0x82a5" rowspan="1" colspan="6"><span class="tooltiptext" id="0x82a5_s">0x82a5</span></td> <!-- Combiner-->
      <td class="power-4-h" rowspan="1" colspan="6" id="0x8200"><span class="tooltiptext" id="0x8200_s">0x8200</span></td>
     </tr>
 
@@ -1763,7 +1764,7 @@ td {
 <p id="MaxVal" >max</p>
 <p id="MinVal" style="margin-top:555px;"> min</p>
 
-
+<p id="cutoff"></p>
 
 <script type="text/javascript">
 
@@ -1772,9 +1773,18 @@ var max = 80;
 var symbol = '';
 var file = window.location.hash.substr(1);
 
+
+var pos = file.indexOf("#");
+var cutoff = window.location.hash.substr(pos+2);
 var myReload = setInterval("getdata('getjson.cgi?'+file,updatedata)",10000);
 getdata('getjson.cgi?'+file,updatedata);
-    
+
+if (pos == -1) { 
+  cutoff = 0
+} else {
+  document.getElementById("cutoff").innerHTML = "Cutoff: " + cutoff;
+}
+
 function color(id,value) {
   var val = map(value,min,max);
   var x = 240.0 - val;
@@ -1822,6 +1832,11 @@ function updatedata(d) {
     max = data['max'];
     min = data['min'];
     symbol = data['symbol'];
+
+    if (pos != -1) {
+      max = parseInt(cutoff);
+    }
+    
     document.getElementById("MaxVal").innerHTML = max.toFixed(2) + " " + symbol;
     document.getElementById("MinVal").innerHTML = min.toFixed(2)+ " " + symbol;
     document.getElementById("title").innerHTML = data["title"];
index d4fd4b82f773a5f255520a823ba993e0addaae92..75435bd5d70824281c9fd5350118ebc3c8508141 100755 (executable)
@@ -24,7 +24,7 @@ if($f) {
     open(FTRB, "$cmd|");
     while(my $a = <FTRB>) {
       if ($inhibit == 0) {
-        system("espeak -ven+m2 -s 130 -g 1 \"$a\" 2>/dev/null");
+        system("espeak -vus-mbrola-1 -s125  \"$a\" 2>/dev/null #-ven+m2 -s 130 -g 1 ");
         }
       }
     }
index 177e326c85b2915e12d7998dfe29bb99d8d3f457..4c7a0443600c82a6a0d610877e51bc46e0170a6e 100755 (executable)
@@ -9,10 +9,12 @@ mkdir /dev/shm/hmon
 #Kill old tunnel, make new one. Better: Check if tunnel still exists, if not restart.
 echo "  <Hmon>     Renewing tunnels and environment..."
 
-pgrep -f 'ssh -f -R 8888' >/dev/null
+pgrep -f 'ssh -R 8888' >/dev/null
 if [ $? -eq 1 ]; then
 echo "  <Hmon>     No tunnel found, digging new one";
-ssh -f -R 8888:hades33.gsi.de:80 -R 3060:hades33.gsi.de:80 -R 8889:hades33.gsi.de:1234 -R 9999:lxhadeb06p:80  cerberus.x-matter.uni-frankfurt.de -N &
+#ssh -f -R 8888:hades33.gsi.de:80 -R 3060:hades33.gsi.de:80 -R 8889:hades33.gsi.de:1234 -R 9999:lxhadeb06p:80  cerberus.x-matter.uni-frankfurt.de -N &a
+#ssh -f -R 8888:hades33.gsi.de:80 -R 3060:hades33.gsi.de:80 cerberus.x-matter.uni-frankfurt.de -N &
+tmux new-session -s cerberus_tunnel -d  'while true; do ssh -R 8888:hades33.gsi.de:80 -R 3060:hades33.gsi.de:80 cerberus.x-matter.uni-frankfurt.de -N -v; sleep 10; done'
 fi
 
 pkill -f speakdaemon.pl
@@ -32,8 +34,8 @@ mkdir `pwd`/pion
 
 DISPLAY=:0 ssh -f -X lxhadeb06p "ping -i 100 lxhadesdaqp" &>/dev/null &
 
-sshfs -o allow_other hades-qa@lxhadeb06p:/home/hades-qa/online/jun14/pics/vertex `pwd`/vertex
-sshfs -o allow_other hades-qa@lxhadeb06p:/home/hades-qa/online/aug14/pics `pwd`/qa
+sshfs -o allow_other hades-qa@lxhadeb06p:/home/hades-qa/online/aug18/pics/vertex `pwd`/vertex
+sshfs -o allow_other hades-qa@lxhadeb06p:/home/hades-qa/online/aug18/pics `pwd`/qa
 sshfs -o allow_other hadaq@lxhadeb06p:/data01/tmp/ `pwd`/pion
 
 
@@ -55,11 +57,13 @@ ln -fs `pwd`/getpic.cgi /srv/www/htdocs/mon/
 ln -fs `pwd`/mdc.png /srv/www/htdocs/mon/
 ln -fs `pwd`/background.png /srv/www/htdocs/mon/files/
 ln -fs `pwd`/QA.pm /srv/www/htdocs/mon/
-ln -fs `pwd`/styles.css files/
-ln -fs `pwd`/indexstyles.css files/
+#ln -fs `pwd`/styles.css files/
+#ln -fs `pwd`/indexstyles.css files/
 ln -fs `pwd`/rich_drawing.htm /srv/www/htdocs/mon/
+ln -fs `pwd`/rich_drawing_2.htm /srv/www/htdocs/mon/
 ln -fs `pwd`/rich_drawing_bkpl.htm /srv/www/htdocs/mon/
-
+cp styles.css files
+cp indexstyles.css files
 
 #rm ~/trbsoft/hadesdaq/hmon/files/*.htt
 
index 6f50ef4ccd38a3b23a61473cbc1e17da49e0d75e..427b6ac5f3766cc90e9ae82a8db74a2025b602f2 100644 (file)
 
 
 #                    Dest Port    Src MAC      Src IP        Src Port #          #   TDC Calib flag
-# Hub    #  Type  #     C3     #     C4     #     C6     #     C7     #   EB IP  # 1:NO 1:linear 2:complex
+# Hub    #  Type  #     C3     #     C4     #     C6     #     C7     #   EB IP  # 1:NO 1:linear 2:complex 11:linear with ToT 15ns
 ##########################################################################################################
 # JAM 25-may-2018: this first EB will be also used as pseudo node to setup the dabc bnet
 # this is workaround to test the hub destination register
   0x8a03     0        0xc679     0xdead8a03   0xc0a864A9     0xc679     0xc0a86409 1  # ecal- all to lxhadeb09
   0x8a04     0        0xc67a     0xdead8a04   0xc0a864AA     0xc67A     0xc0a86409 1  # ecal- all to lxhadeb09
   0x8a05     0        0xc67b     0xdead8a05   0xc0a864AB     0xc67B     0xc0a86409 1  # ecal- all to lxhadeb09   
-  0x83c0     0        0xc67c     0xdead83c0   0xc0a864AC     0xc67C     0xc0a86409 1  # rich - to lxhadeb09
-  0x83c1     0        0xc67d     0xdead83c1   0xc0a864AD     0xc67D     0xc0a86409 1  # rich - to lxhadeb09
-  0x83c2     0        0xc67e     0xdead83c2   0xc0a864AE     0xc67E     0xc0a86409 1  # rich - to lxhadeb09
-  0x83c3     0        0xc67f     0xdead83c3   0xc0a864AF     0xc67F     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c4     0        0xc680     0xdead83c4   0xc0a864B0     0xc680     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c5     0        0xc681     0xdead83c5   0xc0a864B1     0xc681     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c6     0        0xc682     0xdead83c6   0xc0a864B2     0xc682     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c7     0        0xc683     0xdead83c7   0xc0a864B3     0xc683     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c8     0        0xc684     0xdead83c8   0xc0a864B4     0xc684     0xc0a86408 1  # rich - all to lxhadeb08
-  0x83c9     0        0xc685     0xdead83c9   0xc0a864B5     0xc685     0xc0a86408 1  # rich - all to lxhadeb08
-  0x83ca     0        0xc686     0xdead83ca   0xc0a864B6     0xc686     0xc0a86408 1  # rich -  to lxhadeb08 
-  0x83cb     0        0xc687     0xdead83cb   0xc0a864B7     0xc687     0xc0a86408 1  # rich - all to lxhadeb08 
+  0x83c0     0        0xc67c     0xdead83c0   0xc0a864AC     0xc67C     0xc0a86409 11  # rich - to lxhadeb09
+  0x83c1     0        0xc67d     0xdead83c1   0xc0a864AD     0xc67D     0xc0a86409 11  # rich - to lxhadeb09
+  0x83c2     0        0xc67e     0xdead83c2   0xc0a864AE     0xc67E     0xc0a86409 11  # rich - to lxhadeb09
+  0x83c3     0        0xc67f     0xdead83c3   0xc0a864AF     0xc67F     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c4     0        0xc680     0xdead83c4   0xc0a864B0     0xc680     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c5     0        0xc681     0xdead83c5   0xc0a864B1     0xc681     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c6     0        0xc682     0xdead83c6   0xc0a864B2     0xc682     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c7     0        0xc683     0xdead83c7   0xc0a864B3     0xc683     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c8     0        0xc684     0xdead83c8   0xc0a864B4     0xc684     0xc0a86408 11  # rich - all to lxhadeb08
+  0x83c9     0        0xc685     0xdead83c9   0xc0a864B5     0xc685     0xc0a86408 11  # rich - all to lxhadeb08
+  0x83ca     0        0xc686     0xdead83ca   0xc0a864B6     0xc686     0xc0a86408 11  # rich -  to lxhadeb08 
+  0x83cb     0        0xc687     0xdead83cb   0xc0a864B7     0xc687     0xc0a86408 11  # rich - all to lxhadeb08 
   
 
 
 
 
 #                    Dest Port    Src MAC      Src IP        Src Port #          #   TDC Calib flag
-# Hub    #  Type  #     C3     #     C4     #     C6     #     C7     #   EB IP  # 1:NO 1:linear 2:complex
+# Hub    #  Type  #     C3     #     C4     #     C6     #     C7     #   EB IP  # 1:NO 1:linear 2:complex 11:linear with ToT 15ns
 ##########################################################################################################
 # JAM 27-apr-2018: this EB will be used as pseudo node to setup the dabc bnet
 # last column will distribute to bnet input nodes  
   0x8600     15        0xc659     0xdead8600   0xc0a86489     0xc659     0xc0a8640f 0  # tof lxhadeb05
   0x8700     15        0xc65A     0xdead8700   0xc0a8648A     0xc65A     0xc0a8640f 0  # fw  lxhadeb05
   0x8800     15        0xc650     0xdead8800   0xc0a8648B     0xc650     0xc0a8640f 0  # central-cts lxhadeb05  
-  0x8880     15        0xc65D     0xdead8A00   0xc0a8648D     0xc65D     0xc0a86409 1  # start   - lxhadeb09
+  0x8880     15        0xc65D     0xdead8A00   0xc0a8648D     0xc65D     0xc0a86409 2  # start   - lxhadeb09
   0x8890     15        0xc65F     0xdead8890   0xc0a8648F     0xc65F     0xc0a86409 1  # veto      lxhadeb09
   0x8900     15        0xc65C     0xdead8900   0xc0a8648C     0xc65C     0xc0a86409 1  #  pion1     lxhadeb09
   0x8910     15        0xc65E     0xdead8910   0xc0a8648E     0xc65E     0xc0a86409 1  #  pion2     lxhadeb09
   0x8a03     15        0xc679     0xdead8a03   0xc0a864A9     0xc679     0xc0a86409 1  # ecal- all to lxhadeb09
   0x8a04     15        0xc67a     0xdead8a04   0xc0a864AA     0xc67A     0xc0a86409 1  # ecal- all to lxhadeb09
   0x8a05     15        0xc67b     0xdead8a05   0xc0a864AB     0xc67B     0xc0a86409 1  # ecal- all to lxhadeb09   
-  0x83c0     15        0xc67c     0xdead83c0   0xc0a864AC     0xc67C     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c1     15        0xc67d     0xdead83c1   0xc0a864AD     0xc67D     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c2     15        0xc67e     0xdead83c2   0xc0a864AE     0xc67E     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c3     15        0xc67f     0xdead83c3   0xc0a864AF     0xc67F     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c4     15        0xc680     0xdead83c4   0xc0a864B0     0xc680     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c5     15        0xc681     0xdead83c5   0xc0a864B1     0xc681     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c6     15        0xc682     0xdead83c6   0xc0a864b2     0xc682     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c7     15        0xc683     0xdead83c7   0xc0a864b3     0xc683     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c8     15        0xc684     0xdead83c8   0xc0a864b4     0xc684     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83c9     15        0xc685     0xdead83c9   0xc0a864b5     0xc685     0xc0a8640a 1  # rich - all to lxhadeb10
-  0x83ca     15        0xc686     0xdead83ca   0xc0a864b6     0xc686     0xc0a8640a 1  # rich - all to lxhadeb10 
-  0x83cb     15        0xc687     0xdead83cb   0xc0a864b6     0xc687     0xc0a8640a 1  # rich - all to lxhadeb10 
+  0x83c0     15        0xc67c     0xdead83c0   0xc0a864AC     0xc67C     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c1     15        0xc67d     0xdead83c1   0xc0a864AD     0xc67D     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c2     15        0xc67e     0xdead83c2   0xc0a864AE     0xc67E     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c3     15        0xc67f     0xdead83c3   0xc0a864AF     0xc67F     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c4     15        0xc680     0xdead83c4   0xc0a864B0     0xc680     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c5     15        0xc681     0xdead83c5   0xc0a864B1     0xc681     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c6     15        0xc682     0xdead83c6   0xc0a864b2     0xc682     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c7     15        0xc683     0xdead83c7   0xc0a864b3     0xc683     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c8     15        0xc684     0xdead83c8   0xc0a864b4     0xc684     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83c9     15        0xc685     0xdead83c9   0xc0a864b5     0xc685     0xc0a8640a 11  # rich - all to lxhadeb10
+  0x83ca     15        0xc686     0xdead83ca   0xc0a864b6     0xc686     0xc0a8640a 11  # rich - all to lxhadeb10 
+  0x83cb     15        0xc687     0xdead83cb   0xc0a864b6     0xc687     0xc0a8640a 11  # rich - all to lxhadeb10 
   
 
 #  lxhadeb08  enp97s0f1  192.168.100.8   0xc0a86408 ports 50000 - 50099
index 2cc13f70dfcaa194b1bfe65d518dc34069370919..faabcd2703cc44eea39a05bc03cdb5a44df5172d 100644 (file)
@@ -7,7 +7,7 @@
 0x8410      1         RPC456             mid
 0x8600      1         TOF               low
 0x8700      1         FW                low
-0x8880      1         StartTRB3         low
+0x8880      0         StartTRB3         low
 0x8890      0         VetoTRB3          low5t
 0x8900      0         Pion1             mid
 0x8910      0         Pion2             mid
 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
index 06c188038e7aa3db2aa90bcd54821346b891a6c9..7f162b1585a084a96819b15983a421b5a66d3f29 100644 (file)
@@ -180,7 +180,9 @@ wait
   !endif
 
 exec_cmd{local} trbcmd w 0xffff 0x50 0  #Reset global time
-exec_cmd{local} trbcmd w 0xffff 0x20 0x30  #Reset error counters
+
+#exec_cmd{local} trbcmd w 0xffff 0x20 0x30  #Reset error counters
+exec_cmd{local} trbcmd w 0xffff 0x20 0x10  #Reset error counters, but reset counter
 
 #Oracle
   !ifndef NOORACLE
index a58d1b21e2f5896423b5b6776b81d61d60af85a3..0388c0e9814a023bd5762bce9eb65489a4f82f5c 100755 (executable)
@@ -13,9 +13,17 @@ notifyall.sh "DAQ" "<I> DAQ is going to be restarted." "STARTUP" &
 
   
 #Stop Eventbuilder
-  echo "  <EB>      Killing EB, scheduling restart";
-  ./restartEB.sh  >/dev/null 2>/dev/null &
+#   echo "  <EB>      Killing EB, scheduling restart";
+#   ./restartEB.sh  >/dev/null 2>/dev/null &
+  
+# JAM 29-06-2018 instead restarting, just close run, drop buffers and reopen the file below:
+echo "  <EB>     DAQ restart: Closing file run";
+/usr/bin/wget  -a /tmp/EB_restart.log -O /tmp/EB_fileres.txt "http://lxhadeb03:8090/Master/BNET/StopRun/execute"
+
 
+  
+  
+  
   export DAQOPSERVER=hadesp31
   echo "  <TrbNet>  Pexor clean-up..."
   #set DMA transfer size, flush buffers, reset DMA core"
@@ -36,7 +44,7 @@ notifyall.sh "DAQ" "<I> DAQ is going to be restarted." "STARTUP" &
   trbcmd w 0x1031 0xc1 0xfbf   #one hardware port is not working, but nothing connected
   trbcmd w 0x1031 0xc3 0xfbf   #one hardware port is not working, but nothing connected
 
-switchport.pl 0x1113 6 off #221a 20180606
+switchport.pl 0x1113 6 off #221a 20180606
 #2014-04-16 frquent reinits, still token missing 20114-08-13 CW
 #switchport.pl 0x1151 8 off #2257
 #switchport.pl 0x1124 4 off #222a # noisy
@@ -56,8 +64,6 @@ switchport.pl 0x1113 6 off #221a 20180606
       -m MDC -m MDCreg0current -m MDCnomasks -m MDCDATASET -m MDCindiv
 
 
-
-
 ########################################
 ###  DO NOT CHANGE ANY MDC SETTINGS HERE - without changing them in reviveoep.pl as well!!!!!!
 ########################################
@@ -72,10 +78,19 @@ switchport.pl 0x1113 6 off #221a 20180606
 
 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";
+/usr/bin/wget  -a /tmp/EB_restart.log -O /tmp/EB_fileres.txt "http://lxhadeb03:8090/Master/BNET/ResetDAQ/execute"
+/usr/bin/wget  -a /tmp/EB_restart.log -O /tmp/EB_fileres.txt "http://lxhadeb03:8090/Master/BNET/StartRun/execute"
+
+  
+
   #Start-up finished
   notifyall.sh "DAQ" "<N> DAQ has been started." "STARTUP" &
   echo "  <Startup> Configuration finished!"
 
+
+  
 #Start Monitoring
  echo "  <Startup> Restart Monitoring"
 #  /home/hadaq/jan/crashlog.pl  #Log timeouts after restart
index 2a051417ded8ada852767ef1b40205fe88819bc1..88320a8bf6f44c487e76fdf5d5e98f5722930be3 100644 (file)
@@ -54,7 +54,7 @@
 0x2021       470         1          12        0 
 0x2022       312         1          12        0
 0x2023       253         1          12        0
-0x2024       460         1          12        0
+0x2024       460         1          12        0 
 0x2025       087         1          12        0
 0x2026       473         1          12        0
 0x2027       362         1          12        0 # 22.02.2012 468 exchanged by 139 // 139 exchanged by 362 29.02.12
 0x2127       351         1          12        0
 0x2128       467         1          12        0
 0x2129       314         1          12        0
-0x212a       374         1          12        0
+0x212a       374         1          12        0 
 0x212b       216         1          12        0
 0x212c       410         1          12        0
 0x212d       187         1          12        0
 0x2151       154         1          12        0 #271, very hot on 2010-07-02
 0x2152       293         1          12        0
 0x2153       336         1          12        0
-0x2154       274         1          12        0
+0x2154       197         1          12        0 #changeed OEP due to frequent retransmissions (before OEP #274)
 0x2155       292         1          12        0
 0x2156       291         1          12        0
 0x2157       396         1          12        0
 0x2217       053         1          12        0
 0x2218       026         1          12        0
 0x2219       027         1          12        0
-0x221a       041         1          12        0
+0x221a       151         1          12        0   # switched with oep from 0x221a (old OEP 041)    
 0x221b       032         1          12        0
 0x221c       029         1          12        0
 0x221d       030         1          12        0
 0x2230       394         1          12        0
 0x2231       282         1          12        0 ## exchange 1 and 8 (201010)
 0x2232       288         1          12        0
-0x2233       379         1          12        0
+0x2233       192         1          12        0 ## 1.8.2017 exchange with OEP of 0x224c (old one was OEP#379)
 0x2234       176         1          12        0
 0x2235       152         1          12        0
 0x2236       300         1          12        0
 0x2249       205         1          12        0
 0x224a       200         1          12        0
 0x224b       285         1          12        0
-0x224c       192         1          12        0
-0x224d       186         1          12        0
+0x224c       468         1          12        0 ## # 26.8.2018 changed oep for an brokem exchange (old OEP #379)
+ ## 1.8.2017 exchange with OEP of 0x2233 (old one was OEP#192)
+0x224d       186         1          12        0 
 0x224e       454         1          12        0 # 20120227 163 exchanged by 454
 0x224f       168         1          12        0
 ###################################################
 0x232a       107         1          12        0
 0x232b       116         1          12        0
 0x232c       178         1          12        0
-0x232d       151         1          12        0
+0x232d       113         1          12        0 #28.8.2018 new oep #113 since #041 fialed several times to connect  # switched with oep from 0x221a (old OEP 151)
 0x232e       185         1          12        0
 0x232f       195         1          12        0
 ###################################################
 0x2349       162         1          12        0
 0x234a       283         1          12        0
 0x234b       474         1          12        0 #AT (29.06.11) exchange OEPB 279->092 // 14.02.12 092->474
-0x234c       197         1          12        0
+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
index 7ffa5de5e01d54ba7026bbb035f2fc1089cc38d4..36e0177a72a321a5a1f489945f8164e3f4883656 120000 (symlink)
@@ -1 +1 @@
-thresholds/register_thresholds_ff.db
\ No newline at end of file
+thresholds/register_thresholds_jul14.db
\ No newline at end of file
index ba8fd19aa83a629032a5f7553e9900050c76dbec..640ba69f77b92e21d3b2a9409af9a959840e03fc 100644 (file)
@@ -1,24 +1,46 @@
        CTS  900  9300000270e8dd28   0002
-       Hub2    3  1900000123fcf828   8100
-       Hub2    6  5400000270caa228   8400
-       Hub2   65  c4000003481ef228   8880
-       Hub2    7  ad00000270ce4828   8700
-       Hub2    9  3c00000270ca9528   8600
-       Hub2   11  ea00000270f28428   8320
-       Hub2   12  1e00000270cecb28   8300
-       Hub2   13  9b00000270cecc28   8310
-       Hub2   14  fa00000270f02e28   8410
-       Hub2   15  1a00000270ca8928   8800
-       Hub2   16  5c00000270da6728   8420
-       Hub2   17  5600000270de5c28   8110
-       Hub2  755  d4000003131c6028   8900
-       Hub2  800  a70000031349f728   8001
-       Hub2  801  220000031349f028   8002
-       Hub2  802  9300000313496028   8003
-       Hub2  803  cb0000031349e628   8004
-       Hub2  805  330000031349ed28   8000
-       Hub2  815  6b0000031319f428   8910
-       Hub2 1065  4b000004f9decd28   8890
+    TRB3sc 1421  2c00000940a5fa28   8800
+    TRB3sc 1461  4d00000940a62f28   8018
+    TRB3sc 1491  3b00000940955028   8013
+    TRB3sc 1551  5600000940939228   8015
+    TRB3sc 1561  0f00000940939128   8017
+    TRB3sc 1571  430000094093a928   8012
+    TRB3sc 1601  cd00000940943b28   8016
+    TRB3sc 1611  d100000940938628   8000
+    TRB3sc 1051  8400000941031228   6015
+    TRB3sc 1061  b300000941031328   6016
+    TRB3sc 1071  b000000940ce5228   6056
+    TRB3sc 1081  cd00000940ce5e28   6022
+    TRB3sc 1091  3500000940ce5528   6021
+    TRB3sc 1101  fc00000940ce6a28   6025
+    TRB3sc 1111  3f000009408c2e28   6024
+    TRB3sc 1131  4f000009408a9b28   6044
+    TRB3sc 1141  2000000940c1e928   6052
+    TRB3sc 1151  6f000009409d7428   6041
+    TRB3sc 1161  cc000009409d6f28   6040
+    TRB3sc 1171  f600000940c29928   6010
+    TRB3sc 1181  49000009409d6828   6020
+    TRB3sc 1191  7100000940c28d28   6053
+    TRB3sc 1201  c100000940c29828   6042
+    TRB3sc 1211  4600000940c28c28   6013
+    TRB3sc 1221  0c00000940c28128   6050
+    TRB3sc 1231  3b00000940c28028   6012
+    TRB3sc 1241  7d00000940880b28   6046
+    TRB3sc 1251  b1000009409d6328   6043
+    TRB3sc 1271  9b00000940876628   6051
+    TRB3sc 1321  6f00000940a61528   6055
+    TRB3sc 1331  ea00000940a61228   6045
+    TRB3sc 1401  6d00000940a60628   6026
+    TRB3sc 1511  4400000940954f28   6054
+    TRB3sc 1541  1a0000094093aa28   6023
+    TRB3sc 1591  7200000940939d28   6014
+    TRB3sc 1651  ce0000094117f228   6011
+    TRB3sc   91  f1000006e919a128   8a01
+    TRB3sc 1281  0d00000940876f28   8a03
+    TRB3sc 1291  9a00000940a5da28   8a05
+    TRB3sc 1301  1d00000940a5ce28   8a02
+    TRB3sc 1311  f600000940a5cb28   8a04
+    TRB3sc 1341  120000094094a928   8a00
  MDC-AddOn    1  8200000270f2b328   1150
  MDC-AddOn    2  9300000270f2ae28   1160
  MDC-AddOn    3  fd00000270e01728   1120
@@ -50,7 +72,6 @@
    MDC-OEP   37  57000001fc57f128   221f
    MDC-OEP   39  c1000001fc739728   2216
    MDC-OEP   40  7a000001fc535328   2340
-   MDC-OEP   41  a1000001fc2bbb28   221a
    MDC-OEP   42  38000001fc487828   2341
    MDC-OEP   43  85000001fc488228   2317
    MDC-OEP   44  b2000001fc488328   2318
    MDC-OEP  110  66000001ff58aa28   2258
    MDC-OEP  111  c4000001ff462328   2228
    MDC-OEP  112  41000001ff462428   2358
+   MDC-OEP  113  61000001ff471428   232d
    MDC-OEP  114  78000001ff457728   2309
    MDC-OEP  116  8a000001ff471128   232b
    MDC-OEP  117  ff000001ff464828   2250
    MDC-OEP  148  d1000001fc44c228   2224
    MDC-OEP  149  e6000001fc44c328   235f
    MDC-OEP  150  c2000001fc44cc28   2355
-   MDC-OEP  151  21000001fc42d328   232d
+   MDC-OEP  151  21000001fc42d328   221a
    MDC-OEP  152  68000001fc749c28   2235
    MDC-OEP  153  85000001fc2bb428   2038
    MDC-OEP  154  27000001fc4d6128   2151
    MDC-OEP  177  d2000001fc454d28   2226
    MDC-OEP  178  39000001fc454828   232c
    MDC-OEP  180  41000001fc756528   223a
+   MDC-OEP  182  96000001fc31c928   202b
    MDC-OEP  183  60000001fc739f28   2331
    MDC-OEP  184  3f000001fc73a928   2337
    MDC-OEP  185  af000001fc329a28   232e
    MDC-OEP  189  bc000001fc31bf28   234d
    MDC-OEP  190  10000001fc2c6428   234e
    MDC-OEP  191  6f000001fc491b28   234f
-   MDC-OEP  192  f1000001fc757028   224c
+   MDC-OEP  192  f1000001fc757028   2233
    MDC-OEP  193  e6000001fc755828   2057
    MDC-OEP  194  06000001fc673c28   2335
    MDC-OEP  195  ef000001fc748828   232f
    MDC-OEP  196  b6000001fc748b28   2239
-   MDC-OEP  197  eb000001fc415128   234c
+   MDC-OEP  197  eb000001fc415128   2154
    MDC-OEP  198  66000001fc795028   2247
    MDC-OEP  199  bf000001fc320228   2201
    MDC-OEP  200  9f000001fc322b28   224a
    MDC-OEP  238  44000001fc728928   222c
    MDC-OEP  239  d3000001fc66e828   2106
    MDC-OEP  240  06000001fc72c828   2037
-   MDC-OEP  241  08000001fc72b128   202b
    MDC-OEP  242  6e000001fc33f028   2202
    MDC-OEP  243  77000001fc2be028   2211
    MDC-OEP  244  62000001fc2bdb28   223f
    MDC-OEP  266  dd000001fc65ba28   2002
    MDC-OEP  272  dc000001fc298528   2209
    MDC-OEP  273  13000001fc298f28   214f
-   MDC-OEP  274  0a000001fc585328   2154
    MDC-OEP  275  b0000001fc299428   220b
    MDC-OEP  276  9c000001fc585a28   210d
    MDC-OEP  277  f8000001fc298a28   214c
    MDC-OEP  376  ea000001fc41d428   2141
    MDC-OEP  377  3b000001fc7b4728   2123
    MDC-OEP  378  7c000001fc41dd28   230d
-   MDC-OEP  379  fc000001fc7b0128   2233
    MDC-OEP  380  65000001fc7aed28   2206
-   MDC-OEP  381  54000001fc6c0628   222e
    MDC-OEP  382  0d000001fc721228   2112
    MDC-OEP  383  88000001fc6a5428   2304
    MDC-OEP  384  d1000001fc6a5728   2012
    MDC-OEP  405  a0000001fc4d7528   210e
    MDC-OEP  406  fb000001fc399528   233a
    MDC-OEP  407  03000001fc399e28   215a
+   MDC-OEP  408  4d000001fc3efa28   222e
    MDC-OEP  409  df000001fc4d6a28   233b
    MDC-OEP  410  97000001fc4d7428   212c
    MDC-OEP  411  e2000001fc6b6928   2029
    MDC-OEP  464  fa000001fc790628   233f
    MDC-OEP  466  12000001fc6d7828   233e
    MDC-OEP  467  86000001fc679828   2128
+   MDC-OEP  468  55000001fc476b28   224c
    MDC-OEP  469  dc000001fc699328   2203
    MDC-OEP  470  1c000001fc46e928   2021
    MDC-OEP  472  84000001fc398a28   2114
    MDC-OEP  482  e6000001fc3c9f28   202a
    MDC-OEP  483  81000001fc5c4928   205d
    MDC-OEP  486  db000001fc5cdc28   2223
+   MDC-OEP  488  2e000001fc5c3828   234c
    MDC-OEP  489  b9000001fc3ca928   2227
    MDC-OEP  490  d1000001fc3c9e28   200c
    MDC-OEP  491  cc000001fc771c28   230c
    MDC-OEP  497  f8000001fc769228   2035
    MDC-OEP  498  85000001fc778728   2145
    MDC-OEP  500  46000001fc76fe28   213e
-      TRB3  750  25000003131f8928   3800
-      TRB3  751  e5000003131f7f28   3820
-      TRB3  752  7c000003131f8a28   3821
-      TRB3  753  a2000003131f9d28   3801
-      TRB3  810  9100000313131628   3810
-      TRB3  811  b500000313131928   3811
-      TRB3  812  4b000003133cab28   3832
-      TRB3  813  2c000003133b2f28   3833
- RICH-ADCM    3  75000000201c1922   3053
- RICH-ADCM    5  1c0000001d8a9522   3042
- RICH-ADCM    6  450000001d8b8f22   3032
- RICH-ADCM    7  0c0000001d8c5b22   3023
- RICH-ADCM    9  cd000000214eb522   3050
- RICH-ADCM   10  710000002150dd22   3012
- RICH-ADCM   11  ea00000020141122   3030
- RICH-ADCM   12  5b00000021455f22   3043
- RICH-ADCM   13  080000001d8d6422   3054
- RICH-ADCM   15  7d000000200a8a22   3052
- RICH-ADCM   17  d500000020287222   3002
- RICH-ADCM   21  e1000000200eb822   3044
- RICH-ADCM   24  710000001d7ba022   3021
- RICH-ADCM   25  040000001d80bb22   3051
- RICH-ADCM   27  f40000001d907522   3024
- RICH-ADCM   28  500000001d7f6822   3011
- RICH-ADCM   29  f30000001d8ed222   3020
- RICH-ADCM   30  830000001d8a5522   3010
- RICH-ADCM   31  040000001d839022   3041
- RICH-ADCM   32  810000001d887422   3040
- RICH-ADCM   33  fa0000001d8d3022   3004
- RICH-ADCM   34  e10000001d84a322   3000
- RICH-ADCM   35  5d0000001d757d22   3003
- RICH-ADCM   37  ad0000001d80ff22   3013
- RICH-ADCM   38  980000001d7cf922   3001
- RICH-ADCM   39  08000000200eae22   3034
- RICH-ADCM   40  de0000001d8f0d22   3031
- RICH-ADCM   41  db0000001d7a6b22   3022
- RICH-ADCM   42  430000001d793022   3014
- RICH-ADCM   44  f2000000202c8f22   3033
        TRB   31  0a0000012410fa28   4821
        TRB   40  9500000123f4fe28   4822
+       TRB   50  e500000123f24b28   4853
        TRB   51  6200000123f25f28   4843
        TRB   52  7700000123f26428   4802
        TRB   53  ad00000123f25528   4841
        TRB   54  e200000124172628   4840
-       TRB   56  e000000123f2e828   4803
+       TRB   55  4600000123f25028   4810
        TRB   59  ff00000123f5c328   4800
-       TRB   61  f500000123f59c28   4853
+       TRB   61  f500000123f59c28   4833
        TRB   63  e500000124052d28   4813
        TRB   65  ca000001241bef28   4812
        TRB   67  fb000001241bdb28   4801
        TRB   74  fa000001c17e8428   4823
-       TRB   75  6f000001fc5df628   4852
-       TRB   78  5c000001fc5dd128   4832
-       TRB   80  22000001fc5e6028   4831
-       TRB   83  60000001c17b9a28   4851
+       TRB   75  6f000001fc5df628   4832
+       TRB   78  5c000001fc5dd128   4852
+       TRB   80  22000001fc5e6028   4851
+       TRB   83  60000001c17b9a28   4831
        TRB   85  8c000001fc5e9428   4811
        TRB   89  c0000001ff590b28   4820
-       TRB   91  71000001fc2bd528   4830
-       TRB   92  df000001fc5bb528   4850
-       TRB   94  c8000001fc3efd28   4810
+       TRB   91  71000001fc2bd528   4850
+       TRB   92  df000001fc5bb528   4830
        TRB  110  90000001c1712728   4842
-       TRB  122  d0000001c17feb28   4833
- Shw-AddOn    2  9e00000270e3d128   3230
- Shw-AddOn    3  03000000e87c2628   3200
- Shw-AddOn    5  34000000e87c2728   3210
- Shw-AddOn    6  a8000000e8790c28   3250
- Shw-AddOn    7  2d000000e8790b28   3240
- Shw-AddOn    8  c600000123f5bb28   3220
+       TRB  124  3c000001c170d928   4803
+    TRB3sc    6  5400000270caa228   8400
+    TRB3sc   14  fa00000270f02e28   8410
+    DiRich    1  ca00000711f93828   7000
+    DiRich   50  e000000a52311328   7034
+    DiRich   51  6100000a522d1728   7140
+    DiRich   52  1d00000a52420428   7062
+    DiRich   54  2b00000a52745428   7013
+    DiRich   55  f600000a52631328   7352
+    DiRich   56  8f00000a525b7328   7022
+    DiRich   58  d500000a525e9b28   7023
+    DiRich   59  6900000a52741528   7393
+    DiRich   60  5b00000a522ed228   7063
+    DiRich   61  6c00000a5232f628   7093
+    DiRich   63  f900000a52916528   7943
+    DiRich   64  6100000a52965a28   7823
+    DiRich   66  3000000a52915a28   7574
+    DiRich   67  ff00000a48b0fd28   71b5
+    DiRich   68  a200000a48afd628   7284
+    DiRich   69  ef00000a48af6b28   7073
+    DiRich   70  1a00000a48af8f28   7584
+    DiRich   71  d800000a529e4e28   7094
+    DiRich   72  3700000a5291ea28   7594
+    DiRich   73  1000000a5287ac28   7685
+    DiRich   74  8400000a529a8a28   7723
+    DiRich   75  d200000a52865028   7084
+    DiRich   76  2600000a529e7028   7695
+    DiRich   77  4400000a5297c928   7595
+    DiRich   78  0300000a52136328   7674
+    DiRich   79  9400000a529f6f28   7175
+    DiRich   80  1300000a528cd928   71a5
+    DiRich   81  c500000a5288e628   7075
+    DiRich   84  5600000a529f8a28   7694
+    DiRich   85  4800000a52a17728   7092
+    DiRich   86  f700000a48eeb028   7192
+    DiRich   87  9900000a49498228   7085
+    DiRich   88  e000000a48ee9828   7474
+    DiRich   89  3300000a48ed4b28   7585
+    DiRich   90  3a00000a48eea928   7495
+    DiRich   91  0b00000a48ee9d28   7684
+    DiRich   92  2900000a49237028   7184
+    DiRich   93  6c00000a49238128   7675
+    DiRich   94  c200000a49237528   7275
+    DiRich   95  5400000a49237c28   7082
+    DiRich   96  dd00000a494add28   7095
+    DiRich   97  a200000a48d3ee28   7375
+    DiRich   98  dc00000a529a0c28   7923
+    DiRich   99  c900000a48af7728   7072
+    DiRich  100  6900000a52936b28   7194
+    DiRich  102  6e00000a528ee728   7385
+    DiRich  103  d800000a5292e228   7475
+    DiRich  104  db00000a48b0f228   7494
+    DiRich  106  ce00000a49003f28   7292
+    DiRich  107  8400000a48e26928   7732
+    DiRich  108  b000000a4907ea28   7285
+    DiRich  110  fd00000a49400e28   7141
+    DiRich  111  5200000a495c5a28   7485
+    DiRich  112  8100000a495bed28   7174
+    DiRich  113  e500000a48c97f28   7395
+    DiRich  114  b300000a48c98028   7185
+    DiRich  115  af00000a495bbd28   7195
+    DiRich  116  3700000a49497628   7294
+    DiRich  117  1300000a49497928   7295
+    DiRich  118  9400000a49496d28   7074
+    DiRich  119  1100000a49496a28   7706
+    DiRich  120  1900000a48ef0f28   7083
+    DiRich  121  d400000a48ef1628   7822
+    DiRich  122  6400000a5296f928   7374
+    DiRich  124  a500000a52981428   7384
+    DiRich  125  6a00000a52837428   7722
+    DiRich  126  5800000a52849928   7922
+    DiRich  127  8e00000a5280a628   7394
+    DiRich  128  b400000a525a0128   7575
+    DiRich  129  4000000a52246a28   7484
+    DiRich  130  0e00000a525a4b28   7442
+    DiRich  131  4400000a49f50128   7472
+    DiRich  132  f000000a49dfc328   7113
+    DiRich  133  c100000a49f50628   7482
+    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  145  fe00000a52462928   7492
+    DiRich  147  8d00000a48b65b28   7025
+    DiRich  148  9a00000a48b55828   7162
+    DiRich  149  9e00000a52222b28   7163
+    DiRich  150  3300000a48f73828   7052
+    DiRich  151  c000000a48b6e628   7045
+    DiRich  152  5600000a48b6ef28   7042
+    DiRich  153  2b00000a48b6e328   7032
+    DiRich  154  2b00000a52229d28   7055
+    DiRich  155  8800000a49c06228   7297
+    DiRich  156  f500000a4931cf28   7016
+    DiRich  157  0a00000a48b56428   7043
+    DiRich  159  5f00000a49dfb228   7012
+    DiRich  160  4600000a493fd228   7493
+    DiRich  161  4700000a49769028   7033
+    DiRich  162  5700000a48b66a28   7152
+    DiRich  164  c100000a493fc628   7362
+    DiRich  165  6e00000a493aca28   7363
+    DiRich  166  fe00000a495f9628   7353
+    DiRich  167  5300000a495eed28   7253
+    DiRich  168  d200000a493ab528   7263
+    DiRich  169  b400000a495f9b28   7053
+    DiRich  170  9e00000a495ef428   7252
+    DiRich  171  2a00000a493abe28   7153
+    DiRich  172  0000000a48e2eb28   7262
+    DiRich  174  4800000a493bcf28   7433
+    DiRich  175  cf00000a493bdb28   7443
+    DiRich  176  8500000a48e2ec28   7b15
+    DiRich  179  3a00000a49769c28   7952
+    DiRich  180  9b00000a49efe028   7742
+    DiRich  182  3200000a49efa428   7522
+    DiRich  183  0000000a49f57528   7942
+    DiRich  184  8e00000a48d84e28   7934
+    DiRich  185  e500000a48e38e28   7205
+    DiRich  187  af00000a48e38328   7305
+    DiRich  188  f100000a48d7d628   7711
+    DiRich  189  0900000a48d7dd28   7423
+    DiRich  190  7400000a48d7d128   7953
+    DiRich  191  d700000a48d7ca28   7853
+    DiRich  192  f300000a48d7c528   7306
+    DiRich  193  2600000a48e2f728   7512
+    DiRich  194  4500000a48e30328   7412
+    DiRich  195  0200000a48e2f828   7753
+    DiRich  196  b900000a48fc2028   7752
+    DiRich  197  2600000a491c8928   7413
+    DiRich  198  5200000a48fc2528   7642
+    DiRich  199  9800000a48e38228   7513
+    DiRich  200  5e00000a49401528   7210
+    DiRich  201  eb00000a491c9028   7852
+    DiRich  202  1200000a49254d28   7743
+    DiRich  203  a200000a49255828   7843
+    DiRich  204  9500000a49255928   7523
+    DiRich  205  e400000a494dea28   7532
+    DiRich  206  cc00000a48fc6028   7542
+    DiRich  207  2900000a494df328   7632
+    DiRich  209  6200000a49eb0a28   7432
+    DiRich  212  8900000a49eb0f28   7533
+    DiRich  214  5100000a48e3bd28   7422
+    DiRich  215  4c00000a48e3ca28   7633
+    DiRich  216  3f00000a48dda328   7643
+    DiRich  218  d900000a48dd4928   7725
+    DiRich  219  8e00000a49251b28   7133
+    DiRich  220  d200000a49078228   7212
+    DiRich  221  f800000a49b47128   7833
+    DiRich  222  6200000a49da9128   7933
+    DiRich  223  ba00000a49ed7e28   7733
+    DiRich  224  5100000a49ed7b28   7322
+    DiRich  225  c700000a49ed7228   7314
+    DiRich  226  2600000a49313728   7214
+    DiRich  229  c200000a49c06f28   71a2
+    DiRich  231  8f00000a49bfc128   7427
+    DiRich  232  3600000a48b2f028   7325
+    DiRich  233  d000000a48b30328   7225
+    DiRich  234  b300000a48b2f728   7125
+    DiRich  235  6600000a48d64328   7224
+    DiRich  236  2800000a48b30828   7115
+    DiRich  237  fd00000a48e73e28   7315
+    DiRich  239  0800000a48bbe928   7313
+    DiRich  240  0200000a49ea6828   7383
+    DiRich  241  2c00000a48e3b128   7213
+    DiRich  243  9e00000a48d64828   7324
+    DiRich  244  ad00000a48b30f28   7604
+    DiRich  245  0e00000a48b31428   7215
+    DiRich  246  ba00000a48b32728   7124
+    DiRich  247  2a00000a48b31b28   7372
+    DiRich  249  8000000a48f3df28   7223
+    DiRich  250  f700000a49452c28   7312
+    DiRich  251  6100000a49452528   7907
+    DiRich  252  8a00000a49452028   7114
+    DiRich  253  d900000a48f3dc28   7323
+    DiRich  254  9300000a494af628   7044
+    DiRich  255  1b00000a497dd328   7244
+    DiRich  256  3d00000a49082628   7335
+    DiRich  257  3b00000a48e4d628   7245
+    DiRich  258  5700000a49080228   7807
+    DiRich  259  d600000a49082328   7235
+    DiRich  260  be00000a48e4d128   7065
+    DiRich  261  2100000a48afe428   7601
+    DiRich  262  0600000a48e0ec28   7064
+    DiRich  263  a000000a48afc528   7173
+    DiRich  264  3600000a48afcc28   7193
+    DiRich  265  6b00000a48afe928   7172
+    DiRich  266  4b00000a48afc028   7135
+    DiRich  267  1f00000a4922ed28   7134
+    DiRich  268  8f00000a490e7628   7144
+    DiRich  269  b100000a48afd828   7145
+    DiRich  270  2700000a48afd128   7283
+    DiRich  271  4200000a49092028   7282
+    DiRich  272  5a00000a48afdd28   7765
+    DiRich  274  5900000a49f00b28   7554
+    DiRich  275  4e00000a49f02328   7565
+    DiRich  276  7f00000a49f01728   7945
+    DiRich  277  e400000a49efff28   7035
+    DiRich  278  1300000a4885b728   7273
+    DiRich  279  8300000a48b62228   7855
+    DiRich  280  c700000a49083e28   7264
+    DiRich  281  c900000a49084728   7745
+    DiRich  282  9200000a491aec28   7845
+    DiRich  283  ba00000a49083228   7254
+    DiRich  284  2c00000a49083b28   7655
+    DiRich  285  5300000a4886ce28   7435
+    DiRich  286  a500000a48925128   7654
+    DiRich  287  c700000a48923928   7854
+    DiRich  288  1500000a48924428   7564
+    DiRich  289  c500000a4886c728   7464
+    DiRich  290  4a00000a49f11c28   7165
+    DiRich  291  7f00000a4885a628   7364
+    DiRich  292  6b00000a48a72128   7454
+    DiRich  293  3600000a495f2c28   7465
+    DiRich  294  0100000a495f2d28   7265
+    DiRich  295  cf00000a48961128   7355
+    DiRich  296  7c00000a495f2128   7832
+    DiRich  297  4800000a49286d28   71b2
+    DiRich  298  3b00000a49281828   7455
+    DiRich  299  d000000a49281d28   7555
+    DiRich  300  2c00000a49283028   7365
+    DiRich  301  ab00000a49282428   7354
+    DiRich  302  e100000a49282928   7a03
+    DiRich  303  bc00000a4885c628   7544
+    DiRich  304  8b00000a4884de28   7645
+    DiRich  305  6600000a49a5a428   7164
+    DiRich  306  7f00000a48868d28   7535
+    DiRich  308  0000000a48869228   7644
+    DiRich  309  fb00000a49a57728   7293
+    DiRich  310  8400000a49a56828   7255
+    DiRich  311  fc00000a49e5d128   7534
+    DiRich  313  0500000a48851a28   7545
+    DiRich  314  4e00000a495f8328   7155
+    DiRich  315  c200000a493f5028   7444
+    DiRich  316  1100000a49766f28   7634
+    DiRich  317  9600000a4927fd28   7635
+    DiRich  318  6e00000a4927f628   7154
+    DiRich  319  5f00000a494b7328   7272
+    DiRich  320  7100000a48dbde28   7944
+    DiRich  321  fc00000a494b6828   7744
+    DiRich  322  4000000a48dbea28   7955
+    DiRich  323  7700000a48bbf628   7664
+    DiRich  324  a100000a4882fe28   7182
+    DiRich  325  a600000a48bf7928   7844
+    DiRich  326  8700000a48868628   7183
+    DiRich  327  c900000a48a7bf28   7755
+    DiRich  328  3200000a4973ad28   7954
+    DiRich  329  4f00000a4973a128   7665
+    DiRich  330  3f00000a49c5ba28   7754
+    DiRich  331  8300000a49c5c528   7334
+    DiRich  332  da00000a49c5c628   7344
+    DiRich  333  cc00000a49c33d28   7445
+    DiRich  334  aa00000a496b9c28   7234
+    DiRich  335  3800000a49380728   7434
+    DiRich  336  e300000a4938b328   7345
+    DiRich  339  ba00000a48bbef28   7514
+    DiRich  342  bf00000a49c34828   7610
+    DiRich  343  8d00000a48b57028   7915
+    DiRich  344  df00000a497b5528   7521
+    DiRich  345  8800000a4931c328   7646
+    DiRich  346  3a00000a497b2928   7111
+    DiRich  347  7000000a497b2428   7120
+    DiRich  349  a000000a49856c28   7647
+    DiRich  350  2c00000a497dd228   7110
+    DiRich  352  7a00000a49855d28   7121
+    DiRich  353  6d00000a49857528   7417
+    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  366  9800000a49789c28   7593
+    DiRich  367  7500000a4978ac28   7414
+    DiRich  369  4d00000a496aea28   7693
+    DiRich  370  6100000a49790b28   7682
+    DiRich  371  0c00000a49a58028   7672
+    DiRich  372  8100000a49e5dd28   7582
+    DiRich  373  f800000a49e3a128   7473
+    DiRich  374  9400000a49ec3728   7592
+    DiRich  375  fb00000a49aaf028   7142
+    DiRich  376  d200000a49ec5028   7673
+    DiRich  377  e300000a48ae1828   7320
+    DiRich  380  a900000a488f0728   7332
+    DiRich  381  8b00000a48e5da28   7333
+    DiRich  382  1900000a48ae0028   7906
+    DiRich  384  ef00000a48c49528   7462
+    DiRich  385  1700000a48c49e28   7242
+    DiRich  386  6a00000a48c49228   7692
+    DiRich  387  c900000a48c48928   7583
+    DiRich  388  1000000a48c53728   7463
+    DiRich  389  4900000a48c53428   7524
+    DiRich  390  9200000a4947c628   7026
+    DiRich  391  4c00000a4947d128   7021
+    DiRich  392  4a00000a49486328   7342
+    DiRich  393  ea00000a4948ee28   7243
+    DiRich  394  7d00000a49486228   7562
+    DiRich  395  cb00000a4947c528   7563
+    DiRich  396  8e00000a497b1a28   7553
+    DiRich  397  aa00000a497b1528   7452
+    DiRich  398  bf00000a49c06328   7232
+    DiRich  399  0b00000a49cde528   7683
+    DiRich  400  fc00000a497af328   7343
+    DiRich  401  d800000a49333b28   7572
+    DiRich  403  f800000a48aa3e28   7122
+    DiRich  404  2a00000a48aa4328   7573
+    DiRich  405  1e00000a48a9ff28   7143
+    DiRich  406  6e00000a48aa3728   7453
+    DiRich  408  2200000a494b7f28   7233
+    DiRich  409  f000000a494b0228   7515
+    DiRich  411  b500000a494aea28   7624
+    DiRich  412  d400000a494b0d28   7123
+    DiRich  413  da00000a494b7428   7662
+    DiRich  414  4a00000a488a3328   7653
+    DiRich  415  f400000a4880a528   7663
+    DiRich  417  7d00000a488a3228   7625
+    DiRich  418  4400000a4880b028   7614
+    DiRich  419  c300000a4880a428   7652
+    DiRich  420  8e00000a4929b728   7415
+    DiRich  421  c700000a495cc528   7552
+    DiRich  422  6800000a48ca1f28   7615
+    DiRich  423  3a00000a488fad28   7112
+    DiRich  424  fc00000a495be128   7424
+    DiRich  425  5400000a495f4428   7130
+    DiRich  426  a800000a48e01828   7304
+    DiRich  427  2d00000a48e01f28   7406
+    DiRich  428  1900000a48d9db28   7605
+    DiRich  429  3800000a48e02428   7222
+    DiRich  430  a100000a48ca2028   7606
+    DiRich  431  eb00000a495bc928   7407
+    DiRich  432  ac00000a48e03e28   7504
+    DiRich  433  5000000a48e01328   7506
+    DiRich  434  f700000a488fb428   7405
+    DiRich  435  7600000a488f9528   7607
+    DiRich  436  9d00000a488f9028   7507
+    DiRich  438  aa00000a48e00b28   7404
+    DiRich  439  bd00000a488fb928   7505
+    DiRich  440  fe00000a488f7d28   7105
+    DiRich  441  5800000a495c0528   7131
+    DiRich  442  fd00000a4929c228   7392
+    DiRich  444  d900000a495b6b28   7204
+    DiRich  446  e100000a48b64a28   7207
+    DiRich  447  7a00000a48b6ac28   7104
+    DiRich  448  ab00000a49082f28   7307
+    DiRich  449  c500000a48b64528   7106
+    DiRich  450  3d00000a4907a128   7825
+    DiRich  451  5100000a4907b028   7734
+    DiRich  452  4000000a4907ad28   7824
+    DiRich  453  c700000a4907b928   7724
+    DiRich  454  db00000a48e25f28   7935
+    DiRich  455  7b00000a48b35428   7924
+    DiRich  456  ca00000a49f1b828   7834
+    DiRich  457  2a00000a49a82928   7835
+    DiRich  458  d200000a49a82228   7206
+    DiRich  459  d700000a49f1cf28   7925
+    DiRich  460  d600000a49f14a28   7420
+    DiRich  461  2f00000a49f1c428   7107
+    DiRich  462  d900000a49e13f28   7b16
+    DiRich  463  ef00000a49dc8c28   7861
+    DiRich  464  ea00000a4992a728   7876
+    DiRich  465  4100000a49853628   7b03
+    DiRich  466  ce00000a4992a828   7b22
+    DiRich  467  7600000a4991da28   7603
+    DiRich  468  7a00000a49dc1328   7543
+    DiRich  469  a100000a49922f28   7b36
+    DiRich  474  8100000a48b40328   7623
+    DiRich  476  2700000a48e04028   7613
+    DiRich  477  7e00000a48b3f728   7612
+    DiRich  479  0400000a48b40428   7622
+    DiRich  480  2900000a48d96a28   72a2
+    DiRich  482  5600000a48aaca28   70a6
+    DiRich  484  0f00000a48d97628   7b21
+    DiRich  485  c300000a48f77f28   7816
+    DiRich  486  b100000a48b1cf28   7b12
+    DiRich  487  9b00000a491c7328   7241
+    DiRich  488  1e00000a491c7428   7735
+    DiRich  489  5b00000a48b43228   7b32
+    DiRich  490  bb00000a48e9c728   70b1
+    DiRich  491  d900000a48b59c28   70b7
+    DiRich  492  4200000a49dcee28   7a02
+    DiRich  494  af00000a4982df28   7b27
+    DiRich  495  c500000a49dcfa28   7b34
+    DiRich  496  6300000a49824328   7b35
+    DiRich  497  be00000a49b35928   7766
+    DiRich  498  8a00000a493d7c28   7867
+    DiRich  499  0000000a496a5728   7860
+    DiRich  500  5c00000a492ae128   7761
+    DiRich  501  c700000a49283528   7070
+    DiRich  502  4800000a4927ea28   7866
+    DiRich  504  e800000a4895a328   7200
+    DiRich  506  2900000a495c6328   7b10
+    DiRich  507  5600000a48b28b28   7864
+    DiRich  508  1c00000a48b28628   70a1
+    DiRich  509  4200000a48b32c28   70a0
+    DiRich  511  7d00000a49dca328   7760
+    DiRich  512  b900000a49549728   7704
+    DiRich  514  1000000a4992bf28   70b0
+    DiRich  516  1000000a488fdb28   7b17
+    DiRich  518  6b00000a488fe228   72a4
+    DiRich  519  8900000a49279928   7296
+    DiRich  521  f700000a48c44128   7061
+    DiRich  524  0700000a49dd0628   73a5
+    DiRich  525  cc00000a49dd2a28   7b25
+    DiRich  528  7b00000a49a0ae28   72b4
+    DiRich  529  7800000a49a12128   7497
+    DiRich  530  5000000a49a05d28   72a5
+    DiRich  531  7f00000a49a08828   7197
+    DiRich  532  ac00000a49a07028   7496
+    DiRich  533  d800000a49a0b528   7770
+    DiRich  534  b500000a499e3d28   71a4
+    DiRich  536  7000000a49237328   7387
+    DiRich  537  0b00000a49263728   71b4
+    DiRich  539  f100000a499e4928   73a4
+    DiRich  541  3f00000a49563428   73b4
+    DiRich  542  2900000a4955b228   7397
+    DiRich  543  b200000a49ad2428   7487
+    DiRich  545  f200000a49562d28   73b5
+    DiRich  546  d900000a49dc0828   7b26
+    DiRich  547  5400000a4992cb28   7560
+    DiRich  548  ac00000a4992c028   7274
+    DiRich  550  9d00000a49549828   72b5
+    DiRich  551  0f00000a49817928   7771
+    DiRich  552  f400000a49ed5528   7842
+    DiRich  553  5800000a49af9628   73b1
+    DiRich  555  3a00000a49237e28   7a01
+    DiRich  556  c200000a494cef28   7620
+    DiRich  558  5d00000a48da8428   7396
+    DiRich  559  ab00000a491ddb28   7710
+    DiRich  560  d700000a499e5528   7b24
+    DiRich  561  0000000a491bda28   7366
+    DiRich  564  a700000a48da9c28   7501
+    DiRich  567  6c00000a48af5928   7400
+    DiRich  568  8300000a48da9328   7102
+    DiRich  570  0000000a49a7d828   7503
+    DiRich  571  7e00000a49db7a28   7100
+    DiRich  576  ba00000a4906ac28   7403
+    DiRich  577  2c00000a4906a528   7600
+    DiRich  578  7200000a498feb28   7500
+    DiRich  579  d800000a49828c28   7602
+    DiRich  580  db00000a4990a128   7054
+    DiRich  581  e900000a49900328   7103
+    DiRich  582  0f00000a491c6928   70b6
+    DiRich  583  5d00000a48b06328   7801
+    DiRich  584  3800000a494ec528   7301
+    DiRich  585  7600000a4912dd28   7402
+    DiRich  586  5100000a49124428   7700
+    DiRich  587  7500000a49124b28   7701
+    DiRich  588  d800000a4906c428   7401
+    DiRich  589  d600000a4906bd28   7502
+    DiRich  591  4200000a49551328   7911
+    DiRich  592  6800000a49dc9828   7616
+    DiRich  593  3d00000a4884fe28   7a13
+    DiRich  594  6d00000a4992b328   7811
+    DiRich  596  7500000a49563928   7810
+    DiRich  598  5400000a498ff728   7411
+    DiRich  599  ac00000a498ffc28   7617
+    DiRich  600  d100000a4955b928   7611
+    DiRich  601  5400000a4955be28   7416
+    DiRich  602  a700000a49b76c28   7910
+    DiRich  604  2200000a49b67228   7510
+    DiRich  605  2a00000a49ec5b28   7321
+    DiRich  606  0600000a49b67d28   7705
+    DiRich  607  af00000a49ec5c28   7900
+    DiRich  609  c900000a491be528   7b20
+    DiRich  610  b000000a491c8028   7805
+    DiRich  611  2c00000a491dcf28   7800
+    DiRich  612  5900000a491bd928   7627
+    DiRich  613  0400000a48da8728   7511
+    DiRich  614  e000000a49673d28   7901
+    DiRich  615  0b00000a49673828   7905
+    DiRich  616  eb00000a49ddb328   7426
+    DiRich  619  9d00000a49673128   7527
+    DiRich  621  2600000a49923b28   7904
+    DiRich  622  a200000a49db7e28   7410
+    DiRich  623  1a00000a49db2728   73a3
+    DiRich  624  8a00000a49db1b28   71b3
+    DiRich  625  a300000a49923c28   73b2
+    DiRich  626  c600000a4992e428   7526
+    DiRich  627  4300000a4992e328   7517
+    DiRich  629  5600000a4992d828   71a3
+    DiRich  630  0000000a49818528   7a33
+    DiRich  631  eb00000a49818028   7220
+    DiRich  632  dd00000a48adfb28   7636
+    DiRich  634  c300000a4920db28   73a2
+    DiRich  635  b400000a48b35e28   7516
+    DiRich  639  b100000a48f3eb28   7536
+    DiRich  642  c500000a49bfcc28   7196
+    DiRich  643  f200000a49bfcd28   7436
+    DiRich  644  2800000a49858428   7270
+    DiRich  645  be00000a49858d28   7311
+    DiRich  646  5900000a499cba28   7546
+    DiRich  647  c300000a49858128   7626
+    DiRich  649  ce00000a48f3f428   7715
+    DiRich  650  3700000a496a5628   7a32
+    DiRich  651  6200000a496a3f28   7804
+    DiRich  652  9800000a492c6728   70a7
+    DiRich  653  1100000a496a4a28   7637
+    DiRich  654  2600000a496a4b28   72b2
+    DiRich  655  9500000a492ade28   7902
+    DiRich  656  5600000a48e02628   7a34
+    DiRich  657  4300000a48e01d28   7802
+    DiRich  658  c600000a48e01a28   7702
+    DiRich  660  6500000a48e00128   7170
+    DiRich  661  1b00000a48e5e628   7914
+    DiRich  662  4d00000a4912b628   7703
+    DiRich  663  6100000a49261328   7803
+    DiRich  667  da00000a48924e28   7912
+    DiRich  668  5a00000a48805128   7813
+    DiRich  669  fa00000a49b74928   7712
+    DiRich  670  ed00000a49b76128   73b3
+    DiRich  671  dc00000a49b75528   7227
+    DiRich  672  da00000a49b76028   7812
+    DiRich  673  0500000a49f0ab28   7326
+    DiRich  674  3400000a49f09f28   7806
+    DiRich  675  3200000a49f0aa28   7871
+    DiRich  676  0300000a49f09e28   7596
+    DiRich  677  4900000a49f09328   7a22
+    DiRich  678  2200000a48924528   7447
+    DiRich  679  e900000a49e3bc28   7815
+    DiRich  681  9a00000a49e3c928   7b14
+    DiRich  682  8b00000a49e3d428   7171
+    DiRich  683  4000000a49e3f828   7547
+    DiRich  684  0800000a49124728   7b23
+    DiRich  685  2c00000a49124828   7437
+    DiRich  686  6300000a4912e628   7b01
+    DiRich  687  f300000a4912da28   7421
+    DiRich  688  3a00000a4912e528   7714
+    DiRich  689  0000000a49dbe028   7211
+    DiRich  690  1c00000a49d6a728   7310
+    DiRich  691  9b00000a49d6b328   7537
+    DiRich  692  fd00000a49dc0728   7520
+    DiRich  693  e700000a49924828   7621
+    DiRich  694  3800000a49d6a828   7814
+    DiRich  695  e300000a493b9828   7a12
+    DiRich  696  9c00000a493b8728   7280
+    DiRich  697  1900000a493b8028   7317
+    DiRich  699  2200000a49111a28   7731
+    DiRich  700  9200000a49110f28   7221
+    DiRich  702  4100000a48ff0028   7201
+    DiRich  704  dc00000a4906e228   7a24
+    DiRich  706  9100000a49074628   7216
+    DiRich  708  ee00000a499e2d28   7713
+    DiRich  709  7800000a499e2428   7226
+    DiRich  710  ff00000a499e3028   7117
+    DiRich  711  5000000a4912c128   7a14
+    DiRich  713  2200000a48d63728   7202
+    DiRich  714  4200000a49135328   7302
+    DiRich  715  0800000a49135e28   7217
+    DiRich  716  bd00000a4912f128   7126
+    DiRich  717  c000000a4912fd28   7a23
+    DiRich  718  1e00000a49260c28   7116
+    DiRich  719  e400000a4912f228   7127
+    DiRich  720  aa00000a4912d928   7203
+    DiRich  721  e900000a49ae1f28   7303
+    DiRich  722  bc00000a49e3d528   7a25
+    DiRich  724  f000000a49e3ed28   7913
+    DiRich  725  c700000a49e3ec28   7903
+    DiRich  726  a800000a497b0628   7316
+    DiRich  727  7f00000a49313428   72b3
+    DiRich  728  8c00000a497b0928   7327
+    DiRich  731  4500000a497b3628   7676
+    DiRich  732  2400000a48c81528   7597
+    DiRich  733  4c00000a48c82228   7697
+    DiRich  734  7d00000a48c81628   7577
+    DiRich  735  f300000a492cc628   7763
+    DiRich  736  3400000a48cba628   7587
+    DiRich  737  4300000a48fc3828   7776
+    DiRich  738  9000000a48ca1428   7686
+    DiRich  739  d600000a494e6328   7651
+    DiRich  740  9400000a4885a328   7020
+    DiRich  741  0000000a49312b28   7576
+    DiRich  742  7500000a4938ba28   7011
+    DiRich  743  a700000a4927c928   7030
+    DiRich  744  8e00000a49c05728   7690
+    DiRich  746  b800000a48ef0728   7027
+    DiRich  747  8100000a497aff28   7017
+    DiRich  748  b200000a491c9328   7681
+    DiRich  750  d800000a4943af28   7036
+    DiRich  751  1500000a4943b628   7772
+    DiRich  752  5f00000a4943bb28   7680
+    DiRich  753  4600000a48967c28   7670
+    DiRich  754  8d00000a48c85128   7380
+    DiRich  755  1000000a48968328   7481
+    DiRich  756  d400000a48c85228   7370
+    DiRich  757  1f00000a492c7328   7471
+    DiRich  759  d600000a491cce28   7570
+    DiRich  760  e100000a491ccf28   7010
+    DiRich  761  c900000a491caa28   7b05
+    DiRich  763  cf00000a491c9f28   7764
+    DiRich  764  9700000a49128728   7180
+    DiRich  765  9800000a49127b28   7290
+    DiRich  766  d800000a491cb728   7181
+    DiRich  767  6f00000a49128c28   7470
+    DiRich  768  d200000a48e6f228   7580
+    DiRich  769  7600000a49e98628   7031
+    DiRich  770  e200000a49852d28   7037
+    DiRich  771  0600000a498f2e28   72a3
+    DiRich  772  8300000a498f2928   7691
+    DiRich  773  3100000a49897928   7590
+    DiRich  774  7b00000a498f2228   7581
+    DiRich  775  8d00000a498a2d28   7591
+    DiRich  776  0a00000a498a3928   7490
+    DiRich  777  6600000a498a2828   7571
+    DiRich  778  4000000a498a3428   7390
+    DiRich  779  c600000a498fd828   7480
+    DiRich  780  8e00000a498edf28   7371
+    DiRich  781  3e00000a498fd328   7391
+    DiRich  782  0b00000a498ed828   7190
+    DiRich  783  4300000a498fdf28   7381
+    DiRich  784  4100000a498fcc28   7671
+    DiRich  785  8c00000a498ecc28   7291
+    DiRich  786  f300000a498ed328   7281
+    DiRich  787  0400000a498a4028   7191
+    DiRich  788  7400000a49898828   7491
+    DiRich  789  1b00000a49e1da28   7951
+    DiRich  790  d200000a49e1e528   7950
+    DiRich  791  7400000a498ec728   7851
+    DiRich  792  9e00000a498f5e28   7850
+    DiRich  793  5100000a4943c228   7740
+    DiRich  796  2c00000a4943ce28   7840
+    DiRich  797  6200000a49126328   7940
+    DiRich  798  ef00000a48c83928   7841
+    DiRich  799  6800000a48c82d28   7076
+    DiRich  802  3b00000a48967028   7240
+    DiRich  803  ef00000a491cb628   7541
+    DiRich  804  3100000a48c82e28   7530
+    DiRich  805  6100000a4912f528   7531
+    DiRich  806  fe00000a491cab28   7431
+    DiRich  807  c200000a4912ee28   7540
+    DiRich  808  4300000a49073b28   7341
+    DiRich  809  9000000a49a7e428   7440
+    DiRich  810  0900000a49073628   7441
+    DiRich  811  7200000a495a2528   7331
+    DiRich  812  d500000a49073228   7430
+    DiRich  815  6500000a49072728   7330
+    DiRich  816  c400000a48f3ab28   7340
+    DiRich  817  d000000a4945b528   7721
+    DiRich  819  ec00000a494ae928   7720
+    DiRich  820  5000000a49e61d28   7231
+    DiRich  822  1a00000a488f8428   7931
+    DiRich  823  7100000a492a2728   7930
+    DiRich  825  6200000a499dc828   7831
+    DiRich  826  3c00000a49827528   7830
+    DiRich  828  4400000a499dd428   7730
+    DiRich  829  5100000a499def28   7631
+    DiRich  830  5d00000a49523828   7630
+    DiRich  831  ce00000a499e0428   7641
+    DiRich  832  a800000a4951f728   7640
+    DiRich  834  da00000a49409728   7561
+    DiRich  835  4b00000a495f2028   7687
+    DiRich  836  1100000a49520028   7696
+    DiRich  837  f000000a48c85d28   7271
+    DiRich  838  b800000a48c7c428   7741
+    DiRich  840  3700000a4906e728   7750
+    DiRich  841  c100000a48c86928   7751
+    DiRich  842  8f00000a48c7c528   7921
+    DiRich  844  0900000a492cde28   7820
+    DiRich  846  6900000a4949c528   7450
+    DiRich  848  ec00000a4949c228   7257
+    DiRich  849  e600000a49260728   7660
+    DiRich  851  c400000a499e5b28   7821
+    DiRich  852  9d00000a499e5828   7b30
+    DiRich  853  b300000a49b7d228   7090
+    DiRich  854  e900000a49e18e28   7091
+    DiRich  855  4300000a499e4f28   71b1
+    DiRich  856  0a00000a49936128   72a6
+    DiRich  857  b300000a4988d728   71a6
+    DiRich  858  9500000a4988cb28   72b7
+    DiRich  859  b500000a4988e228   7080
+    DiRich  860  a000000a498f9628   73b7
+    DiRich  861  7a00000a498fa728   7086
+    DiRich  862  6b00000a498fba28   71b0
+    DiRich  863  ec00000a498fae28   73b6
+    DiRich  864  ea00000a498f9b28   7096
+    DiRich  868  ee00000a49674428   72a0
+    DiRich  869  4600000a49678528   7b31
+    DiRich  870  da00000a4966ca28   7097
+    DiRich  871  af00000a498f6a28   72b6
+    DiRich  872  8b00000a49e1e628   73a7
+    DiRich  873  2b00000a491c6628   73a1
+    DiRich  874  8b00000a498f6528   72a1
+    DiRich  875  5500000a49e1f128   72b0
+    DiRich  876  9200000a49828128   71a0
+    DiRich  878  5500000a49561028   7081
+    DiRich  879  a500000a49828028   7087
+    DiRich  880  d600000a499dfb28   7b00
+    DiRich  881  8a00000a48f86328   71a7
+    DiRich  882  5200000a48abf528   7071
+    DiRich  884  1600000a48f83528   72b1
+    DiRich  886  f700000a48f86f28   73a0
+    DiRich  888  d100000a498ff028   7077
+    DiRich  889  ea00000a494eb828   71b7
+    DiRich  890  b000000a48c91628   73a6
+    DiRich  892  7900000a48b06c28   72a7
+    DiRich  893  d100000a488fa828   71b6
+    DiRich  894  7300000a48b9e228   7b02
+    DiRich  898  d000000a48ac0d28   73b0
+    DiRich  900  bb00000a48f85728   7b33
+    DiRich  901  4b00000a49dc2728   71a1
+    DiRich 1038  5300000a49d52228   7056
+    DiRich 1039  1b00000a49d36a28   7057
+    DiRich 1040  5700000a49d35228   7873
+    DiRich 1041  bb00000a49f4a328   7047
+    DiRich 1042  2800000a49d51b28   7161
+    DiRich 1043  8c00000a49f4a228   7151
+    DiRich 1044  1e00000a49a9a728   7777
+    DiRich 1045  7600000a49a99028   7101
+    DiRich 1046  4200000a49e4a428   7357
+    DiRich 1047  8e00000a49a99b28   7157
+    DiRich 1048  3a00000a49a9a828   7051
+    DiRich 1049  0b00000a49a99c28   7156
+    DiRich 1052  2000000a49aa4428   7176
+    DiRich 1053  9c00000a49e4b328   7250
+    DiRich 1054  ae00000a49d3dc28   7267
+    DiRich 1055  8d00000a49e4ae28   7266
+    DiRich 1056  f000000a49e4a228   7167
+    DiRich 1057  c200000a49d3cd28   7256
+    DiRich 1058  4500000a49d3d928   7870
+    DiRich 1059  d300000a49d3d028   7050
+    DiRich 1060  9d00000a49d5ad28   7360
+    DiRich 1061  1800000a49d5aa28   7300
+    DiRich 1062  8500000a49776c28   7920
+    DiRich 1063  3100000a49775f28   7386
+    DiRich 1064  f800000a49776028   7477
+    DiRich 1065  ce00000a4895bf28   7b11
+    DiRich 1067  f800000a490e2528   7277
+    DiRich 1068  dd00000a49e00028   7287
+    DiRich 1069  4900000a4955c928   7376
+    DiRich 1070  4a00000a49555f28   7286
+    DiRich 1072  c000000a49d58828   7177
+    DiRich 1074  c500000a49562c28   7476
+    DiRich 1075  ed00000a490e1e28   7356
+    DiRich 1076  dc00000a49555628   7041
+    DiRich 1078  8a00000a49d58528   7060
+    DiRich 1079  dc00000a490e2a28   7b13
+    DiRich 1080  c400000a49d5ae28   7046
+    DiRich 1082  d100000a490ec528   7367
+    DiRich 1083  6800000a4918c628   7b37
+    DiRich 1084  2a00000a49d35e28   7166
+    DiRich 1085  5300000a49134e28   7040
+    DiRich 1087  8f00000a49d52628   7486
+    DiRich 1088  6a00000a48dcd328   7187
+    DiRich 1090  2900000a48de2528   7862
+    DiRich 1091  5600000a490ed128   7377
+    DiRich 1092  fa00000a48dfc428   7186
+    DiRich 1093  4700000a490ecc28   7276
+    DiRich 1094  b700000a49854428   7550
+    DiRich 1096  3000000a49855028   7661
+    DiRich 1097  1f00000a49b35128   7677
+    DiRich 1098  9800000a49b34528   7586
+    DiRich 1099  fd00000a49854928   7650
+    DiRich 1100  6700000a49183a28   7551
+    DiRich 1103  7000000a49179528   7451
+    DiRich 1104  5600000a49178928   7941
+    DiRich 1105  3a00000a49179828   7707
+    DiRich 1108  0600000a4880f128   7a11
+    DiRich 1109  e500000a49e49928   7a10
+    DiRich 1110  dc00000a49df8028   7727
+    DiRich 1112  2e00000a49562928   7a21
+    DiRich 1113  5500000a49553b28   7a30
+    DiRich 1114  c300000a49553228   7230
+    DiRich 1115  0800000a49563528   7a20
+    DiRich 1117  4200000a49563828   7726
+    DiRich 1118  4200000a48b23528   7737
+    DiRich 1119  1800000a49416b28   7a00
+    DiRich 1120  a000000a49421928   7827
+    DiRich 1121  8c00000a49406828   7837
+    DiRich 1122  4b00000a49421c28   7736
+    DiRich 1124  fc00000a48dee828   7836
+    DiRich 1125  2600000a48dceb28   7877
+    DiRich 1126  6c00000a48dce628   7937
+    DiRich 1130  e100000a48b22e28   7466
+    DiRich 1131  6600000a48b23a28   7457
+    DiRich 1132  2700000a49420d28   7927
+    DiRich 1133  3600000a49421028   7756
+    DiRich 1134  5a00000a49420128   7926
+    DiRich 1135  8b00000a49cf7328   7857
+    DiRich 1136  d200000a49cf7028   7746
+    DiRich 1137  af00000a49cf7c28   7936
+    DiRich 1138  5e00000a49cfbe28   7336
+    DiRich 1139  0100000a49cf8828   7826
+    DiRich 1141  5300000a48af1428   7337
+    DiRich 1142  b800000a48af1128   7236
+    DiRich 1143  3800000a495f5528   7246
+    DiRich 1144  f500000a495f4c28   7136
+    DiRich 1145  fa00000a490e3628   7146
+    DiRich 1146  bf00000a48afa128   7346
+    DiRich 1148  3200000a48ff7528   7947
+    DiRich 1149  ff00000a48ff6c28   7863
+    DiRich 1150  5100000a490e6128   7757
+    DiRich 1151  d400000a490e6628   7467
+    DiRich 1152  eb00000a48ffd228   7747
+    DiRich 1153  8e00000a48af9528   7567
+    DiRich 1154  7600000a48af9e28   7566
+    DiRich 1155  be00000a48c96f28   7556
+    DiRich 1157  4c00000a49d12228   7456
+    DiRich 1158  1300000a4985ef28   7667
+    DiRich 1159  ba00000a49f42628   7557
+    DiRich 1160  6200000a49d51628   7666
+    DiRich 1161  2900000a49d59e28   7656
+    DiRich 1162  e000000a49d5a128   7347
+    DiRich 1163  9500000a49d5e128   7237
+    DiRich 1164  8d00000a49f42728   7247
+    DiRich 1165  6900000a499f2028   7147
+    DiRich 1166  ca00000a49f38a28   7956
+    DiRich 1167  7c00000a499f1b28   7946
+    DiRich 1168  2800000a49f40928   7846
+    DiRich 1170  4400000a49552628   7137
+    DiRich 1172  f000000a49135528   7847
+    DiRich 1173  1b00000a49cf4f28   7957
+    DiRich 1174  2c00000a48df9f28   7856
+    DiRich 1175  3900000a48dfa428   7a36
+    DiRich 1176  6000000a490e5528   7a37
+    DiRich 1177  c300000a490e4e28   7657
+    DiRich 1179  8d00000a49cf4628   7a27
+    DiRich 1180  7700000a49cf5e28   7817
+    DiRich 1181  4f00000a49cfa328   7a17
+    DiRich 1182  8000000a49820a28   7a26
+    DiRich 1183  ce00000a49f3ac28   7717
+    DiRich 1184  cf00000a49f32928   7716
+    DiRich 1185  af00000a49552328   7916
+    DiRich 1186  9300000a49f29028   7917
+    DiRich 1187  ec00000a49f28f28   7a16
+    DiRich 1188  8200000a49f39428   7350
+    DiRich 1189  9f00000a49183128   7260
+    DiRich 1190  3e00000a49417728   7251
+    DiRich 1191  5e00000a4917c528   7361
+    DiRich 1192  c900000a49418028   7150
+    DiRich 1193  e000000a49182e28   7261
+    DiRich 1194  6700000a49417428   7460
+    DiRich 1195  9800000a49c92b28   7461
+    DiRich 1196  d100000a49c9b028   7351
+    DiRich 1198  d200000a49c92628   7066
+    DiRich 1199  e700000a49f34c28   7067
+    DiRich 1200  e600000a49bc5828   7160
+DiRichConcentrator   10  4100000a51caa828   8289
+DiRichConcentrator   11  6900000a529fc728   826a
+DiRichConcentrator   12  fd00000a52914328   8268
+DiRichConcentrator   14  3400000a52589728   8228
+DiRichConcentrator   15  cb00000a524cc128   8248
+DiRichConcentrator   16  8a00000a51a40728   8246
+DiRichConcentrator   17  5a00000a52571228   8288
+DiRichConcentrator   18  8d00000a52457728   8247
+DiRichConcentrator   19  6500000a52332628   8287
+DiRichConcentrator   21  bc00000a51cb1928   8258
+DiRichConcentrator   22  1100000a52027828   8279
+DiRichConcentrator   23  b500000a51d87228   8217
+DiRichConcentrator   25  9c00000a52065728   8297
+DiRichConcentrator   37  0c00000a525a5828   8211
+DiRichConcentrator   38  5a00000a52598c28   8291
+DiRichConcentrator   40  ec00000a52048628   825a
+DiRichConcentrator   43  5f00000a51e39328   8261
+DiRichConcentrator   44  8400000a51f7ca28   8285
+DiRichConcentrator   45  5a00000a51e56628   8298
+DiRichConcentrator   46  7500000a51fdf228   8218
+DiRichConcentrator   47  de00000a525f5828   8250
+DiRichConcentrator   48  9100000a51d7fa28   82a5
+DiRichConcentrator   50  de00000a51ef1e28   8295
+DiRichConcentrator   51  7200000a52545c28   8254
+DiRichConcentrator   52  7500000a51e0ce28   8231
+DiRichConcentrator   53  1d00000a527d0128   8221
+DiRichConcentrator   54  5600000a5200a828   8205
+DiRichConcentrator   55  7000000a51d93e28   8251
+DiRichConcentrator   56  4b00000a5200df28   8260
+DiRichConcentrator   61  2800000a52994628   8245
+DiRichConcentrator   63  df00000a51d94f28   8281
+DiRichConcentrator   64  bd00000a52531928   8262
+DiRichConcentrator   65  8000000a527a9d28   8271
+DiRichConcentrator   66  3c00000a51bd7f28   8223
+DiRichConcentrator   67  9b00000a525fa928   8212
+DiRichConcentrator   68  8600000a52a0e128   8204
+DiRichConcentrator   69  9800000a52044328   8263
+DiRichConcentrator   70  0f00000a5286d128   8282
+DiRichConcentrator   71  6b00000a5222cf28   8243
+DiRichConcentrator   72  9200000a5256b128   8264
+DiRichConcentrator   73  a800000a51d91c28   8283
+DiRichConcentrator   74  9500000a527aa628   8241
+DiRichConcentrator   75  1600000a51e9f228   8284
+DiRichConcentrator   76  9d00000a52967728   8206
+DiRichConcentrator   77  4100000a52575028   8213
+DiRichConcentrator   78  8200000a5263d628   8267
+DiRichConcentrator   79  0900000a51d5b828   8294
+DiRichConcentrator   80  ae00000a523d9428   8214
+DiRichConcentrator   81  bc00000a52539c28   82a6
+DiRichConcentrator   82  1900000a52997228   82a4
+DiRichConcentrator   83  e600000a5299c928   8244
+DiRichConcentrator   84  4000000a52585228   8225
+DiRichConcentrator   85  9f00000a51e15728   824a
+DiRichConcentrator   86  9800000a5257f728   8265
+DiRichConcentrator   87  b200000a5250ce28   8216
+DiRichConcentrator   88  b500000a51dd0f28   8224
+DiRichConcentrator   89  dd00000a51d5f028   8215
+DiRichConcentrator   90  8000000a523a8b28   8227
+DiRichConcentrator   91  f700000a51f92128   8259
+DiRichConcentrator   92  2300000a51d96228   8229
+DiRichConcentrator   93  1c00000a51e62a28   8226
+DiRichConcentrator   94  f500000a529da328   8252
+DiRichConcentrator   96  f400000a51da9728   8242
+DiRichConcentrator   97  b600000a51e5d328   8240
+DiRichConcentrator   98  ac00000a51dd5e28   8293
+DiRichConcentrator   99  2500000a52360928   8222
+DiRichConcentrator  100  4800000a51d33928   8292
+DiRichConcentrator  102  3a00000a523fbc28   8256
+DiRichConcentrator  104  2a00000a523e3d28   8249
+DiRichConcentrator  105  b300000a52478d28   8269
+DiRichConcentrator  106  9500000a52353728   8239
+DiRichConcentrator  107  5900000a52958c28   8286
+DiRichConcentrator  108  cd00000a52437328   8296
+DiRichConcentrator  109  6800000a5236b428   8266
+    TRB3sc 1361  b100000940d69628   83ca
+    TRB3sc 1371  4900000940a60928   83c7
+    TRB3sc 1381  7700000940956828   83c3
+    TRB3sc 1391  6100000940df2928   83c2
+    TRB3sc 1411  a900000940a5fd28   83cb
+    TRB3sc 1441  5c00000940a63228   83c1
+    TRB3sc 1531  3c0000094093b628   83c9
+    TRB3sc 1581  2b00000940939e28   83c0
+    TRB3sc 1621  4800000940943c28   83c4
+    TRB3sc 1631  840000094117ff28   83c8
+    TRB3sc 1641  250000094117f728   83c5
+    TRB3sc 1661  f300000941240528   83c6
       TRB3   60  b5000003482d3d28   5000
       TRB3   61  d5000003481eef28   5001
       TRB3   62  ec00000348284328   5002
       TRB3 1061  40000004f9e00b28   5011
       TRB3 1062  ea000004fa000028   5012
       TRB3 1063  c7000004fa00c628   5013
-       TRB   76  36000001fc5df528   4001
-       TRB   82  e2000001fc5dbd28   4000
-       TRB  107  59000001c1711828   4010
+      TRB3   65  c4000003481ef228   8880
+      TRB3 1065  4b000004f9decd28   8890
        TRB   62  df000001c17f1728   4c30
        TRB   64  910000012419cd28   4c10
        TRB   72  71000001c17b8728   4c31
        TRB   81  5a000001fc5de428   4c40
        TRB   84  be00000123ec4c28   4c50
        TRB   86  34000001fc5bb028   4c20
+    TRB3sc    9  3c00000270ca9528   8600
        TRB   60  7e00000123f4fb28   4400
        TRB   90  28000001fc4bcb28   4410
        TRB  108  c9000001c1712428   4420
+    TRB3sc    7  ad00000270ce4828   8700
index 237474abdbd2d8554e52f6e117153031a3f846f3..22d843b1d7015b2203cfb2dbf04d4c9a75267029 100755 (executable)
@@ -29,7 +29,7 @@ if( $opt_help ) {
     exit(0);
 }
 
-my $cmd  = "trbcmd i 0xffff";   # read IDs 
+my $cmd  = "/home/hadaq/bin/trbcmd i 0xffff";   # read IDs 
 my $host = "hadesp31";
 my $log  = "board_ids";
 
@@ -103,32 +103,32 @@ sub readDB()
 
     #- Read serials_db
     #&readSerialsDB("../start/serials_start.db", "StartVeto");
-    &readSerialsDB("../start/serials_start_trb3.db", "StartTrb3");
+    &readSerialsDB("../start/serials_start_trb3.db", "StartTrb3",0);
    # &readSerialsDB("../hub/serials_hub.db", "Hub-All");
 #     &readSerialsDB("../hub/serials_trb3sc.db", "Hub-AllTrb3");
 #&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Hub-AllTrb3");
-&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Ecal-Hub");
-&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Rich-Hub");
-&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Central-Hub");
-&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "CTS-Hub");
-&readSerialsDB("../hub/serials_hub.db", "RPC-Hub");
-&readSerialsDB("../hub/serials_hub.db", "TOF-Hub");
-&readSerialsDB("../hub/serials_hub.db", "Wall-Hub");
-&readSerialsDB("../hub/serials_hub.db", "Pion-Hub");
-&readSerialsDB("../hub/serials_hub.db", "StartTrb3Hub");
-
-&readSerialsDB("../cts/serials_cts.db", "CTS");
-    &readSerialsDB("../mdc/serials_mdcaddon.db", "MDC-AddOn");
-    &readSerialsDB("../mdc/serials_oep.db", "MDC-OEP");
+&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Ecal-Hub",0);
+&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Rich-Hub",0);
+&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "Central-Hub",0);
+&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "CTS-Hub",0);
+&readSerialsDB("../hub/serials_hub.db", "RPC-Hub",0);
+&readSerialsDB("../hub/serials_hub.db", "TOF-Hub",0);
+&readSerialsDB("../hub/serials_hub.db", "Wall-Hub",0);
+&readSerialsDB("../hub/serials_hub.db", "Pion-Hub",0);
+&readSerialsDB("../hub/serials_hub.db", "StartTrb3Hub",0);
+
+&readSerialsDB("../cts/serials_cts.db", "CTS",0);
+    &readSerialsDB("../mdc/serials_mdcaddon.db", "MDC-AddOn",0);
+    &readSerialsDB("../mdc/serials_oep.db", "MDC-OEP",0);
 #     &readSerialsDB("../ecal/serials_trb3sc.db", "ECal");
-&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "ECal");
+&readSerialsDB("../../daqtools/base/serials_trb3sc.db", "ECal",0);
     #&readSerialsDB("../pion/serials_pion.db", "Pion");
-&readSerialsDB("../rich/serials_dirich.db", "Rich");
-&readSerialsDB("../rich/serials_dirich_concentrator.db", "Rich-Comb");
-    &readSerialsDB("../rpc/serials_rpc.db", "RPC");
+&readSerialsDB("../rich/serials_dirich.db", "Rich",2);
+&readSerialsDB("../rich/serials_dirich_concentrator.db", "Rich-Comb",1);
+    &readSerialsDB("../rpc/serials_rpc.db", "RPC",0);
     #&readSerialsDB("../shower/serials_shower.db", "Shw-AddOn");
-    &readSerialsDB("../tof/serials_tof.db", "TOF");
-    &readSerialsDB("../wall/serials_wall.db", "Wall");
+    &readSerialsDB("../tof/serials_tof.db", "TOF",0);
+    &readSerialsDB("../wall/serials_wall.db", "Wall",0);
  
     #- Read addresses_db
     #&readAddressesDB("../start/addresses_start.db", "StartVeto");
@@ -243,7 +243,7 @@ sub readAddrRangesDB()
        $addr_ranges_href->{$sys}->{'max'}  = $max;
        $addr_ranges_href->{$sys}->{'type'} = $type;
        
-       # print   " readAddrRangesDB got system $sys , min: $min, max:$max type:$type \n";    
+       #print   " readAddrRangesDB got system $sys , min: $min, max:$max type:$type \n";    
        
     }
     
@@ -254,7 +254,7 @@ sub readAddressesDB()
 {
     my ($file2read, $type) = @_;
 
  # print "readAddressesDB is reading file $file2read for type $type \n ";
 print "readAddressesDB is reading file $file2read for type $type \n ";
     
     my $fh = new FileHandle($file2read, "r") or die "could not open file $file2read";;
 
@@ -295,7 +295,8 @@ sub readAddressesDB()
        
        #- Add to a main configuration hash
        if( defined $conf_db_href->{'addresses'}->{$type}->{$serial}->{'addr'} ){
-           if( hex($addr) < hex($conf_db_href->{'addresses'}->{$type}->{$serial}->{'addr'}) ){
+           if( hex($addr) < hex($conf_db_href->{'addresses'}->{$type}->{$serial}->{'addr'}) )
+           {
                $conf_db_href->{'addresses'}->{$type}->{$serial}->{'addr'}   = $addr;
                $conf_db_href->{'addresses'}->{$type}->{$serial}->{'fpga'}   = $fpga;
                $conf_db_href->{'addresses'}->{$type}->{$serial}->{'design'} = $design;
@@ -335,7 +336,7 @@ sub readAddressesDB()
                    $addr_ranges_href->{$type}->{'type'};
            }
            else{
-               print "Address $addr does not fit the board type $type! Skip it\n" if ($opt_verb);
+               #print "Address $addr does not fit the board type $type! Skip it\n" if ($opt_verb);
                next;
                #print "Address $addr does not fit the board type $type! Exit\n";
                #exit(1);
@@ -346,9 +347,9 @@ sub readAddressesDB()
 
 sub readSerialsDB()
 {
-    my ($file2read, $type) = @_;
+    my ($file2read, $type, $mode) = @_;
 
-    #print "readSerialsDB is reading file $file2read for type $type \n ";
+    #print "readSerialsDB is reading file $file2read for type $type , mode is $mode\n ";
     
     my $fh = new FileHandle($file2read, "r") or die "could not open file $file2read";
 
@@ -372,10 +373,33 @@ sub readSerialsDB()
        if( $_ =~ /(\d+)\s+0x(\w+)/){
            $serial = $1; 
            $id     = lc($2);
+           # JAM2018: optionally correct/drop the additional trailing number in rich setup
+           if($mode > 0)
+           {
+             my $tempserial=$serial;
+             $serial= substr ($serial, 0, length($serial) -1);     
+             #print "corrected serial number $tempserial to $serial \n";
+             if($mode > 1)
+             {
+               # for dirich add optional leading 0
+               if(length($serial) <4){
+                     $serial= "0" . $serial;
+               #      print "added leading 0 to serial number: $serial";
+                   }
+               }             
+           }
+           
+           
+           
+           
+          
+           
        }
 
        unless( defined $serial || defined $id ){
           print "Skipping not defined serial or/and ids in $file2read \n" if ($opt_verb);
+          print " serial:$serial \n" if (defined $serial );
+          print " id:$id \n" if (defined $id);
           next;
        
        #    print "Not all serials or/and ids are defined in $file2read! Line: \"$_\". Exit\n";
@@ -383,7 +407,7 @@ sub readSerialsDB()
          #  exit(1);
        }
 
-       #print " serial:$serial, id:$id \n";
+#      print " serial:$serial, id:$id \n";
        
        #- Add to a main configuration hash
        $conf_db_href->{'serials'}->{$type}->{$serial} = $id;
@@ -402,16 +426,19 @@ sub checkBoards()
            foreach my $serial ( sort keys %{$conf_db_href->{'serials'}->{$type}} ){
 
                if( $id eq $conf_db_href->{'serials'}->{$type}->{$serial} ){
-
+                 #  print "Type: $type ID: $id ";
                    my $addr = $conf_db_href->{'addresses'}->{$type}->{$serial}->{'addr'};
 
                    unless( defined $addr ){
-                         print STDERR "ERROR: Address is not defined for type: $type serial: $serial.\n" if( $opt_verb ) ;
+                       #  print STDERR "ERROR: Address is not defined for type: $type serial: $serial.\n" if( $opt_verb ) ;
+                        print "ERROR: Address is not defined for type: $type serial: $serial.\n" if( $opt_verb ) ;
                        next;
                    }
+                  # print " - Address: $addr \n";
                    unless( $netaddr eq $addr ){
-                         print STDERR "Network address $netaddr does not fit the data base $addr!\n" if( $opt_verb ) ;
-                       }
+                         # print STDERR "Network address $netaddr does not fit the data base $addr!\n" if( $opt_verb ) ;
+                        print "Network address $netaddr does not fit the data base $addr!\n" if( $opt_verb ) ;
+               }
                }
            }
        }
index 3f134e3b3c96c81551c0e4ecaae7d94a90f5fe0c..d49b501966559fa7a7bf44edb4cd95b89c941c4f 100755 (executable)
@@ -35,8 +35,8 @@ my $opt_oracle = 0;
 # JAM optionally change account here:
 my $orauser      = 'DAQ_PUB';
 my $orapass      = 'please_give_oracle_password';
-my $oradatabase  = 'db-hades-test';
-#my $database  = 'db-hades';
+#my $oradatabase  = 'db-hades-test';
+my $oradatabase  = 'db-hades';
 
 # JAM access details for postgres
 my $pguser      = 'report';
@@ -149,6 +149,10 @@ my $impDay      = $dt->ymd;
 #import day ( = yesterday) defined by perl program
 
 #my $impDayBegin = '2016-09-20 00:00:00.000000';
+
+# JAM25-07-2018: import everything since start of magnet service???
+#my $impDayBegin = '2018-07-15 00:00:00.000000';
+
 my $impDayBegin = "$impDay 00:00:00.000000";
 #begin of import day
 my $impDayEnd   = "$impDay 23:59:59.999999";
diff --git a/oracle/repairRich2ora.pl b/oracle/repairRich2ora.pl
new file mode 100755 (executable)
index 0000000..9e57de6
--- /dev/null
@@ -0,0 +1,221 @@
+#!/usr/bin/perl -w
+
+# JAM 28-08-2018 try to repair wrong serial boards by this.
+## important note: user DAQ_PUB needs additinal grants to delete and update on table boards!
+# by default this is revoked.
+
+use English;
+use strict;
+use Getopt::Long;
+use Data::Dumper;
+use FileHandle;
+
+use DBI;
+use DBD::ODBC;
+
+my $opt_help  = 0;
+my $opt_verb  = 0;
+my $opt_table;
+my $opt_file;
+my $opt_alone = 0;  # Connect to Oracle (0=yes / 1=no)
+my $opt_update = 1; # update table instead of deleting entries
+my $opt_select = 0; # testmode (1) or delete entries (0)
+
+
+
+GetOptions ('h|help'      => \$opt_help,
+           'v|verb'      => \$opt_verb,
+           'f|file=s'    => \$opt_file,
+           'a|alone'     => \$opt_alone);
+
+if( $opt_help ) {
+    &help();
+    exit(0);
+}
+
+my $user     = 'DAQ_PUB';
+my $pass     = 'hades';
+my $database = 'db-hades';
+#my $database = 'db-hades-test';
+my $table1   = 'daq.boards';
+
+my $boardtype = 'DiRich';
+
+my $serialsfile= "/home/hadaq/trbsoft/daq/rich/serials_dirich.db";
+
+#--- Connect the database
+my $dbh;
+unless($opt_alone){
+    print "Try to connect to the Data Base ...\n";
+    $dbh = DBI->connect( "dbi:Oracle:$database", $user, $pass, {RaiseError=>0, 'PrintError'=>0});
+    print "Connected!\n";
+}
+
+my $sth1;
+
+#--- Prepare remove
+if( !$opt_alone ){
+
+  if($opt_select ){
+    $sth1 = $dbh->prepare("SELECT  board\_id FROM $table1 WHERE board\_type = '$boardtype' AND serial\_number = ? ")    
+               or die "Couldn't prepare statement: " . $dbh->errstr;
+                 }
+  else
+  {
+#     $sth1 = $dbh->prepare("DELETE   FROM $table1 WHERE board\_type = '$boardtype' AND serial\_number = ? ")    
+#              or die "Couldn't prepare statement: " . $dbh->errstr;
+       if($opt_update){        
+       $sth1 = $dbh->prepare("UPDATE $table1 SET TEMPERATURE_SENSOR = ? WHERE board\_type = '$boardtype' AND serial\_number = ? ")    
+               or die "Couldn't prepare statement: " . $dbh->errstr;
+               }
+       else
+               {
+                   $sth1 = $dbh->prepare("DELETE   FROM $table1 WHERE board\_type = '$boardtype' AND serial\_number = ? ")    
+               or die "Couldn't prepare statement: " . $dbh->errstr;
+               }
+  }
+               
+}
+&insert2oracle();
+$sth1->finish() if(defined $sth1);
+$dbh->disconnect || die "Failed to disconnect\n" unless($opt_alone);
+
+exit(0);
+
+#################### END OF MAIN #################
+
+sub help()
+{
+    print "\n";
+    print << 'EOF';
+
+repairRich2ora.pl
+
+   This script repairs wrong Dirich boards in Oracle data base.
+
+Usage:
+
+   Command line:  board2ora.pl
+   [-h|--help]               : Print this help.
+   [-v|--verb]               : More verbouse.
+   [-f|--file <path/file>]   : Path to a file with the temperature sensors of changed board ids 
+                               for repair Oracle DB. 
+
+Examples:
+
+   Insert info on subEvtIds from file subevtids.txt to Oracle:
+       repairRich2ora -f boards_to_remove.txt
+
+
+EOF
+}
+
+sub insert2oracle()
+{
+    my $fh = new FileHandle($opt_file, "r");
+
+    while(<$fh>){
+       chomp($_);
+
+       #- Skip line if it contains only whitespaces
+
+       next if(/^\s+$/);
+
+       $_ =~ s/^\s+//;  # remove leading spaces
+
+       &removeBoardFromtable($_);
+    }
+
+    $fh->close;
+}
+
+sub removeBoardFromtable()
+{
+    my ($line) = @_;
+    
+    my ($target_tid) = split(/\s+/, $line);
+    my $SPACE = "";
+    my $serialsfh = new FileHandle($serialsfile, "r");
+     
+    #  print "removeBoardFromtable sees $line\n";
+    my $hextarget_tid = "0x" . $target_tid;
+   
+    serialsloop: while(<$serialsfh>){
+       chomp($_);
+
+       $_ =~ s{                # Substitue...
+                \#             # ...a literal octothorpe
+                [^\n]*         # ...followed by any number of non-newlines
+              }
+              {$SPACE}gxms;    # Raplace it with a single space
+
+       #- Skip line if it contains only whitespaces
+       next unless(/\S/);
+
+       
+       
+       
+       $_ =~ s/^\s+//;  # remove leading spaces
+       
+       #look for the serial
+       my ($serial, $temp_id) = split(/\s+/, $_);
+       # for dirich have to adjust format of serial number:
+        $serial= substr ($serial, 0, length($serial) -1);         
+       #print "Scanning: $target_tid, $serial, $temp_id\n" if($opt_verb);
+       next unless (defined($temp_id) && defined($serial) );
+       if ($hextarget_tid eq $temp_id)
+       {
+         
+        if($opt_update)
+        
+        {
+           print "updating $target_tid for serial: $serial \n" if($opt_verb);
+           $sth1->execute($target_tid,  $serial) unless($opt_alone);
+        }
+        else 
+        {
+         print "removing $serial for old  id: $temp_id \n" if($opt_verb);
+           $sth1->execute($serial) unless($opt_alone);
+        }
+        
+         if($opt_select){
+        # for test mode, we print out results of select statement:
+         my @data;
+         while (@data = $sth1->fetchrow_array()) {
+               my $sid =   $data[0];
+               print "Found board id $sid for serial $serial\n";
+         }
+        }
+        &printError( $dbh->errstr );
+        last serialsloop;
+       }
+    }
+      $serialsfh->close;
+}
+
+    
+
+
+
+sub printError()
+{
+    my ($error) = @_;
+
+    unless( defined $error){
+       return 0;
+    }
+
+    #- Do not print the following errors
+    if( $error =~ /DAQ.BOARDS_UNQ1/ ){
+       return 0;
+    }
+
+    if( defined $error ){
+       
+       my @errors = split(/ORA-/, $error);
+       
+       $error = $errors[1];
+
+       print "ERROR: $error\n";
+    }
+}
index f4f9e7a6b3c8cdfabaf1996a520521119bbb52c2..3df3da20e2bd99ed19d7eae6401f17ca81296cf9 100644 (file)
@@ -1,18 +1,11 @@
-       Hub2   8100    MDC-Hub
-       Hub2   8400    RPC-Hub
-       Hub2   8880 StartTrb3Hub
-       Hub2   8700   Wall-Hub
-       Hub2   8600    TOF-Hub
-       Hub2   8320   RICH-Hub
-       Hub2   8300   RICH-Hub
-       Hub2   8310   RICH-Hub
-       Hub2   8410    RPC-Hub
-       Hub2   8800    CTS-Hub
-       Hub2   8110    MDC-Hub
-       Hub2   8900   Pion-Hub
-       Hub2   8000 Central-Hub
-       Hub2   8910   Pion-Hub
-       Hub2   8890 StartTrb3Hub
+    TRB3sc   8800    CTS-Hub
+    TRB3sc   8000 Central-Hub
+    TRB3sc   8a01   Ecal-Hub
+    TRB3sc   8a03   Ecal-Hub
+    TRB3sc   8a05   Ecal-Hub
+    TRB3sc   8a02   Ecal-Hub
+    TRB3sc   8a04   Ecal-Hub
+    TRB3sc   8a00   Ecal-Hub
  MDC-AddOn   1150  MDC-AddOn
  MDC-AddOn   1120  MDC-AddOn
  MDC-AddOn   1010  MDC-AddOn
  MDC-AddOn   1020  MDC-AddOn
  MDC-AddOn   1050  MDC-AddOn
  MDC-AddOn   1000  MDC-AddOn
- Shw-AddOn   3230  Shw-AddOn
- Shw-AddOn   3200  Shw-AddOn
- Shw-AddOn   3210  Shw-AddOn
- Shw-AddOn   3250  Shw-AddOn
- Shw-AddOn   3240  Shw-AddOn
- Shw-AddOn   3220  Shw-AddOn
+    TRB3sc   8400    RPC-Hub
+    TRB3sc   8410    RPC-Hub
+    TRB3sc   83ca   Rich-Hub
+    TRB3sc   83c7   Rich-Hub
+    TRB3sc   83c3   Rich-Hub
+    TRB3sc   83c2   Rich-Hub
+    TRB3sc   83c1   Rich-Hub
+    TRB3sc   83c9   Rich-Hub
+    TRB3sc   83c0   Rich-Hub
+    TRB3sc   83c4   Rich-Hub
+    TRB3sc   83c8   Rich-Hub
+    TRB3sc   83c5   Rich-Hub
+    TRB3sc   83c6   Rich-Hub
+      TRB3   8880 StartTrb3Hub
+      TRB3   8890 StartTrb3Hub
+    TRB3sc   8600    TOF-Hub
+    TRB3sc   8700   Wall-Hub
index 40ebbbed13fe5e47f8e08f493c7e17ac6cfb6055..391790c39f95db20dfe3054df83f93d576de4c1b 120000 (symlink)
@@ -1 +1 @@
-addresses_dirich.db_20180525
\ No newline at end of file
+addresses_dirich.db_20180829
\ No newline at end of file
index 1e656081311867fd7e60f85727946e46951f905f..919973d3aea563734b45ba07665302c0be8cf88f 120000 (symlink)
@@ -1 +1 @@
-addresses_concentrator.db_20180525
\ No newline at end of file
+addresses_concentrator.db_20180829
\ No newline at end of file
index 7e557774bfe6b42422e6629ad881f4b2e05f3b31..17ed7f993c743ec1648ad53918f7c6885f2e3ce9 100644 (file)
@@ -6,4 +6,6 @@
 
 trbcmd loadbit 0xfe52 0xd580 0x6 0x2  #switch trigger input correctly
 
+trbcmd loadbit 0xfe51 0x7111 0x0000ffff 170
+
 load_register register_tdc_rich.db
index c94246563de364f224302f360433b8d12e16e942..87fc3840fb0135f1576ddf62bbc3fde02f76ee09 100644 (file)
@@ -1,5 +1,5 @@
 # Board   Chain   ChainLen  DAC   Channel   Command   Value
-  5000    1       2         0     0         3         0x7000 # ---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 #                                
@@ -16,7 +16,7 @@
   5000    1       2         1     6         3         0x7000 # ch. 7
   5000    1       2         1     7         3         0x7000 # ch. 8
 #############################################################################
-  5000    2       2         0     0         3         0x7000 # ---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 #                                  
@@ -36,7 +36,7 @@
 #######   Next TDC
 #######
 # Board   Chain   ChainLen  DAC   Channel   Command   Value
-  5001    1       2         0     0         3         0x8000 # ---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         0     5         3         0x7000                                  
   5001    1       2         0     6         3         0x7000                                  
   5001    1       2         0     7         3         0x7000 
-  5001    1       2         1     0         3         0x3000 ### ch. 4
-  5001    1       2         1     1         3         0x3000 ### ch. 3
-  5001    1       2         1     2         3         0x3000 ### ch. 2
-  5001    1       2         1     3         3         0x3000 ### ch. 1
-  5001    1       2         1     4         3         0x3000 ### ch. 5
-  5001    1       2         1     5         3         0x3000 ### ch. 6
-  5001    1       2         1     6         3         0x3000 ### ch. 7
-  5001    1       2         1     7         3         0x3000 ### ch. 8
+  5001    1       2         1     0         3         0x7000 ### ch. 4
+  5001    1       2         1     1         3         0x7000 ### ch. 3
+  5001    1       2         1     2         3         0x7000 ### ch. 2
+  5001    1       2         1     3         3         0x7000 ### ch. 1
+  5001    1       2         1     4         3         0x7000 ### ch. 5
+  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
 #############################################################################
-  5001    2       2         0     0         3         0x6000 # ---Glob. Thres  #4                 
+  5001    2       2         0     0         3         0x5000 # ---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 #                                  
   5001    2       2         0     5         3         0x9000                                    
   5001    2       2         0     6         3         0x9000                                    
   5001    2       2         0     7         3         0x9000  
-  5001    2       2         1     0         3         0x9000 ### ch. 4  
-  5001    2       2         1     1         3         0x9000 ### ch. 3  
-  5001    2       2         1     2         3         0xa000 ### ch. 2  
-  5001    2       2         1     3         3         0x9000 ### ch. 1  
-  5001    2       2         1     4         3         0x9000 ### ch. 5  
-  5001    2       2         1     5         3         0x9000 ### ch. 6  
-  5001    2       2         1     6         3         0x9000 ### ch. 7  
-  5001    2       2         1     7         3         0x9000 ### ch. 8    
+  5001    2       2         1     0         3         0x7000 ### ch. 4  
+  5001    2       2         1     1         3         0x7000 ### ch. 3  
+  5001    2       2         1     2         3         0x7000 ### ch. 2  
+  5001    2       2         1     3         3         0x7000 ### ch. 1  
+  5001    2       2         1     4         3         0x7000 ### ch. 5  
+  5001    2       2         1     5         3         0x7000 ### ch. 6  
+  5001    2       2         1     6         3         0x7000 ### ch. 7  
+  5001    2       2         1     7         3         0x7000 ### ch. 8    
 #######
 #######   Next TDC
 #######
 # Board   Chain   ChainLen  DAC   Channel   Command   Value
-  5002    1       2         0     0         3         0x6000 # ---Glob. Thres  #5                 
-  5002    1       2         0     1         3         0x0000 #                                
+  5002    1       2         0     0         3         0x2000 # ---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     4         3         0xd000 # --- Hyst. min d                
   5002    1       2         0     5         3         0x8000                                  
   5002    1       2         0     6         3         0x9000                                  
-  5002    1       2         0     7         3         0xa000 
-  5002    1       2         1     0         3         0x6000 ### ch. 4
-  5002    1       2         1     1         3         0x6000 ### ch. 3
-  5002    1       2         1     2         3         0x7000 ### ch. 2
-  5002    1       2         1     3         3         0x6000 ### ch. 1
-  5002    1       2         1     4         3         0x6000 ### ch. 5
-  5002    1       2         1     5         3         0x6000 ### ch. 6
-  5002    1       2         1     6         3         0x6000 ### ch. 7
-  5002    1       2         1     7         3         0x6000 ### ch. 8
+  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    2       2         0     0         3         0x8000 # ---Glob. Thres  #6                 
   5002    2       2         0     1         3         0x5000 #                                  
index 7e1ba3f591d2395f961ec710e312f40a92599fef..f5e8b4e15e1eff9dbba54c371d8bb468f3127792 100644 (file)
@@ -2,3 +2,4 @@
 ###################################################
 0x0100       1521        1            0       0   #central rack trig gen
 0x0110       1451        1            0       0   # RICH rack sensor board
+0x0120       0071        1            0       0   #ECal Laser Controller
index ddbc65afb0e78933e3d97210a690c8f204870dd7..35d2fad1dfe83fcb624d99c1c7a30b514d13e8f6 100644 (file)
@@ -1,2 +1,4 @@
+   0071        0xfc000006e90e8828
    1451        0xc300000940955b28
    1521        0x8000000940d6a228
+   
index 202aa2d8670e4960b35387b17590fa996ebc01d8..4fd789a31d0da1fd257188a9d8d8efc3c613e240 100644 (file)
@@ -14,9 +14,12 @@ trbcmd clearbit 0x8000 0xc0 1  #0x0100
 trbcmd clearbit 0x8000 0xc1 1
 trbcmd clearbit 0x8017 0xc0 0x40  #0x0110
 trbcmd clearbit 0x8017 0xc1 0x40
+trbcmd clearbit 0x8800 0xc0 0x04  #0x0120
+trbcmd clearbit 0x8800 0xc1 0x04
 #Trigger off on trigger generation boards
 trbcmd clearbit 0x0100 0x22 0x8000000
 trbcmd clearbit 0x0110 0x22 0x8000000
+trbcmd clearbit 0x0120 0x22 0x8000000
 
 
 
@@ -42,7 +45,7 @@ trbcmd w 0xfe48 0x7111 1024        #1024 words per FPGA
 
 trbcmd w 0x5000 0xc802 0xffff # enable 16 channels in 0x5000
 trbcmd w 0x5001 0xc802 0xffff # enable 16 channels in 0x5001
-trbcmd w 0x5002 0xc802 0x0000 # enable 0 channels in 0x5002
+trbcmd w 0x5002 0xc802 0x00ff # enable 8 channels in 0x5002
 trbcmd w 0x5003 0xc802 0x0000 # enable 0 channels in 0x5003