From e0958ef9fb6c965845b1472e3b01d6a6452f275f Mon Sep 17 00:00:00 2001 From: hades Date: Fri, 17 Nov 2000 19:48:39 +0000 Subject: [PATCH] Just for history, already superseded --- hadaq/hades.tcl | 109 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 hadaq/hades.tcl diff --git a/hadaq/hades.tcl b/hadaq/hades.tcl new file mode 100644 index 0000000..3afd00b --- /dev/null +++ b/hadaq/hades.tcl @@ -0,0 +1,109 @@ +agent create hades05 root /home/hades/nov00/eb/hadaq +agent create r2-27 hades /hades/usr/hades/nov00/tof/hadaq +agent create r2-13 hades /hades/usr/hades/nov00/trig/hadaq +agent create r2-14 hades /hades/usr/hades/nov00/shw/hadaq +agent create r2-8 hades /hades/usr/hades/nov00/mdc/hadaq +agent create r2-24 hades /hades/usr/hades/nov00/rich/hadaq +agent create r2-26 hades /hades/usr/hades/nov00/rich/hadaq +agent create r2-28 hades /hades/usr/hades/nov00/rich/hadaq +worker create hades05:evtbuild -a -p -2 -m 7 -q 24000000 +worker create hades05:netmem -a -p -1 -m 7 -q 24000000 -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 +worker create r2-13:memnet -a -p -1 -w 10000 -o ATM:0:50 +#worker create r2-13:evtbuild -a -d file +worker create r2-13:readout -a -p -2 +worker create r2-27:memnet -a -p -1 -w 10000 -o ATM:0:51 +#worker create r2-27:evtbuild -a -d file +worker create r2-27:readout -a -p -2 +worker create r2-14:memnet -a -p -1 -w 10000 -o ATM:0:52 +#worker create r2-14:evtbuild -a -d file +worker create r2-14:readout -a -p -2 +worker create r2-8:memnet -a -p -1 -w 10000 -o ATM:0:53 +#worker create r2-8:evtbuild -a -d file +worker create r2-8:readout -a -p -2 +worker create r2-24:memnet -a -p -1 -w 10000 -o ATM:0:54 +#worker create r2-24:evtbuild -a -d file +worker create r2-24:readout4 -a -p -2 +worker create r2-26:memnet -a -p -1 -w 10000 -o ATM:0:55 +#worker create r2-26:evtbuild -a -d file +worker create r2-26:readout4 -a -p -2 +worker create r2-28:memnet -a -p -1 -w 10000 -o ATM:0:56 +#worker create r2-28:evtbuild -a -d file +worker create r2-28:readout2 -a -p -2 +group create acquisition +group create run +group add acquisition r2-27:memnet +#group add acquisition r2-27:evtbuild +group add acquisition r2-27:readout +group add acquisition r2-13:memnet +#group add acquisition r2-13:evtbuild +group add acquisition r2-13:readout +group add acquisition r2-14:memnet +#group add acquisition r2-14:evtbuild +group add acquisition r2-14:readout +group add acquisition r2-8:memnet +#group add acquisition r2-8:evtbuild +group add acquisition r2-8:readout +group add acquisition r2-24:memnet +#group add acquisition r2-24:evtbuild +group add acquisition r2-24:readout4 +group add acquisition r2-26:memnet +#group add acquisition r2-26:evtbuild +group add acquisition r2-26:readout4 +group add acquisition r2-28:memnet +#group add acquisition r2-28:evtbuild +group add acquisition r2-28:readout2 +group add run hades05:evtbuild +group add run hades05:netmem + +set duringInit { + {rsh r2-27 sh -c {'. .bash_profile; cd nov00/slow; ./conc init'} >&hadaq.log} + {rsh r2-14 sh -c {'. .bash_profile; cd nov00/slow; ./shw reset'} >&hadaq.log} + {rsh r2-8 sh -c {'. .bash_profile; cd nov00/slow; ./mdc reset'} >&hadaq.log} + {rsh r2-24 sh -c {'. .bash_profile; cd nov00/slow; ./rich0 reset'} >&hadaq.log} + {rsh r2-26 sh -c {'. .bash_profile; cd nov00/slow; ./rich1 reset'} >&hadaq.log} + {rsh r2-28 sh -c {'. .bash_profile; cd nov00/slow; ./rich2 reset'} >&hadaq.log} + {rsh r2-17 sh -c {'. .bash_profile; cd nov00/slow; ./tof1 reset'} >&hadaq.log} + {rsh r2-27 sh -c {'. .bash_profile; cd nov00/slow; ./conc start'} >&hadaq.log} + {rsh r2-17 sh -c {'. .bash_profile; cd nov00/slow; ./tof1 start'} >&hadaq.log} + {rsh r2-8 sh -c {'. .bash_profile; cd nov00/slow; ./mdc start'} >&hadaq.log} + {rsh r2-24 sh -c {'. .bash_profile; cd nov00/slow; ./rich0 start'} >&hadaq.log} + {rsh r2-26 sh -c {'. .bash_profile; cd nov00/slow; ./rich1 start'} >&hadaq.log} + {rsh r2-28 sh -c {'. .bash_profile; cd nov00/slow; ./rich2 start'} >&hadaq.log} + {rsh r2-13 sh -c {'. .bash_profile; cd nov00/slow; ./trig start'} >&hadaq.log} +} + +set afterStartAcq { + {rsh r2-13 sh -c {'. .bash_profile; ctustart'} >&hadaq.log} +} + +set beforeStopAcq { + {rsh r2-13 sh -c {'. .bash_profile; ctustop'} >&hadaq.log} +} + +set afterStopAcq { + {rsh r2-27 sh -c {'. .bash_profile; cd nov00/slow; ./conc stop'} >&hadaq.log} + {rsh r2-17 sh -c {'. .bash_profile; cd nov00/slow; ./tof1 stop'} >&hadaq.log} + {rsh r2-8 sh -c {'. .bash_profile; cd nov00/slow; ./mdc stop'} >&hadaq.log} + {rsh r2-24 sh -c {'. .bash_profile; cd nov00/slow; ./rich0 stop'} >&hadaq.log} + {rsh r2-26 sh -c {'. .bash_profile; cd nov00/slow; ./rich1 stop'} >&hadaq.log} + {rsh r2-28 sh -c {'. .bash_profile; cd nov00/slow; ./rich2 stop'} >&hadaq.log} + {rsh r2-13 sh -c {'. .bash_profile; cd nov00/slow; ./trig stop'} >&hadaq.log} +} -- 2.43.0