From b8eb23e567db239339e4b5ac1a75d1e119ea2fa4 Mon Sep 17 00:00:00 2001 From: hadaq Date: Tue, 20 Nov 2001 18:38:24 +0000 Subject: [PATCH] working scripts, mt --- hadaq/all_parallel.tcl | 63 +++++++++++-------- ...trig_all_rich_all_tof_all_shw_parallel.tcl | 56 +++++++++++++++++ hadaq/trig_all_rich_all_tof_parallel.tcl | 20 +++--- hadaq/trig_all_tof_mdc_shw_parallel.tcl | 50 +++++++++++++++ hadaq/trig_all_tof_shw_parallel.tcl | 16 ++--- 5 files changed, 160 insertions(+), 45 deletions(-) create mode 100644 hadaq/trig_all_rich_all_tof_all_shw_parallel.tcl create mode 100644 hadaq/trig_all_tof_mdc_shw_parallel.tcl diff --git a/hadaq/all_parallel.tcl b/hadaq/all_parallel.tcl index 19de774..1eb0173 100644 --- a/hadaq/all_parallel.tcl +++ b/hadaq/all_parallel.tcl @@ -1,30 +1,37 @@ -agent create hadeb01 hades /home/hades/mar01/eb/hadaq -agent create r2-28 hades /hades/usr/hades/mar01/rich/hadaq -agent create r2-27 hades /hades/usr/hades/mar01/rich/hadaq -agent create r2-24 hades /hades/usr/hades/mar01/rich/hadaq -agent create r2-29 hades /hades/usr/hades/mar01/trig/hadaq -agent create r2-14 hades /hades/usr/hades/mar01/shw/hadaq -agent create r2-8 hades /hades/usr/hades/mar01/mdc/hadaq +agent create hadeb01 hades /home/hades/nov01/eb/hadaq +agent create r2-28 hades /hades/usr/hades/nov01/rich/hadaq +agent create r2-27 hades /hades/usr/hades/nov01/rich/hadaq +agent create r2-24 hades /hades/usr/hades/nov01/rich/hadaq +agent create r2-29 hades /hades/usr/hades/nov01/trig/hadaq +agent create r2-14 hades /hades/usr/hades/nov01/shw/hadaq +agent create r2-8 hades /hades/usr/hades/nov01/mdc/hadaq +agent create r2-7 hades /hades/usr/hades/nov01/mdc/hadaq # maximum bandwidth: 155Mbit -worker create hadeb01:evtbuild -a -p -2 -m 6 -worker create hadeb01:netmem -a -p -1 -m 6 -i ATM:0:50 -i ATM:0:51 -i ATM:0:52 -i ATM:0:53 -i ATM:0:54 -i ATM:0:55 +worker create hadeb01:evtbuild -a -p -2 -m 7 +worker create hadeb01:netmem -a -p -1 -m 7 -i ATM:0:50 -i ATM:0:51 -i ATM:0:52 -i ATM:0:53 -i ATM:0:54 -i ATM:0:55 -i ATM:0:56 # -w 10000 in memnet means: 1000kbytes/s +#RICH worker create r2-27:memnet -a -p -2 -w 15000 -o ATM:0:50 # -w 0 in readout means: every event is sent via ATM -worker create r2-27:readout -a -p -1 -w 32768 +worker create r2-27:readout -a -p -1 -w 8192 # priority for rich has changed! readout has higer priority now worker create r2-28:memnet -a -p -2 -w 15000 -o ATM:0:51 -worker create r2-28:readout -a -p -1 -w 32768 -worker create r2-29:memnet -a -p -1 -w 20000 -o ATM:0:52 -worker create r2-29:readout -a -p -2 -w 32768 -worker create r2-24:memnet -a -p -2 -w 20000 -o ATM:0:53 -worker create r2-24:readout -a -p -1 -w 32768 +worker create r2-28:readout -a -p -1 -w 8192 +worker create r2-24:memnet -a -p -2 -w 15000 -o ATM:0:52 +worker create r2-24:readout -a -p -1 -w 8192 +#TRIG +worker create r2-29:memnet -a -p -1 -w 20000 -o ATM:0:53 +worker create r2-29:readout -a -p -2 -w 8192 +#SHW worker create r2-14:memnet -a -p -1 -w 20000 -o ATM:0:54 -worker create r2-14:readout -a -p -2 -w 32768 -worker create r2-8:memnet -a -p -1 -w 65000 -o ATM:0:55 -worker create r2-8:readout -a -p -2 -w 32768 +worker create r2-14:readout -a -p -2 -w 8192 +#MDC +worker create r2-8:memnet -a -p -1 -w 35000 -o ATM:0:55 +worker create r2-8:readout8 -a -p -2 -w 8192 +worker create r2-7:memnet -a -p -1 -w 35000 -o ATM:0:56 +worker create r2-7:readout7 -a -p -2 -w 8192 group create acquisition group create run group add acquisition r2-27:memnet @@ -38,28 +45,30 @@ group add acquisition r2-29:readout group add acquisition r2-14:memnet group add acquisition r2-14:readout group add acquisition r2-8:memnet -group add acquisition r2-8:readout +group add acquisition r2-8:readout8 +group add acquisition r2-7:memnet +group add acquisition r2-7:readout7 group add run hadeb01:evtbuild group add run hadeb01:netmem set duringInit { - {run_parallel e7_25:tof1:init e7_21:tof2:init e7_41:tof3:init r2-28:rich1:init r2-27:rich2:init r2-29:trigconc:init r2-24:rich0:init r2-14:shw:init r2-8:mdc:init >>&hadaq.log} + {run_parallel e7_25:tof1:init e7_21:tof2:init e7_41:tof3:init r2-28:rich1:init r2-27:rich2:init r2-29:trigconc:init r2-24:rich0:init r2-14:shw:init r2-8:mdc0:init r2-7:mdc1:init >>&hadaq.log} } set beforeStartAcq { - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc reset'} >&hadaq.log} - {run_parallel e7_25:tof1:reset e7_21:tof2:reset e7_41:tof3:reset r2-28:rich1:reset r2-27:rich2:reset r2-24:rich0:reset r2-14:shw:reset r2-8:mdc:reset >>&hadaq.log} - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc reset'} >&hadaq.log} - {run_parallel e7_25:tof1:start e7_21:tof2:start e7_41:tof3:start r2-28:rich1:start r2-27:rich2:start r2-24:rich0:start r2-14:shw:start r2-8:mdc:start >>&hadaq.log} - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc start'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} + {run_parallel e7_25:tof1:reset e7_21:tof2:reset e7_41:tof3:reset r2-28:rich1:reset r2-27:rich2:reset r2-24:rich0:reset r2-14:shw:reset r2-8:mdc0:reset r2-7:mdc1:reset >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} + {run_parallel e7_25:tof1:start e7_21:tof2:start e7_41:tof3:start r2-28:rich1:start r2-27:rich2:start r2-24:rich0:start r2-14:shw:start r2-8:mdc0:start r2-7:mdc1:start >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc start'} >&hadaq.log} } set afterStartAcq { - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustart'} >&hadaq.log} } set beforeStopAcq { - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctureset'} >&hadaq.log} } set afterStopAcq { diff --git a/hadaq/trig_all_rich_all_tof_all_shw_parallel.tcl b/hadaq/trig_all_rich_all_tof_all_shw_parallel.tcl new file mode 100644 index 0000000..828eb14 --- /dev/null +++ b/hadaq/trig_all_rich_all_tof_all_shw_parallel.tcl @@ -0,0 +1,56 @@ +agent create hadeb01 hades /home/hades/nov01/eb/hadaq +agent create r2-28 hades /hades/usr/hades/nov01/rich/hadaq +agent create r2-27 hades /hades/usr/hades/nov01/rich/hadaq +agent create r2-24 hades /hades/usr/hades/nov01/rich/hadaq +agent create r2-29 hades /hades/usr/hades/nov01/trig/hadaq +agent create r2-14 hades /hades/usr/hades/nov01/shw/hadaq +worker create hadeb01:evtbuild -a -p -2 -m 5 +worker create hadeb01:netmem -a -p -1 -m 5 -i ATM:0:50 -i ATM:0:51 -i ATM:0:52 -i ATM:0:53 -i ATM:0:54 +worker create r2-27:memnet -a -p -1 -w 20000 -o ATM:0:50 +worker create r2-27:readout -a -p -2 -w 32768 +worker create r2-28:memnet -a -p -1 -w 20000 -o ATM:0:51 +worker create r2-28:readout -a -p -2 -w 32768 +worker create r2-29:memnet -a -p -2 -w 10000 -o ATM:0:52 +worker create r2-29:readout -a -p -1 -w 32768 +worker create r2-24:memnet -a -p -1 -w 20000 -o ATM:0:53 +worker create r2-24:readout -a -p -2 -w 32768 +worker create r2-14:memnet -a -p -1 -w 20000 -o ATM:0:54 +worker create r2-14:readout -a -p -2 -w 32768 +group create acquisition +group create run +group add acquisition r2-27:memnet +group add acquisition r2-27:readout +group add acquisition r2-28:memnet +group add acquisition r2-28:readout +group add acquisition r2-24:memnet +group add acquisition r2-24:readout +group add acquisition r2-29:memnet +group add acquisition r2-29:readout +group add acquisition r2-14:memnet +group add acquisition r2-14:readout +group add run hadeb01:evtbuild +group add run hadeb01:netmem + +set duringInit { + {run_parallel e7_25:tof1:init e7_21:tof2:init e7_41:tof3:init r2-28:rich1:init r2-27:rich2:init r2-29:trigconc:init r2-24:rich0:init r2-14:shw:init >>&hadaq.log} +} + +set beforeStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} + {run_parallel e7_25:tof1:reset e7_21:tof2:reset e7_41:tof3:reset r2-28:rich1:reset r2-27:rich2:reset r2-24:rich0:reset r2-14:shw:reset >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} + {run_parallel e7_25:tof1:start e7_21:tof2:start e7_41:tof3:start r2-28:rich1:start r2-27:rich2:start r2-29:trigconc:start r2-24:rich0:start r2-14:shw:start >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc start'} >&hadaq.log} +} + +set afterStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + +} + +set afterStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctureset'} >&hadaq.log} +} diff --git a/hadaq/trig_all_rich_all_tof_parallel.tcl b/hadaq/trig_all_rich_all_tof_parallel.tcl index b038ec6..e9ffc45 100644 --- a/hadaq/trig_all_rich_all_tof_parallel.tcl +++ b/hadaq/trig_all_rich_all_tof_parallel.tcl @@ -1,8 +1,8 @@ -agent create hadeb01 hades /home/hades/mar01/eb/hadaq -agent create r2-28 hades /hades/usr/hades/mar01/rich/hadaq -agent create r2-27 hades /hades/usr/hades/mar01/rich/hadaq -agent create r2-24 hades /hades/usr/hades/mar01/rich/hadaq -agent create r2-29 hades /hades/usr/hades/mar01/trig/hadaq +agent create hadeb01 hades /home/hades/nov01/eb/hadaq +agent create r2-28 hades /hades/usr/hades/nov01/rich/hadaq +agent create r2-27 hades /hades/usr/hades/nov01/rich/hadaq +agent create r2-24 hades /hades/usr/hades/nov01/rich/hadaq +agent create r2-29 hades /hades/usr/hades/nov01/trig/hadaq worker create hadeb01:evtbuild -a -p -2 -m 4 worker create hadeb01:netmem -a -p -1 -m 4 -i ATM:0:50 -i ATM:0:51 -i ATM:0:52 -i ATM:0:53 worker create r2-27:memnet -a -p -1 -w 20000 -o ATM:0:50 @@ -31,19 +31,19 @@ set duringInit { } set beforeStartAcq { - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc reset'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} {run_parallel e7_25:tof1:reset e7_21:tof2:reset e7_41:tof3:reset r2-28:rich1:reset r2-27:rich2:reset r2-24:rich0:reset >>&hadaq.log} - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc reset'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} {run_parallel e7_25:tof1:start e7_21:tof2:start e7_41:tof3:start r2-28:rich1:start r2-27:rich2:start r2-29:trigconc:start r2-24:rich0:start >>&hadaq.log} - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc start'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc start'} >&hadaq.log} } set afterStartAcq { - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustart'} >&hadaq.log} } set beforeStopAcq { - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustop'} >&hadaq.log} } set afterStopAcq { diff --git a/hadaq/trig_all_tof_mdc_shw_parallel.tcl b/hadaq/trig_all_tof_mdc_shw_parallel.tcl new file mode 100644 index 0000000..63a0f4f --- /dev/null +++ b/hadaq/trig_all_tof_mdc_shw_parallel.tcl @@ -0,0 +1,50 @@ +agent create hadeb01 hades /home/hades/nov01/eb/hadaq +agent create r2-29 hades /hades/usr/hades/nov01/trig/hadaq +agent create r2-14 hades /hades/usr/hades/nov01/shw/hadaq +agent create r2-8 hades /hades/usr/hades/nov01/mdc/hadaq +agent create r2-7 hades /hades/usr/hades/nov01/mdc/hadaq +worker create hadeb01:evtbuild -a -p -2 -m 4 +worker create hadeb01:netmem -a -p -1 -m 4 -i ATM:0:50 -i ATM:0:51 -i ATM:0:52 -i ATM:0:53 +worker create r2-29:memnet -a -p -1 -w 30000 -o ATM:0:50 +worker create r2-29:readout -a -p -2 -w 8192 +worker create r2-14:memnet -a -p -2 -w 30000 -o ATM:0:51 +worker create r2-14:readout -a -p -1 -w 8192 +worker create r2-8:memnet -a -p -2 -w 30000 -o ATM:0:52 +worker create r2-8:readout8 -a -p -1 -w 8192 +worker create r2-7:memnet -a -p -2 -w 30000 -o ATM:0:53 +worker create r2-7:readout7 -a -p -1 -w 8192 +group create acquisition +group create run +group add acquisition r2-29:memnet +group add acquisition r2-29:readout +group add acquisition r2-14:memnet +group add acquisition r2-14:readout +group add acquisition r2-8:memnet +group add acquisition r2-8:readout8 +group add acquisition r2-7:memnet +group add acquisition r2-7:readout7 +group add run hadeb01:evtbuild +group add run hadeb01:netmem + +set duringInit { + +} + +set beforeStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} + {run_parallel e7_25:tof1:reset e7_21:tof2:reset e7_41:tof3:reset r2-14:shw:reset r2-8:mdc0:reset r2-7:mdc1:reset >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} + {run_parallel e7_25:tof1:start e7_21:tof2:start e7_41:tof3:start r2-14:shw:start r2-8:mdc0:start r2-7:mdc1:start >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc start'} >&hadaq.log} +} + +set afterStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustop'} >&hadaq.log} +} + +set afterStopAcq { +} diff --git a/hadaq/trig_all_tof_shw_parallel.tcl b/hadaq/trig_all_tof_shw_parallel.tcl index ea2cc3f..963c566 100644 --- a/hadaq/trig_all_tof_shw_parallel.tcl +++ b/hadaq/trig_all_tof_shw_parallel.tcl @@ -1,6 +1,6 @@ -agent create hadeb01 hades /home/hades/mar01/eb/hadaq -agent create r2-29 hades /hades/usr/hades/mar01/trig/hadaq -agent create r2-14 hades /hades/usr/hades/mar01/shw/hadaq +agent create hadeb01 hades /home/hades/nov01/eb/hadaq +agent create r2-29 hades /hades/usr/hades/nov01/trig/hadaq +agent create r2-14 hades /hades/usr/hades/nov01/shw/hadaq worker create hadeb01:evtbuild -a -p -2 -m 2 worker create hadeb01:netmem -a -p -1 -m 2 -i ATM:0:50 -i ATM:0:51 worker create r2-29:memnet -a -p -1 -w 0 -o ATM:0:50 @@ -21,19 +21,19 @@ set duringInit { } set beforeStartAcq { - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc reset'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} {run_parallel e7_25:tof1:reset e7_21:tof2:reset e7_41:tof3:reset r2-14:shw:reset >>&hadaq.log} - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc reset'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} >&hadaq.log} {run_parallel e7_25:tof1:start e7_21:tof2:start e7_41:tof3:start r2-29:trigconc:start r2-14:shw:start >>&hadaq.log} - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc start'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc start'} >&hadaq.log} } set afterStartAcq { - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustart'} >&hadaq.log} } set beforeStopAcq { - {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustop'} >&hadaq.log} } set afterStopAcq { -- 2.43.0