#!/bin/tcsh -f # # fcal_N6_start - starts DAQ for FCAL North crates # # SP, 04-Dec-2013 set hh = `echo $HOST | cut -c 1-5 ` #set ss = 'source ${HALLD_LIB}/setupcoda3; ' set ss = 'source ${DAQ_HOME}/setupcoda3; ' echo $CODA if ($hh != "gluon") then echo "" echo " You should be logged into gluon machine" echo "" exit (1) endif set xpos = 1100 set ypos = 50 set yinc = 145 set lines = 8 set color = "-bg blue -fg white -sb -sl 5000" set geom = "-geometry 70x$lines+$xpos+" set PL_t = "-T fcal_N1_platform" set RC_t = "-T fcal_N1_RC" set EB_t = "-T fcal_N1_EB" set XT_t = "-T CRATE_" set PL = daq_comp.tcl set RC = daq_comp.tcl set EB = daq_comp.tcl set XT = daq_comp.tcl set PL_comp = "$ss platform" set RC_comp = "$ss rcgui" set EB_comp = "$ss coda_emu_peb64 EBN1" set XT_comp1 = "coda_roc_v3 -i -n " set XT_comp2 = " -t ROC" echo "" echo " Start platform" set tmp = `xterm $PL_t $color $geom$ypos -e $PL $PL_comp >& /dev/null &` echo " Start Run Control GUI" set ypos = `expr $ypos + $yinc` set color = "-bg yellow -fg black -sb -sl 5000" set tmp = `xterm $RC_t $color $geom$ypos -e $RC $RC_comp >& /dev/null &` echo " Start EB" set ypos = `expr $ypos + $yinc` set color = "-bg yellow -fg black -sb -sl 5000" set tmp = `xterm $EB_t $color $geom$ypos -e $EB $EB_comp >& /dev/null &` #set roc = "TSN2" #echo " Start connection to CRATE_$roc" #set xpos = 1320 #set ypos = 30 #set geom = "-geometry 70x10+$xpos+" #set color = "-sb -sl 5000 -bg lightgreen -fg black" #set XT_comp = "coda_ts_v3 -i -n $roc -t TS" #set tmp = `xterm $XT_t$roc $color $geom$ypos -e $XT $XT_comp >& /dev/null &` set rocs = ( ROCFCAL1 ) foreach roc ($rocs) echo " Start connection to CRATE_$roc" set ypos = `expr $ypos + $yinc` set geom = "-geometry 70x10+$xpos+" set color = "-sb -sl 5000 -bg lightgreen -fg black" set XT_c = "$XT_comp1$roc$XT_comp2" set tmp = `xterm $XT_t$roc $color $geom$ypos -e $XT $XT_c >& /dev/null &` end echo "" echo " fcal_N1_start done" echo "" exit