-#set subSystems { trig rich0 rich1 rich2 mdc tof shw }
-set subSystems { trig rich0 }
-#set subSystems { trig tof }
+#set subSystems { trig rich0 rich1 rich2 mdc0 tof1 tof2 tof3 shw }
+set subSystems { trig rich0 rich1 rich2 }
group create acquisition
group create run
-if {[lsearch $subSystems trig] >= 0} {
- agent create r2-25 hades /hades/usr/hades/nov00/trig/hadaq
- worker create r2-25:memnet -a -p -1 -w 3000 -o ATM:0:50
- #worker create r2-25:evtbuild -a -d file
- worker create r2-25:readout -a -p -2 -w 10000
- group add acquisition r2-25:memnet
- #group add acquisition r2-25:evtbuild
- group add acquisition r2-25:readout
- lappend inPaths {-i ATM:0:50}
- set trigInit {rsh r2-25 sh -c {'. .bash_profile; cd nov00/slow; ./trig init'} </dev/null }
- set trigReset {rsh r2-25 sh -c {'. .bash_profile; cd nov00/slow; ./trig reset'} </dev/null >>&hadaq.log}
- set trigStart {rsh r2-25 sh -c {'. .bash_profile; cd nov00/slow; ./trig start'} </dev/null >>&hadaq.log}
- set trigStop {rsh r2-25 sh -c {'. .bash_profile; cd nov00/slow; ./trig stop'} </dev/null >>&hadaq.log}
-} else {
- set trigInit {true}
- set trigReset {true}
- set trigStart {true}
- set trigStop {true}
-}
+agent create r2-29 hades /hades/usr/hades/nov01/trig/hadaq
+worker create r2-29:memnet -a -p -1 -w 38000 -o ATM:0:150
+worker create r2-29:readout -a -p -2 -w 32768
+group add acquisition r2-29:memnet
+group add acquisition r2-29:readout
+lappend init r2-29:trigconc:init
+lappend reset { }
+lappend start { }
+lappend stop { }
+set trigReset {rsh r2-29 -l hades sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc reset'} </dev/null >>&hadaq.log}
+set trigStart {rsh r2-29 -l hades sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc start'} </dev/null >>&hadaq.log}
+set trigStop {rsh r2-29 -l hades sh -c {'. bin/daqenv nov01; cd nov01/slow; ./trigconc stop'} </dev/null >>&hadaq.log}
+lappend inPaths {-i ATM:0:150}
if {[lsearch $subSystems rich0] >= 0} {
- agent create r2-24 hades /hades/usr/hades/nov00/rich/hadaq
- worker create r2-24:memnet -a -p -1 -w 10000 -o ATM:0:51
- #worker create r2-24:evtbuild -a -d file
- worker create r2-24:readout4 -a -p -2 -w 30000
+ agent create r2-24 hades /hades/usr/hades/nov01/rich/hadaq
+ worker create r2-24:memnet -a -p -2 -w 30000 -o ATM:0:154
+ worker create r2-24:readout -a -p -1 -w 32768
group add acquisition r2-24:memnet
- #group add acquisition r2-24:evtbuild
- group add acquisition r2-24:readout4
- lappend inPaths {-i ATM:0:51}
- set rich0Init {rsh r2-24 sh -c {'. .bash_profile; cd nov00/slow; ./rich0 init'} </dev/null }
- set rich0Reset {rsh r2-24 sh -c {'. .bash_profile; cd nov00/slow; ./rich0 reset'} </dev/null >>&hadaq.log}
- set rich0Start {rsh r2-24 sh -c {'. .bash_profile; cd nov00/slow; ./rich0 start'} </dev/null >>&hadaq.log}
- set rich0Stop {rsh r2-24 sh -c {'. .bash_profile; cd nov00/slow; ./rich0 stop'} </dev/null >>&hadaq.log}
-} else {
- set rich0Init {true}
- set rich0Reset {true}
- set rich0Start {true}
- set rich0Stop {true}
+ group add acquisition r2-24:readout
+ lappend init r2-24:rich0:init
+ lappend reset r2-24:rich0:reset
+ lappend start r2-24:rich0:start
+ lappend stop r2-24:rich0:stop
+ lappend inPaths {-i ATM:0:154}
}
if {[lsearch $subSystems rich1] >= 0} {
- agent create r2-26 hades /hades/usr/hades/nov00/rich/hadaq
- worker create r2-26:memnet -a -p -1 -w 12000 -o ATM:0:52
- #worker create r2-26:evtbuild -a -d file
- worker create r2-26:readout4 -a -p -2 -w 30000
- group add acquisition r2-26:memnet
- #group add acquisition r2-26:evtbuild
- group add acquisition r2-26:readout4
- lappend inPaths {-i ATM:0:52}
- set rich1Init {rsh r2-26 sh -c {'. .bash_profile; cd nov00/slow; ./rich1 init'} </dev/null }
- set rich1Reset {rsh r2-26 sh -c {'. .bash_profile; cd nov00/slow; ./rich1 reset'} </dev/null >>&hadaq.log}
- set rich1Start {rsh r2-26 sh -c {'. .bash_profile; cd nov00/slow; ./rich1 start'} </dev/null >>&hadaq.log}
- set rich1Stop {rsh r2-26 sh -c {'. .bash_profile; cd nov00/slow; ./rich1 stop'} </dev/null >>&hadaq.log}
-} else {
- set rich1Init {true}
- set rich1Reset {true}
- set rich1Start {true}
- set rich1Stop {true}
+ agent create r2-28 hades /hades/usr/hades/nov01/rich/hadaq
+ worker create r2-28:memnet -a -p -2 -w 30000 -o ATM:0:152
+ worker create r2-28:readout -a -p -1 -w 32768
+ group add acquisition r2-28:memnet
+ group add acquisition r2-28:readout
+ lappend init r2-28:rich1:init
+ lappend reset r2-28:rich1:reset
+ lappend start r2-28:rich1:start
+ lappend stop r2-28:rich1:stop
+ lappend inPaths {-i ATM:0:152}
}
if {[lsearch $subSystems rich2] >= 0} {
- agent create r2-28 hades /hades/usr/hades/nov00/rich/hadaq
- worker create r2-28:memnet -a -p -1 -w 5000 -o ATM:0:53
- #worker create r2-28:evtbuild -a -d file
- worker create r2-28:readout2 -a -p -2 -w 10000
- group add acquisition r2-28:memnet
- #group add acquisition r2-28:evtbuild
- group add acquisition r2-28:readout2
- lappend inPaths {-i ATM:0:53}
- set rich2Init {rsh r2-28 sh -c {'. .bash_profile; cd nov00/slow; ./rich2 init'} </dev/null }
- set rich2Reset {rsh r2-28 sh -c {'. .bash_profile; cd nov00/slow; ./rich2 reset'} </dev/null >>&hadaq.log}
- set rich2Start {rsh r2-28 sh -c {'. .bash_profile; cd nov00/slow; ./rich2 start'} </dev/null >>&hadaq.log}
- set rich2Stop {rsh r2-28 sh -c {'. .bash_profile; cd nov00/slow; ./rich2 stop'} </dev/null >>&hadaq.log}
-} else {
- set rich2Init {true}
- set rich2Reset {true}
- set rich2Start {true}
- set rich2Stop {true}
+ agent create r2-27 hades /hades/usr/hades/nov01/rich/hadaq
+ worker create r2-27:memnet -a -p -2 -w 30000 -o ATM:0:153
+ worker create r2-27:readout -a -p -1 -w 32768
+ group add acquisition r2-27:memnet
+ group add acquisition r2-27:readout
+ lappend init r2-27:rich2:init
+ lappend reset r2-27:rich2:reset
+ lappend start r2-27:rich2:start
+ lappend stop r2-27:rich2:stop
+ lappend inPaths {-i ATM:0:153}
}
-if {[lsearch $subSystems mdc] >= 0} {
- agent create r2-8 hades /hades/usr/hades/nov00/mdc/hadaq
- worker create r2-8:memnet -a -p -1 -w 37000 -o ATM:0:54
- #worker create r2-8:evtbuild -a -d file
- worker create r2-8:readout -a -p -2
+if {[lsearch $subSystems mdc0] >= 0} {
+ agent create r2-8 hades /hades/usr/hades/nov01/mdc/hadaq
+ worker create r2-8:memnet -a -p -1 -w 35000 -o ATM:0:155
+ worker create r2-8:readout8 -a -p -2 -w 32768
group add acquisition r2-8:memnet
- #group add acquisition r2-8:evtbuild
- group add acquisition r2-8:readout
- lappend inPaths {-i ATM:0:54}
- set mdcInit {rsh r2-8 sh -c {'. .bash_profile; cd nov00/slow; ./mdc init'} </dev/null }
- set mdcReset {rsh r2-8 sh -c {'. .bash_profile; cd nov00/slow; ./mdc reset'} </dev/null >>&hadaq.log}
- set mdcStart {rsh r2-8 sh -c {'. .bash_profile; cd nov00/slow; ./mdc start'} </dev/null >>&hadaq.log}
- set mdcStop {rsh r2-8 sh -c {'. .bash_profile; cd nov00/slow; ./mdc stop'} </dev/null >>&hadaq.log}
-} else {
- set mdcInit {true}
- set mdcReset {true}
- set mdcStart {true}
- set mdcStop {true}
+ group add acquisition r2-8:readout8
+ lappend init r2-8:mdc0:init
+ lappend reset r2-8:mdc0:reset
+ lappend start r2-8:mdc0:start
+ lappend stop r2-8:mdc0:stop
+ lappend inPaths {-i ATM:0:155}
}
-if {[lsearch $subSystems tof] >= 0} {
- agent create r2-27 hades /hades/usr/hades/nov00/tof/hadaq
- worker create r2-27:memnet -a -p -1 -w 15000 -o ATM:0:55
- #worker create r2-27:evtbuild -a -d file
- worker create r2-27:readout -a -p -2 -w 30000
- group add acquisition r2-27:memnet
- #group add acquisition r2-27:evtbuild
- group add acquisition r2-27:readout
- lappend inPaths {-i ATM:0:55}
- set tof2Init {rsh r2-29 sh -c {'. .bash_profile; cd nov00/slow; ./tof2 init'} </dev/null }
- set tof1Init {rsh r2-17 sh -c {'. .bash_profile; cd nov00/slow; ./tof1 init'} </dev/null }
- set concInit {rsh r2-27 sh -c {'. .bash_profile; cd nov00/slow; ./conc init'} </dev/null }
- set tof2Reset {rsh r2-29 sh -c {'. .bash_profile; cd nov00/slow; ./tof2 reset'} </dev/null }
- set tof1Reset {rsh r2-17 sh -c {'. .bash_profile; cd nov00/slow; ./tof1 reset'} </dev/null }
- set concReset {rsh r2-27 sh -c {'. .bash_profile; cd nov00/slow; ./conc reset'} </dev/null >>&hadaq.log}
- set tof2Start {rsh r2-29 sh -c {'. .bash_profile; cd nov00/slow; ./tof2 start'} </dev/null }
- set tof1Start {rsh r2-17 sh -c {'. .bash_profile; cd nov00/slow; ./tof1 start'} </dev/null }
- set concStart {rsh r2-27 sh -c {'. .bash_profile; cd nov00/slow; ./conc start'} </dev/null >>&hadaq.log}
- set tof2Stop {rsh r2-29 sh -c {'. .bash_profile; cd nov00/slow; ./tof2 stop'} </dev/null }
- set tof1Stop {rsh r2-17 sh -c {'. .bash_profile; cd nov00/slow; ./tof1 stop'} </dev/null }
- set concStop {rsh r2-27 sh -c {'. .bash_profile; cd nov00/slow; ./conc stop'} </dev/null >>&hadaq.log}
-} else {
- set concInit {true}
- set concReset {true}
- set concStart {true}
- set concStop {true}
- set tof1Init {true}
- set tof1Reset {true}
- set tof1Start {true}
- set tof1Stop {true}
- set tof2Init {true}
- set tof2Reset {true}
- set tof2Start {true}
- set tof2Stop {true}
+if {[lsearch $subSystems tof1] >= 0} {
+ lappend init e7_25:tof1:init
+ lappend reset e7_25:tof1:reset
+ lappend start e7_25:tof1:start
+ lappend stop e7_25:tof1:stop
+}
+
+if {[lsearch $subSystems tof2] >= 0} {
+ lappend init e7_21:tof2:init
+ lappend reset e7_21:tof2:reset
+ lappend start e7_21:tof2:start
+ lappend stop e7_21:tof2:stop
+}
+
+if {[lsearch $subSystems tof3] >= 0} {
+ lappend init e7_41:tof3:init
+ lappend reset e7_41:tof3:reset
+ lappend start e7_41:tof3:start
+ lappend stop e7_41:tof3:stop
}
if {[lsearch $subSystems shw] >= 0} {
- agent create r2-14 hades /hades/usr/hades/nov00/shw/hadaq
- worker create r2-14:memnet -a -p -1 -w 23000 -o ATM:0:56
- #worker create r2-14:evtbuild -a -d file
- worker create r2-14:readout -a -p -2 -w 46000
+ agent create r2-14 hades /hades/usr/hades/nov01/shw/hadaq
+ worker create r2-14:memnet -a -p -1 -w 35000 -o ATM:0:151
+ worker create r2-14:readout -a -p -2 -w 32768
group add acquisition r2-14:memnet
- #group add acquisition r2-14:evtbuild
group add acquisition r2-14:readout
- lappend inPaths {-i ATM:0:56}
- set shwInit {rsh r2-14 sh -c {'. .bash_profile; cd nov00/slow; ./shw init'} </dev/null }
- set shwReset {rsh r2-14 sh -c {'. .bash_profile; cd nov00/slow; ./shw reset'} </dev/null >>&hadaq.log}
- set shwStart {rsh r2-14 sh -c {'. .bash_profile; cd nov00/slow; ./shw start'} </dev/null >>&hadaq.log}
- set shwStop {rsh r2-14 sh -c {'. .bash_profile; cd nov00/slow; ./shw stop'} </dev/null >>&hadaq.log}
-} else {
- set shwInit {true}
- set shwReset {true}
- set shwStart {true}
- set shwStop {true}
+ lappend init r2-14:shw:init
+ lappend reset r2-14:shw:reset
+ lappend start r2-14:shw:start
+ lappend stop r2-14:shw:stop
+ lappend inPaths {-i ATM:0:151}
}
-agent create hades05 root /home/hades/nov00/eb/hadaq
-eval worker create hades05:evtbuild -a -p -2 -m [llength $inPaths] -q 24000000
-eval worker create hades05:netmem -a -p -1 -m [llength $inPaths] -q 24000000 [join $inPaths { }]
-group add run hades05:evtbuild
-group add run hades05:netmem
-
-set duringInit [list $trigInit $rich0Init $rich1Init $rich2Init $mdcInit $tof2Init $tof1Init $concInit $shwInit]
+agent create hadeb03 hadaq /home/hadaq/nov01/eb/hadaq_tcl
+eval worker create hadeb03:evtbuild -a -p -2 -m [llength $inPaths]
+eval worker create hadeb03:netmem -a -p -1 -m [llength $inPaths] [join $inPaths { }]
+group add run hadeb03:evtbuild
+group add run hadeb03:netmem
-set beforeStartAcq [list $trigReset $rich0Reset $rich1Reset $rich2Reset $mdcReset $tof2Reset $tof1Reset $concReset $shwReset $shwStart $concStart $tof1Start $tof2Start $mdcStart $rich2Start $rich1Start $rich0Start $trigStart]
+set duringInit [list "run_parallel_nov01 [join $init { }]"]
+set beforeStartAcq [list $trigReset "run_parallel_nov01 [join $reset { }]" $trigReset "run_parallel_nov01 [join $start { }]" $trigStart]
set afterStartAcq {
- {rsh r2-25 sh -c {'. .bash_profile; ctustart'} </dev/null >>&hadaq.log}
+ {rsh r2-29 -l hades sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustart'} </dev/null >>&hadaq.log}
}
set beforeStopAcq {
- {rsh r2-25 sh -c {'. .bash_profile; ctustop'} </dev/null >>&hadaq.log}
+ {rsh r2-29 -l hades sh -c {'. bin/daqenv nov01; cd nov01/slow; ./ctustop'} </dev/null >>&hadaq.log}
}
-set afterStopAcq [list $trigStop $rich0Stop $rich1Stop $rich2Stop $mdcStop $tof2Stop $tof1Stop $concStop $shwStop]
+set afterStopAcq [list "run_parallel_nov01 [join $stop { }]"]