From 455ca121102cb356a8624db15ea7d811e78cf8d0 Mon Sep 17 00:00:00 2001 From: "hadaq@countinghouse" Date: Tue, 13 May 2014 20:33:07 +0200 Subject: [PATCH] current status, mt --- evtbuild/eb.conf | 2 +- evtbuild/start_eb_gbe.pl | 2 +- hub/register_configgbe_ip_eb5master.db | 32 +- hub/register_configgbe_multiQueueOn.db | 2 +- main/data_sources_notrb3.db | 24 +- main/restartEB.sh | 2 +- main/startup_briccolage.sh | 19 +- nettools/nettrace.db | 1245 ++++++++++++------------ pion/config/nxyter.sh | 11 + pion/config/nxyter/trb3_setup.sh | 31 +- start/ThreshPadiwaVeto.db | 20 +- start/startup.script | 31 +- utils/allmonoff | 3 + wall/configure_wall.script | 3 +- 14 files changed, 730 insertions(+), 697 deletions(-) diff --git a/evtbuild/eb.conf b/evtbuild/eb.conf index ed04817..d3d7e02 120000 --- a/evtbuild/eb.conf +++ b/evtbuild/eb.conf @@ -1 +1 @@ -eb.conf.mai14_noRFIO_noDABC \ No newline at end of file +eb.conf.mai14_withRFIO \ No newline at end of file diff --git a/evtbuild/start_eb_gbe.pl b/evtbuild/start_eb_gbe.pl index 232c0fb..0d45fe8 100755 --- a/evtbuild/start_eb_gbe.pl +++ b/evtbuild/start_eb_gbe.pl @@ -578,7 +578,7 @@ if( $EB_Args_href->{$ebproc}->{'RFIO'} ){ # JAM use fixed core number for kp1pc092 tests: # my $core_nr = 1; - my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports taskset -c $core_nr $cmd_dabc $conf_dabc &\""; + my $exe_dabc = "ssh -n $cpu -l $username \"$dabclogin $cdworkdir $exports taskset -c $core_nr $cmd_dabc $conf_dabc 1 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 0x1003 5 off # turn off port for 0x2124 due to FEE-error, MT, 2014-05-08 +# switchport.pl 0x1003 5 off #0x2124 # 2014-02-18 removed due to frequent busy -switchport.pl 0x1003 5 off +#switchport.pl 0x1003 5 off #0x2124 # 2012-04-30: 10:16:00 0x223b removed from system, reinit doesnt work # switchport.pl 0x1133 5 off # 2012-09-09: 0x2022 0x2233 removed as not working - switchport.pl 0x1134 5 off #0x2233 +# switchport.pl 0x1134 5 off #0x2233 # switchport.pl 0x1034 6 off #0x2022 # @@ -67,10 +70,11 @@ switchport.pl 0x1151 8 off #2257 #startup for MDC-tests time ./startup.pl -f main_hades.script -eb off -o file \ - -m TOF -m RPC -m NOWALL -m RICH -m NOSHOWER \ + -m TOF -m RPC -m WALL -m RICH -m NOSHOWER \ -m STARTCTS -m NORESET -m CONFIGONLY -m MON_CTS \ - -m NOMDC - # -m MDC -m MDCreg0current -m MDCnomasks -m MDCDATASET -m MDCindiv + -m MDC -m MDCreg0current -m MDCnomasks -m MDCDATASET -m MDCindiv +# -m NOMDC + ######################################## ### DO NOT CHANGE ANY MDC SETTINGS HERE - without changing them in reviveoep.pl as well!!!!!! @@ -83,6 +87,9 @@ switchport.pl 0x1151 8 off #2257 #All calib to EB1 trbcmd w 0x0003 0xa0f3 0xff1 +# turn off multi event queue, as these garble the data from the TRB2s +stoptrigger.sh; trbcmd w 0xff7f 0x8307 0 ; starttrigger.sh + #/home/hadaq/trbsoft/hadesdaq/utils/move_doublecpu_irq.sh &>/dev/null & /home/hadaq/trbsoft/hadesdaq/utils/move_doublecpu_irq.sh & @@ -96,7 +103,7 @@ scp /home/hadaq/oper/daq2ora/daq2ora_current.txt hades33:/home/hadaq/trbsoft/had #Start Monitoring echo " Restart Monitoring" - /home/hadaq/jan/crashlog.pl #Log timeouts after restart +# /home/hadaq/jan/crashlog.pl #Log timeouts after restart nohup ssh hades33 "cd /home/hadaq/trbsoft/hadesdaq/hmon; ./start.sh &" /dev/null & nohup /home/hadaq/trbsoft/hadesdaq/utils/mdc_calibration_masks.pl &>/dev/null & nohup ssh hades33 "sleep 20; killall -USR2 speakdaemon.pl" &>/dev/null & diff --git a/nettools/nettrace.db b/nettools/nettrace.db index b84b7d7..b97bbd5 100644 --- a/nettools/nettrace.db +++ b/nettools/nettrace.db @@ -1,735 +1,720 @@ %hublist = ( - '4356' => { - '8' => 8975, - '7' => 8974, - '3' => 8970, - '4' => 8971, - '5' => 8972, - '6' => 8973, - '1' => 8968, - '2' => 8969 - }, - '4096' => { - '1' => 4098, - '2' => 4099, - '0' => 4097, - '3' => 4100 - }, - '33808' => { - '2' => 33809 - }, - '4160' => { - '1' => 4162, - '2' => 4163, - '3' => 4164, - '0' => 4161 - }, - '4147' => { - '2' => 8224, - '4' => 8227, - '7' => 8230, - '3' => 8225, - '6' => 8229, - '5' => 8228, - '8' => 8231 - }, - '4164' => { - '4' => 8507, - '3' => 8506, - '7' => 8510, - '8' => 8511, - '2' => 8505, - '1' => 8504, - '6' => 8509, - '5' => 8508 - }, - '4129' => { - '4' => 8195, - '2' => 8193, - '1' => 8192, - '8' => 8199, - '5' => 8196, - '6' => 8197, - '3' => 8194 - }, '35072' => { - '3' => 14337, - '0' => 14336 + '0' => 14336, + '3' => 14337 }, - '4434' => { - '4' => 8795, - '7' => 8798, - '3' => 8794, - '8' => 8799, - '1' => 8792, - '2' => 8793, - '6' => 8797, - '5' => 8796 + '4388' => { + '2' => 8736, + '7' => 8743, + '8' => 8742, + '3' => 8747, + '6' => 8744, + '1' => 8737, + '5' => 8745, + '4' => 8746 }, - '4400' => { - '2' => 4403, - '1' => 4402, - '0' => 4401, - '3' => 4404 + '4432' => { + '3' => 4436, + '1' => 4434, + '0' => 4433, + '2' => 4435 }, - '4354' => { - '5' => 8717, - '6' => 8716, - '1' => 8712, - '2' => 8713, - '8' => 8719, - '7' => 8718, - '3' => 8714, - '4' => 8715 + '4097' => { + '8' => 8265, + '3' => 8257, + '7' => 8260, + '2' => 8259, + '4' => 8261, + '5' => 8256, + '1' => 8258, + '6' => 8263 }, - '4416' => { - '3' => 4420, - '0' => 4417, - '2' => 4419, - '1' => 4418 + '33824' => { + '2' => 33825 + }, + '34561' => { + '2' => 17424, + '4' => 34960, + '3' => 17440, + '1' => 17408 + }, + '4145' => { + '2' => 8208, + '7' => 8213, + '1' => 8212, + '5' => 8211, + '8' => 8214, + '4' => 8210, + '3' => 8209 }, '4180' => { - '4' => 8475, '8' => 8479, - '7' => 8478, '3' => 8474, - '1' => 8472, + '7' => 8478, '2' => 8473, '5' => 8476, + '4' => 8475, + '1' => 8472, '6' => 8477 }, - '32771' => { - '1' => 35072, - '2' => 35088 - }, - '4436' => { - '5' => 9052, - '6' => 9053, - '1' => 9048, - '2' => 9049, - '8' => 9055, - '7' => 9054, - '3' => 9050, - '4' => 9051 - }, - '4128' => { - '2' => 4131, - '1' => 4130, - '0' => 4129, - '3' => 4132 + '4161' => { + '8' => 8247, + '3' => 8242, + '7' => 8246, + '2' => 8241, + '4' => 8243, + '5' => 8244, + '1' => 8240, + '6' => 8245 }, - '4179' => { - '5' => 8532, - '6' => 8533, - '1' => 8528, - '2' => 8529, - '8' => 8471, - '7' => 8470, - '3' => 8530, - '4' => 8531 + '4387' => { + '5' => 8741, + '4' => 8751, + '1' => 8748, + '6' => 8740, + '3' => 8750, + '8' => 8738, + '7' => 8739, + '2' => 8749 }, - '4116' => { - '5' => 8460, - '6' => 8461, - '2' => 8457, - '1' => 8456, - '8' => 8463, - '3' => 8458, - '7' => 8462, - '4' => 8459 - }, - '32772' => { - '5' => 12864, - '3' => 12832, - '6' => 12880, - '4' => 12848, - '1' => 12800, - '2' => 12816 - }, '4418' => { - '6' => 9037, + '4' => 9035, '5' => 9036, '1' => 9032, - '2' => 9033, - '7' => 9038, + '6' => 9037, '3' => 9034, '8' => 9039, - '4' => 9035 - }, - '4371' => { - '2' => 8734, - '1' => 8735, - '6' => 8730, - '5' => 8731, - '4' => 8732, - '3' => 8733, - '7' => 8729, - '8' => 8728 - }, - '4131' => { - '5' => 8276, - '6' => 8277, - '1' => 8272, - '2' => 8273, - '8' => 8279, - '7' => 8278, - '3' => 8274, - '4' => 8275 - }, - '4162' => { - '1' => 8248, - '2' => 8249, - '4' => 8251, - '3' => 8250, - '6' => 8253, - '5' => 8252 + '7' => 9038, + '2' => 9033 }, - '4402' => { - '5' => 9011, - '6' => 9010, - '2' => 9014, - '1' => 9015, - '8' => 9008, - '3' => 9013, - '7' => 9009, - '4' => 9012 + '33793' => { + '6' => 18449, + '4' => 18435, + '5' => 18448, + '1' => 18434, + '7' => 18450, + '2' => 18432, + '3' => 18433, + '8' => 18451 + }, + '4160' => { + '2' => 4163, + '1' => 4162, + '0' => 4161, + '3' => 4164 }, - '34304' => { - '2' => 34305 + '33024' => { + '2' => 33025 }, '33568' => { '2' => 33569 }, - '33809' => { - '5' => 18464, - '6' => 18465, - '1' => 18482, - '2' => 18481, - '8' => 18467, - '7' => 18466, - '3' => 18480, - '4' => 18483 - }, - '4115' => { - '4' => 8467, - '8' => 8455, - '7' => 8454, - '3' => 8466, - '1' => 8464, - '2' => 8465, - '5' => 8468, - '6' => 8469 + '4129' => { + '2' => 8193, + '6' => 8197, + '1' => 8192, + '8' => 8199, + '4' => 8195, + '5' => 8196, + '3' => 8194 }, - '4099' => { - '4' => 8483, - '2' => 8481, - '1' => 8480, - '8' => 8487, - '6' => 8485, - '3' => 8482, - '7' => 8486 + '4130' => { + '7' => 8198, + '6' => 8205, + '2' => 8201, + '3' => 8202, + '5' => 8204, + '4' => 8203, + '1' => 8200 }, - '34816' => { - '2' => 34817 + '33569' => { + '1' => 12352, + '5' => 12356, + '4' => 12355, + '6' => 12368, + '10' => 12372, + '8' => 12370, + '3' => 12354, + '2' => 12353, + '9' => 12371, + '7' => 12369 }, - '4369' => { - '4' => 8988, - '8' => 8984, - '3' => 8989, - '7' => 8985, - '2' => 8990, - '1' => 8991, - '5' => 8987, - '6' => 8986 + '33040' => { + '2' => 33041 + }, + '4144' => { + '3' => 4148, + '1' => 4146, + '0' => 4145, + '2' => 4147 }, - '4385' => { - '4' => 9004, - '8' => 9000, - '3' => 9005, - '7' => 9001, - '2' => 9006, - '1' => 9007, - '5' => 9003, - '6' => 9002 + '4116' => { + '5' => 8460, + '4' => 8459, + '1' => 8456, + '6' => 8461, + '3' => 8458, + '8' => 8463, + '7' => 8462, + '2' => 8457 }, - '33792' => { - '2' => 33793 + '4163' => { + '3' => 8498, + '8' => 8503, + '2' => 8497, + '7' => 8502, + '1' => 8496, + '4' => 8499, + '5' => 8500, + '6' => 8501 + }, + '4352' => { + '2' => 4355, + '3' => 4356, + '0' => 4353, + '1' => 4354 + }, + '4436' => { + '3' => 9050, + '8' => 9055, + '2' => 9049, + '7' => 9054, + '1' => 9048, + '5' => 9052, + '4' => 9051, + '6' => 9053 + }, + '33809' => { + '3' => 18480, + '8' => 18467, + '7' => 18466, + '2' => 18481, + '5' => 18464, + '4' => 18483, + '1' => 18482, + '6' => 18465 }, '4403' => { + '7' => 8761, '2' => 8766, - '1' => 8767, + '8' => 8760, + '3' => 8765, '6' => 8762, '5' => 8763, '4' => 8764, - '3' => 8765, - '7' => 8761, - '8' => 8760 + '1' => 8767 + }, + '4147' => { + '7' => 8230, + '6' => 8229, + '2' => 8224, + '8' => 8231, + '4' => 8227, + '5' => 8228, + '3' => 8225 + }, + '33041' => { + '1' => 4352, + '5' => 4416, + '4' => 4400, + '3' => 4384, + '2' => 4368, + '6' => 4432 + }, + '4164' => { + '3' => 8506, + '8' => 8511, + '7' => 8510, + '2' => 8505, + '4' => 8507, + '5' => 8508, + '1' => 8504, + '6' => 8509 + }, + '4356' => { + '8' => 8975, + '3' => 8970, + '7' => 8974, + '2' => 8969, + '5' => 8972, + '4' => 8971, + '1' => 8968, + '6' => 8973 + }, + '33537' => { + '4' => 12291, + '5' => 12292, + '1' => 12288, + '10' => 12308, + '6' => 12304, + '8' => 12306, + '3' => 12290, + '9' => 12307, + '7' => 12305, + '2' => 12289 + }, + '35088' => { + '0' => 14352, + '1' => 14353 + }, + '4371' => { + '8' => 8728, + '3' => 8733, + '7' => 8729, + '2' => 8734, + '5' => 8731, + '4' => 8732, + '1' => 8735, + '6' => 8730 }, '4435' => { + '6' => 9045, + '5' => 9044, '4' => 9043, - '8' => 9047, - '7' => 9046, - '3' => 9042, '1' => 9040, + '7' => 9046, '2' => 9041, - '5' => 9044, - '6' => 9045 + '8' => 9047, + '3' => 9042 }, - '12832' => { - '0' => 12833, - '1' => 12834 + '32771' => { + '1' => 35072, + '3' => 34944, + '2' => 35088 }, - '33793' => { - '4' => 18435, - '8' => 18451, - '7' => 18450, - '3' => 18433, - '1' => 18434, - '2' => 18432, - '5' => 18448, - '6' => 18449 + '33025' => { + '1' => 4096, + '4' => 4144, + '5' => 4160, + '3' => 4128, + '2' => 4112, + '6' => 4176 }, - '32770' => { - '2' => 34816, - '1' => 34304, - '3' => 34560 + '4385' => { + '8' => 9000, + '3' => 9005, + '7' => 9001, + '2' => 9006, + '5' => 9003, + '4' => 9004, + '1' => 9007, + '6' => 9002 + }, + '33825' => { + '6' => 18497, + '5' => 18496, + '4' => 18515, + '1' => 18512, + '7' => 18498, + '2' => 18513, + '8' => 18499, + '3' => 18514 }, - '4145' => { - '7' => 8213, - '3' => 8209, - '5' => 8211, - '8' => 8214, - '1' => 8212, - '2' => 8208, - '4' => 8210 + '4115' => { + '7' => 8454, + '2' => 8465, + '3' => 8466, + '8' => 8455, + '6' => 8469, + '5' => 8468, + '4' => 8467, + '1' => 8464 }, - '4372' => { - '4' => 8724, - '3' => 8725, - '7' => 8721, - '8' => 8720, - '2' => 8726, - '1' => 8727, - '6' => 8722, - '5' => 8723 + '4401' => { + '5' => 9019, + '4' => 9020, + '1' => 9023, + '6' => 9018, + '3' => 9021, + '8' => 9016, + '7' => 9017, + '2' => 9022 }, - '4114' => { - '6' => 8541, - '5' => 8540, - '2' => 8537, - '1' => 8536, - '3' => 8538, - '7' => 8542, - '8' => 8543, - '4' => 8539 + '4419' => { + '5' => 8772, + '4' => 8771, + '1' => 8768, + '6' => 8773, + '8' => 8775, + '3' => 8770, + '7' => 8774, + '2' => 8769 }, - '4432' => { - '0' => 4433, - '3' => 4436, - '2' => 4435, - '1' => 4434 + '4132' => { + '6' => 8285, + '2' => 8281, + '3' => 8282, + '5' => 8284, + '4' => 8283, + '1' => 8280 }, + '4402' => { + '8' => 9008, + '3' => 9013, + '2' => 9014, + '7' => 9009, + '1' => 9015, + '5' => 9011, + '4' => 9012, + '6' => 9010 + }, + '34560' => { + '2' => 34561 + }, '4370' => { - '6' => 8978, - '5' => 8979, - '2' => 8982, - '1' => 8983, + '8' => 8976, '3' => 8980, + '2' => 8982, '7' => 8977, - '8' => 8976, - '4' => 8981 + '1' => 8983, + '5' => 8979, + '4' => 8981, + '6' => 8978 }, - '4161' => { - '1' => 8240, - '2' => 8241, - '6' => 8245, - '5' => 8244, - '4' => 8243, - '7' => 8246, - '3' => 8242, - '8' => 8247 + '4417' => { + '4' => 9027, + '5' => 9028, + '1' => 9024, + '6' => 9029, + '3' => 9026, + '8' => 9031, + '7' => 9030, + '2' => 9025 }, - '4097' => { - '2' => 8259, - '1' => 8258, - '5' => 8256, - '6' => 8263, - '4' => 8261, - '8' => 8265, - '3' => 8257, - '7' => 8260 + '4146' => { + '7' => 8221, + '6' => 8220, + '2' => 8216, + '3' => 8217, + '5' => 8219, + '4' => 8218, + '1' => 8215 }, - '4352' => { - '0' => 4353, - '3' => 4356, - '1' => 4354, - '2' => 4355 + '33808' => { + '2' => 33809 + }, + '4131' => { + '2' => 8273, + '7' => 8278, + '8' => 8279, + '3' => 8274, + '6' => 8277, + '1' => 8272, + '4' => 8275, + '5' => 8276 }, - '4401' => { - '8' => 9016, - '7' => 9017, - '3' => 9021, - '4' => 9020, - '5' => 9019, - '6' => 9018, - '1' => 9023, - '2' => 9022 + '4176' => { + '3' => 4180, + '0' => 4177, + '1' => 4178, + '2' => 4179 }, - '32768' => { - '4' => 3, - '1' => 32770, - '2' => 32771, - '0' => 32769, - '7' => 33040, - '3' => 32772, - '6' => 33024 - }, - '33040' => { - '2' => 33041 - }, - '35088' => { - '0' => 14352, - '1' => 14353 - }, - '12848' => { - '0' => 12849, - '1' => 12850 + '33792' => { + '2' => 33793 }, - '33569' => { - '4' => 12355, - '8' => 12370, - '3' => 12354, - '7' => 12369, - '10' => 12372, - '2' => 12353, - '1' => 12352, - '9' => 12371, - '5' => 12356, - '6' => 12368 + '33553' => { + '8' => 12338, + '3' => 12322, + '9' => 12339, + '7' => 12337, + '2' => 12321, + '4' => 12323, + '5' => 12324, + '1' => 12320, + '10' => 12340, + '6' => 12336 }, - '4163' => { - '5' => 8500, - '6' => 8501, - '2' => 8497, - '1' => 8496, - '8' => 8503, - '3' => 8498, - '7' => 8502, - '4' => 8499 + '4400' => { + '3' => 4404, + '0' => 4401, + '1' => 4402, + '2' => 4403 }, - '33025' => { - '6' => 4176, - '3' => 4128, - '5' => 4160, - '1' => 4096, - '2' => 4112, - '4' => 4144 - }, - '4130' => { - '2' => 8201, - '1' => 8200, - '4' => 8203, - '3' => 8202, - '6' => 8205, - '7' => 8198, - '5' => 8204 + '4098' => { + '5' => 8267, + '4' => 8268, + '3' => 8269, + '1' => 8264, + '2' => 8262, + '6' => 8266 }, - '33537' => { - '8' => 12306, - '7' => 12305, - '3' => 12290, - '4' => 12291, - '9' => 12307, - '5' => 12292, - '6' => 12304, - '10' => 12308, - '1' => 12288, - '2' => 12289 - }, - '4132' => { - '4' => 8283, - '1' => 8280, - '2' => 8281, - '5' => 8284, - '3' => 8282, - '6' => 8285 + '4416' => { + '1' => 4418, + '0' => 4417, + '3' => 4420, + '2' => 4419 }, - '33024' => { - '2' => 33025 - }, - '33825' => { - '3' => 18514, - '7' => 18498, - '8' => 18499, - '4' => 18515, - '6' => 18497, - '5' => 18496, - '2' => 18513, - '1' => 18512 - }, - '4420' => { - '4' => 8779, - '8' => 8783, - '3' => 8778, - '7' => 8782, - '2' => 8777, - '1' => 8776, - '5' => 8780, - '6' => 8781 + '4114' => { + '6' => 8541, + '1' => 8536, + '4' => 8539, + '5' => 8540, + '2' => 8537, + '7' => 8542, + '8' => 8543, + '3' => 8538 }, - '62213' => { - '3' => 62213 - }, - '12864' => { - '1' => 12866, - '0' => 12865 + '32770' => { + '2' => 34816, + '3' => 34560, + '1' => 34304 }, - '33824' => { - '2' => 33825 + '34305' => { + '2' => 19472, + '6' => 19536, + '7' => 19505, + '1' => 19456, + '3' => 19488, + '5' => 19520, + '4' => 19504 }, - '12816' => { - '0' => 12817, - '1' => 12818 + '4148' => { + '4' => 8235, + '5' => 8236, + '3' => 8234, + '1' => 8233, + '7' => 8237, + '2' => 8232, + '6' => 8226 + }, + '4178' => { + '4' => 8523, + '5' => 8524, + '1' => 8520, + '6' => 8525, + '8' => 8527, + '3' => 8522, + '7' => 8526, + '2' => 8521 + }, + '4354' => { + '6' => 8716, + '1' => 8712, + '4' => 8715, + '5' => 8717, + '2' => 8713, + '7' => 8718, + '8' => 8719, + '3' => 8714 + }, + '33552' => { + '2' => 33553 }, - '4177' => { - '2' => 8513, - '1' => 8512, - '5' => 8516, - '6' => 8517, - '4' => 8515, - '8' => 8519, - '3' => 8514, - '7' => 8518 + '4404' => { + '8' => 8753, + '4' => 8756, + '3' => 8757, + '1' => 8759, + '7' => 8752, + '6' => 8754, + '2' => 8758 + }, + '4113' => { + '7' => 8534, + '2' => 8449, + '8' => 8535, + '3' => 8450, + '6' => 8453, + '4' => 8451, + '5' => 8452, + '1' => 8448 + }, + '4162' => { + '1' => 8248, + '4' => 8251, + '5' => 8252, + '3' => 8250, + '2' => 8249, + '6' => 8253 }, - '34560' => { - '2' => 34561 + '34944' => { + '3' => 20483, + '0' => 20480, + '2' => 20482 + }, + '34304' => { + '2' => 34305 + }, + '34960' => { + '2' => 20498, + '0' => 20496, + '3' => 20499 }, + '4355' => { + '6' => 8965, + '4' => 8963, + '5' => 8964, + '1' => 8960, + '7' => 8966, + '2' => 8961, + '3' => 8962, + '8' => 8967 + }, '4100' => { - '5' => 8492, - '6' => 8493, - '1' => 8488, + '7' => 8494, '2' => 8489, '8' => 8495, - '7' => 8494, '3' => 8490, - '4' => 8491 - }, - '4178' => { - '4' => 8523, - '7' => 8526, - '3' => 8522, - '8' => 8527, - '1' => 8520, - '2' => 8521, - '6' => 8525, - '5' => 8524 - }, - '4098' => { - '6' => 8266, - '3' => 8269, - '5' => 8267, - '2' => 8262, - '1' => 8264, - '4' => 8268 - }, - '4419' => { - '7' => 8774, - '3' => 8770, - '8' => 8775, - '4' => 8771, - '6' => 8773, - '5' => 8772, - '1' => 8768, - '2' => 8769 - }, - '4388' => { - '7' => 8743, - '3' => 8747, - '8' => 8742, - '4' => 8746, - '6' => 8744, - '5' => 8745, - '1' => 8737, - '2' => 8736 + '6' => 8493, + '5' => 8492, + '4' => 8491, + '1' => 8488 }, - '34305' => { - '4' => 19504, - '2' => 19472, - '1' => 19456, - '5' => 19520, - '6' => 19536, - '3' => 19488, - '7' => 19505 + '34817' => { + '3' => 16385, + '1' => 2, + '2' => 16384 }, - '4112' => { - '1' => 4114, - '2' => 4115, - '3' => 4116, - '0' => 4113 + '4128' => { + '1' => 4130, + '0' => 4129, + '3' => 4132, + '2' => 4131 }, - '34960' => { - '2' => 20498, - '1' => 20497, - '3' => 20499, - '0' => 20496 - }, '32769' => { - '1' => 33808, '2' => 33792, - '4' => 33568, '6' => 33536, - '3' => 33824 + '3' => 33824, + '4' => 33568, + '5' => 33552, + '1' => 33808 }, - '4113' => { - '4' => 8451, - '7' => 8534, - '3' => 8450, - '8' => 8535, - '1' => 8448, - '2' => 8449, - '6' => 8453, - '5' => 8452 - }, - '4176' => { - '0' => 4177, - '3' => 4180, - '1' => 4178, - '2' => 4179 + '34816' => { + '2' => 34817 + }, + '4099' => { + '3' => 8482, + '8' => 8487, + '7' => 8486, + '2' => 8481, + '4' => 8483, + '5' => 8484, + '1' => 8480, + '6' => 8485 }, - '4384' => { - '0' => 4385, - '3' => 4388, - '2' => 4387, - '1' => 4386 + '4420' => { + '3' => 8778, + '8' => 8783, + '7' => 8782, + '2' => 8777, + '5' => 8780, + '4' => 8779, + '1' => 8776, + '6' => 8781 }, + '33536' => { + '2' => 33537 + }, + '32768' => { + '4' => 3, + '0' => 32769, + '1' => 32770, + '7' => 33040, + '2' => 32771, + '6' => 33024 + }, '4353' => { - '4' => 8707, - '8' => 8711, - '3' => 8706, - '7' => 8710, - '2' => 8705, + '6' => 8709, '1' => 8704, + '4' => 8707, '5' => 8708, - '6' => 8709 + '2' => 8705, + '7' => 8710, + '3' => 8706, + '8' => 8711 }, - '4404' => { - '6' => 8754, - '3' => 8757, - '7' => 8752, - '8' => 8753, - '2' => 8758, - '1' => 8759, - '4' => 8756 + '4384' => { + '3' => 4388, + '1' => 4386, + '0' => 4385, + '2' => 4387 }, - '4148' => { - '1' => 8233, - '2' => 8232, - '4' => 8235, - '7' => 8237, - '6' => 8226, - '3' => 8234, - '5' => 8236 + '4112' => { + '2' => 4115, + '1' => 4114, + '0' => 4113, + '3' => 4116 + }, + '4369' => { + '6' => 8986, + '1' => 8991, + '5' => 8987, + '4' => 8988, + '2' => 8990, + '7' => 8985, + '8' => 8984, + '3' => 8989 + }, + '4434' => { + '1' => 8792, + '5' => 8796, + '4' => 8795, + '6' => 8797, + '3' => 8794, + '8' => 8799, + '2' => 8793, + '7' => 8798 }, '4386' => { - '8' => 8992, - '3' => 8997, - '7' => 8993, + '6' => 8994, '4' => 8996, '5' => 8995, - '6' => 8994, + '1' => 8999, + '7' => 8993, '2' => 8998, - '1' => 8999 + '3' => 8997, + '8' => 8992 }, - '4433' => { - '6' => 8789, - '5' => 8788, - '1' => 8784, - '2' => 8785, - '7' => 8790, - '3' => 8786, - '8' => 8791, - '4' => 8787 + '4096' => { + '2' => 4099, + '3' => 4100, + '0' => 4097, + '1' => 4098 }, '4368' => { - '2' => 4371, '1' => 4370, + '0' => 4369, '3' => 4372, - '0' => 4369 - }, - '12880' => { - '0' => 12881, - '1' => 12882 - }, - '34561' => { - '3' => 17440, - '1' => 17408, - '2' => 17424, - '4' => 34960 - }, - '4355' => { - '5' => 8964, - '6' => 8965, - '2' => 8961, - '1' => 8960, - '8' => 8967, - '3' => 8962, - '7' => 8966, - '4' => 8963 + '2' => 4371 }, - '33041' => { - '2' => 4368, - '1' => 4352, - '4' => 4400, - '3' => 4384, - '6' => 4432, - '5' => 4416 - }, - '34817' => { - '3' => 16385, - '1' => 2, - '2' => 16384 - }, - '4417' => { - '8' => 9031, - '3' => 9026, - '7' => 9030, - '4' => 9027, - '5' => 9028, - '6' => 9029, - '2' => 9025, - '1' => 9024 + '4433' => { + '7' => 8790, + '6' => 8789, + '2' => 8785, + '4' => 8787, + '5' => 8788, + '3' => 8786, + '1' => 8784 }, - '4387' => { - '6' => 8740, - '5' => 8741, - '2' => 8749, - '1' => 8748, - '3' => 8750, - '7' => 8739, - '8' => 8738, - '4' => 8751 + '4372' => { + '6' => 8722, + '4' => 8724, + '5' => 8723, + '1' => 8727, + '7' => 8721, + '2' => 8726, + '3' => 8725, + '8' => 8720 }, - '12800' => { - '0' => 12801, - '1' => 12802 - }, - '33536' => { - '2' => 33537 - }, - '4146' => { - '7' => 8221, - '3' => 8217, - '6' => 8220, - '5' => 8219, - '1' => 8215, - '2' => 8216, - '4' => 8218 + '4177' => { + '6' => 8517, + '4' => 8515, + '5' => 8516, + '1' => 8512, + '7' => 8518, + '2' => 8513, + '8' => 8519, + '3' => 8514 }, - '4144' => { - '2' => 4147, - '1' => 4146, - '3' => 4148, - '0' => 4145 + '4179' => { + '7' => 8470, + '2' => 8529, + '8' => 8471, + '3' => 8530, + '6' => 8533, + '4' => 8531, + '5' => 8532, + '1' => 8528 } ); diff --git a/pion/config/nxyter.sh b/pion/config/nxyter.sh index 734b830..2d832bd 100755 --- a/pion/config/nxyter.sh +++ b/pion/config/nxyter.sh @@ -32,4 +32,15 @@ trbcmd w 0x8910 0xc0 0xfff3 trbcmd w 0x8910 0xc1 0xfff3 trbcmd w 0x8910 0xc3 0xfff3 +#Trigger forwarding setting +trbcmd setbit 0x8900 0xcf00 0x8000 #3801 only +trbcmd clearbit 0x8900 0xcf00 0x0008 #3800 disabled + +trbcmd setbit 0x8910 0xcf00 0x0008 #3810 +trbcmd clearbit 0x8910 0xcf00 0x0080 #3811 disabled + cd .. + +# enable TT mode (calibration) +#../nxscripts/mode_t.sh + diff --git a/pion/config/nxyter/trb3_setup.sh b/pion/config/nxyter/trb3_setup.sh index b791faf..5a34315 100755 --- a/pion/config/nxyter/trb3_setup.sh +++ b/pion/config/nxyter/trb3_setup.sh @@ -13,7 +13,6 @@ case $1 in esac - # i2c_sm_reset trbcmd w $board 0x8100 0x01 # i2c_reg_reset_start @@ -28,25 +27,24 @@ echo "Using nxsetup_$board.dat" # nx_ts_reset_start trbcmd w $board 0x8102 0x01 -# reset counters, flush FIFO -echo "clear data fifo" -trbcmd rm $board 0x8600 4000 2>/dev/null +# -- DEPRECATED -- reset counters, flush FIFO, +#echo "clear data fifo" +#trbcmd rm $board 0x8600 4000 2>/dev/null # Set readout Mode -trbcmd w $board 0x8400 0x00 # 0: normal mode 4: no TS Window mode +trbcmd w $board 0x8400 0x80000000 # 0: normal mode 4: no TS Window mode trbcmd w $board 0x8401 0 # window offset 200ns #trbcmd w $board 0x8402 250 # window width 800ns trbcmd w $board 0x8402 100 # window width 1600ns -trbcmd w $board 0x8403 100 # CTS-Delay 400ns - -trbcmd w $board 0x8140 100 # test pulse length 400 ns +#trbcmd w $board 0x8403 100 # CTS-Delay 400ns -# TS sync +#trbcmd w $board 0x8140 100 # test pulse length 400 ns +# TS Sync #if [[ ${board} -eq 0x3801 ]]; then # trbcmd w $board 0x850d 7; # ts delay #else - trbcmd w $board 0x850d 8; # ts delay + trbcmd w $board 0x850d 11; # ts delay #fi # CVT @@ -62,3 +60,16 @@ trbcmd w $board 0x8103 0 # sleep 1; # trbcmd w $board 0x8501 1 +# turn of averaging +trbcmd w $board 0x8b80 0 + +trbcmd setbit $board 0x8419 0x80000000 + +# CTS delays +trbcmd w 0x3800 0x8403 0x00d2 +trbcmd w 0x3801 0x8403 0x00d2 +trbcmd w 0x3810 0x8403 0x00af +trbcmd w 0x3811 0x8403 0x00af + +# TS Cut Level2 140 220 [ns] +trbcmd w $board 0x841f 0x008c00dc diff --git a/start/ThreshPadiwaVeto.db b/start/ThreshPadiwaVeto.db index beea0a1..a280c3d 100644 --- a/start/ThreshPadiwaVeto.db +++ b/start/ThreshPadiwaVeto.db @@ -72,4 +72,22 @@ 5013 2 1 0 13 8 0xffff 5013 2 1 0 15 8 0xffff - +#External trigger + 5012 1 1 0 0 8 0xffff + 5012 1 1 0 2 8 0xffff + 5012 1 1 0 4 8 0xffff + 5012 1 1 0 6 8 0x0898 #ext. Trigger + 5012 1 1 0 8 8 0xffff + 5012 1 1 0 10 8 0x0627 #Pulser + 5012 1 1 0 12 8 0xffff + 5012 1 1 0 14 8 0x0706 #Pulser + + + 5012 1 1 0 1 8 0xffff + 5012 1 1 0 3 8 0xffff + 5012 1 1 0 5 8 0xffff + 5012 1 1 0 7 8 0xffff + 5012 1 1 0 9 8 0xffff + 5012 1 1 0 11 8 0xffff + 5012 1 1 0 13 8 0xffff + 5012 1 1 0 15 8 0xffff diff --git a/start/startup.script b/start/startup.script index 8db3300..f5abd78 100644 --- a/start/startup.script +++ b/start/startup.script @@ -10,13 +10,13 @@ #TRB3 settings -#Triggered mode -trbcmd clearbit 0xfe48 0xc800 0x00001000 -trbcmd clearbit 0xfe4e 0xc800 0x00001000 +#Triggerless mode, calib downscaling +trbcmd setbit 0xfe48 0xc800 0x40003000 +trbcmd setbit 0xfe4e 0xc800 0x40003000 -#2us trigger window -trbcmd w 0xfe48 0xc801 0x800f0190 -trbcmd w 0xfe4e 0xc801 0x800f0190 +# -2us +200ns trigger window +trbcmd w 0xfe48 0xc801 0x80280190 +trbcmd w 0xfe4e 0xc801 0x80280190 #Data limit off trbcmd w 0xfe48 0xc804 0x00000080 @@ -29,7 +29,7 @@ trbcmd w 0xfe4e 0xc804 0x00000080 trbcmd w 0x5010 0xc803 0x00000000 # disable channel 32-63 trbcmd w 0x5011 0xc802 0x00000000 # disable channel 0-31 trbcmd w 0x5011 0xc803 0x00000000 # disable channel 32-63 - trbcmd w 0x5012 0xc802 0x00000000 # disable channel 0-31 + trbcmd w 0x5012 0xc802 0x000000c0 # disable channel 0-31 trbcmd w 0x5012 0xc803 0x00000000 # disable channel 32-63 trbcmd w 0x5013 0xc802 0xffffffff # disable channel 0-31 trbcmd w 0x5013 0xc803 0x00000000 # disable channel 32-63 @@ -45,16 +45,15 @@ trbcmd w 0xfe4e 0xc804 0x00000080 trbcmd w 0x5003 0xc803 0x00000000 # disable channel 32-63 -# trbcmd w 0x5000 0xc802 0x00000000 # disable channel 32-63 -# trbcmd w 0x5002 0xc802 0x00000000 # disable channel 32-63 -# trbcmd w 0x5003 0xc802 0x00000000 # disable channel 32-63 + trbcmd w 0x5000 0xc802 0x00000000 # disable channel 32-63 + trbcmd w 0x5002 0xc802 0x00000000 # disable channel 32-63 + trbcmd w 0x5003 0xc802 0x00000000 # disable channel 32-63 #Trigger Generator Settings -#Replace with proper values -trbcmd w 0x5000 0xcf00 0xffff +trbcmd w 0x5000 0xcf00 0xfeee trbcmd w 0x5001 0xcf00 0x0000 trbcmd w 0x5002 0xcf00 0xfeee trbcmd w 0x5003 0xcf00 0xfc1e @@ -77,7 +76,7 @@ trbcmd w 0x5002 0xcf80 0xfeee trbcmd w 0x5003 0xcf80 0xf81e trbcmd w 0x5010 0xcf80 0xffff trbcmd w 0x5011 0xcf80 0x0000 -trbcmd w 0x5012 0xcf80 0x0000 +trbcmd w 0x5012 0xcf80 0x0008 trbcmd w 0x5013 0xcf80 0xffff @@ -85,9 +84,9 @@ trbcmd clearbit 0x8880 0xc0 0x2 trbcmd clearbit 0x8880 0xc1 0x2 trbcmd clearbit 0x8880 0xc3 0x2 -trbcmd clearbit 0x8890 0xc0 0x6 -trbcmd clearbit 0x8890 0xc1 0x6 -trbcmd clearbit 0x8890 0xc3 0x6 +trbcmd clearbit 0x8890 0xc0 0x2 +trbcmd clearbit 0x8890 0xc1 0x2 +trbcmd clearbit 0x8890 0xc3 0x2 exec_cmd{local} /home/hadaq/trbsoft/daqtools/tools/dac_program.pl ../start/ThreshPadiwaVeto.db diff --git a/utils/allmonoff b/utils/allmonoff index acd8da2..59d580f 100755 --- a/utils/allmonoff +++ b/utils/allmonoff @@ -1,10 +1,13 @@ #!/bin/bash +ssh hades33 xset -display :0 dpms force off ssh hades30 xset -display :0 dpms force off ssh hades17 xset -display :0 dpms force off ssh hades25 xset -display :0 dpms force off ssh hades27 xset -display :0 dpms force off ssh hadeb04 xset -display :0 dpms force off ssh hadespcp001 xset -display :0 dpms force off +ssh hadespcp004 xset -display :0 dpms force off +ssh hadesdaq xset -display :0 dpms force off ssh hadaq@hades33 xset -display :0 dpms force off ssh hadesdaq01 xset -display :0 dpms force off ssh hadesdaq02 xset -display :0 dpms force off diff --git a/wall/configure_wall.script b/wall/configure_wall.script index 219db29..81ede23 100644 --- a/wall/configure_wall.script +++ b/wall/configure_wall.script @@ -1,2 +1 @@ - exec_cmd spi_trbv2 /home/hadaq/fwall/thresholds_trb${TRBNUM} ; cd /home/hadaq/scripts/; ./trbv2_TDCs_configure.sh ${TRBNUM};rw_portB w 0;rw_trbv2 --trb w 0 c2 00400000; rw_trbv2 --trb w 0 c0 04000000; rw_trbv2 --trb w 0 c3 00000100 - +exec_cmd spi_trbv2 /home/hadaq/fwall/thresholds_trb${TRBNUM} ; cd /home/hadaq/scripts/; ./trbv2_TDCs_configure.sh ${TRBNUM} ;rw_portB w 0;rw_trbv2 --trb w 0 c2 00400000; rw_trbv2 --trb w 0 c0 04000000; rw_trbv2 --trb w 0 c3 00000100 -- 2.43.0