From 0244cc5c502d9b164cb23c473895244971d08b75 Mon Sep 17 00:00:00 2001 From: hadaq Date: Mon, 19 Nov 2001 16:01:42 +0000 Subject: [PATCH] added needed .tcl scripts, mt --- hadaq/all_but_mdc_parallel.tcl | 60 +++++++++++++++++++++ hadaq/all_parallel.tcl | 66 ++++++++++++++++++++++++ hadaq/trig_all_rich_all_tof_parallel.tcl | 51 ++++++++++++++++++ hadaq/trig_all_rich_parallel.tcl | 52 +++++++++++++++++++ hadaq/trig_all_tof_mdc_parallel.tcl | 43 +++++++++++++++ hadaq/trig_all_tof_parallel.tcl | 39 ++++++++++++++ hadaq/trig_all_tof_shw_parallel.tcl | 40 ++++++++++++++ 7 files changed, 351 insertions(+) create mode 100644 hadaq/all_but_mdc_parallel.tcl create mode 100644 hadaq/all_parallel.tcl create mode 100644 hadaq/trig_all_rich_all_tof_parallel.tcl create mode 100644 hadaq/trig_all_rich_parallel.tcl create mode 100644 hadaq/trig_all_tof_mdc_parallel.tcl create mode 100644 hadaq/trig_all_tof_parallel.tcl create mode 100644 hadaq/trig_all_tof_shw_parallel.tcl diff --git a/hadaq/all_but_mdc_parallel.tcl b/hadaq/all_but_mdc_parallel.tcl new file mode 100644 index 0000000..a295c87 --- /dev/null +++ b/hadaq/all_but_mdc_parallel.tcl @@ -0,0 +1,60 @@ +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 + +# maximum bandwidth: 155Mbit +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 +# -w 10000 in memnet means: 1000kbytes/s +worker create r2-27:memnet -a -p -2 -w 20000 -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 +# priority for rich has changed! readout has higer priority now +worker create r2-28:memnet -a -p -2 -w 20000 -o ATM:0:51 +worker create r2-28:readout -a -p -1 -w 32768 +worker create r2-29:memnet -a -p -1 -w 50000 -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-14:memnet -a -p -1 -w 30000 -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 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 >>&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 >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc start'} >&hadaq.log} +} + +set afterStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} +} + +set afterStopAcq { +} diff --git a/hadaq/all_parallel.tcl b/hadaq/all_parallel.tcl new file mode 100644 index 0000000..19de774 --- /dev/null +++ b/hadaq/all_parallel.tcl @@ -0,0 +1,66 @@ +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 + + +# 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 +# -w 10000 in memnet means: 1000kbytes/s +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 +# 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-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 +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 acquisition r2-8:memnet +group add acquisition r2-8: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 r2-8:mdc: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} +} + +set afterStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} +} + +set afterStopAcq { +} diff --git a/hadaq/trig_all_rich_all_tof_parallel.tcl b/hadaq/trig_all_rich_all_tof_parallel.tcl new file mode 100644 index 0000000..b038ec6 --- /dev/null +++ b/hadaq/trig_all_rich_all_tof_parallel.tcl @@ -0,0 +1,51 @@ +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 +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 +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 +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 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 >>&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 >>&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-29:trigconc:start r2-24:rich0:start >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc start'} >&hadaq.log} +} + +set afterStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} +} + +set afterStopAcq { + +} diff --git a/hadaq/trig_all_rich_parallel.tcl b/hadaq/trig_all_rich_parallel.tcl new file mode 100644 index 0000000..556c4cc --- /dev/null +++ b/hadaq/trig_all_rich_parallel.tcl @@ -0,0 +1,52 @@ +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 +worker create hadeb01:evtbuild -a -p -2 -m 4 -q 33554432 +worker create hadeb01:netmem -a -p -1 -m 4 -q 33554432 -i ATM:0:50 -i ATM:0:51 -i ATM:0:52 -i ATM:0:53 +worker create r2-29:memnet -a -p -1 -q 524288 -o ATM:0:50 -w 15000 +worker create r2-29:readout -a -p -2 -q 524288 -w 32768 +worker create r2-27:memnet -a -p -1 -q 524288 -o ATM:0:51 -w 5000 +worker create r2-27:readout -a -p -2 -q 524288 -w 32768 +worker create r2-28:memnet -a -p -1 -q 524288 -o ATM:0:52 -w 5000 +worker create r2-28:readout -a -p -2 -q 524288 -w 32768 +worker create r2-24:memnet -a -p -1 -q 524288 -o ATM:0:53 -w 5000 +worker create r2-24:readout -a -p -2 -q 524288 -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 run hadeb01:evtbuild +group add run hadeb01:netmem + +set duringInit { + {run_parallel r2-28:rich1:init r2-27:rich2:init r2-29:trigconc:init r2-24:rich0:init >>&hadaq.log} +} + +set beforeStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc reset'} >&hadaq.log} + {run_parallel 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} + {run_parallel 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} +} + +set afterStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} +} + +set afterStopAcq { + {ls>>&hadaq.log} +} + diff --git a/hadaq/trig_all_tof_mdc_parallel.tcl b/hadaq/trig_all_tof_mdc_parallel.tcl new file mode 100644 index 0000000..96bd556 --- /dev/null +++ b/hadaq/trig_all_tof_mdc_parallel.tcl @@ -0,0 +1,43 @@ +agent create hadeb01 hades /home/hades/mar01/eb/hadaq +agent create r2-29 hades /hades/usr/hades/mar01/trig/hadaq +agent create r2-8 hades /hades/usr/hades/mar01/mdc/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 20000 -o ATM:0:50 +worker create r2-29:readout -a -p -2 -w 32768 +worker create r2-8:memnet -a -p -1 -w 65000 -o ATM:0:51 +worker create r2-8:readout -a -p -2 -w 32768 +group create acquisition +group create run +group add acquisition r2-29:memnet +group add acquisition r2-29:readout +group add acquisition r2-8:memnet +group add acquisition r2-8:readout +group add run hadeb01:evtbuild +group add run hadeb01:netmem + +set duringInit { +} + +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-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-8:mdc:start >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc start'} >&hadaq.log} +} + +set afterStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} +} + +set afterStopAcq { +} + + + + diff --git a/hadaq/trig_all_tof_parallel.tcl b/hadaq/trig_all_tof_parallel.tcl new file mode 100644 index 0000000..e8a6074 --- /dev/null +++ b/hadaq/trig_all_tof_parallel.tcl @@ -0,0 +1,39 @@ +agent create hadeb01 hades /home/hades/mar01/eb/hadaq +agent create r2-29 hades /hades/usr/hades/mar01/trig/hadaq +worker create hadeb01:evtbuild -a -p -2 -m 1 +worker create hadeb01:netmem -a -p -1 -m 1 -i ATM:0:50 +worker create r2-29:memnet -a -p -1 -o ATM:0:50 +worker create r2-29:readout -a -p -2 +group create acquisition +group create run +group add acquisition r2-29:memnet +group add acquisition r2-29:readout +group add run hadeb01:evtbuild +group add run hadeb01:netmem + +set duringInit { + {rsh e7_25 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./tof1 init'} >&hadaq.log} + {rsh e7_21 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./tof2 init'} >&hadaq.log} + {rsh e7_41 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./tof3 init'} >&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc init'} >&hadaq.log} + {run_parallel e7_25:tof1:reset e7_21:tof2:reset e7_41:tof3: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 >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc start'} >&hadaq.log} +} + +set afterStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} +} + +set afterStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc stop'} >&hadaq.log} +} diff --git a/hadaq/trig_all_tof_shw_parallel.tcl b/hadaq/trig_all_tof_shw_parallel.tcl new file mode 100644 index 0000000..ea2cc3f --- /dev/null +++ b/hadaq/trig_all_tof_shw_parallel.tcl @@ -0,0 +1,40 @@ +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 +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 +worker create r2-29:readout -a -p -2 +worker create r2-14:memnet -a -p -2 -w 5000 -o ATM:0:51 +worker create r2-14:readout -a -p -1 +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 run hadeb01:evtbuild +group add run hadeb01:netmem + +set duringInit { + +} + +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-14:shw: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-29:trigconc:start r2-14:shw:start >>&hadaq.log} + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./trigconc start'} >&hadaq.log} +} + +set afterStartAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + {rsh r2-29 sh -c {'. bin/daqenv mar01; cd mar01/slow; ./ctustop'} >&hadaq.log} +} + +set afterStopAcq { +} -- 2.43.0