#!/bin/sh # runsim_hw.sh # Time-stamp: <2003-07-24 11:41:58 yuji> # generate ttbar sim. on herwig #cdfsim=cdfSim cdfsim=${HOME}/spool/spin/herwig/workrel/bin/Linux2-KCC_4_0/cdfSim #scriptdir=${HOME}/spool/cdfsim/myscripts scriptdir=${HOME}/spool/spin/herwig/scripts nev=2000 cdfsoft2ver=4.11.1 run=151435 # cdfSim startup script # usage: ./runsim_hw.sh [id] # - simulatior works at subdir p[id] # - random seed # GRNDM1 888[id]7 # GRNDM2 999[id]7 if [ $# = 0 ]; then echo "Usage: $0 [id]" exit fi pdir="p$1" if [ -d ${pdir} ]; then echo "Dir ${pdir} already exist. Abort." exit fi mkdir ${pdir} cd ${pdir} tmptcl=tmp.$$.tcl cat < ${tmptcl} ######## set scriptdir ${scriptdir} set nev ${nev} set version_name ${cdfsoft2ver} set run ${run} talk RandomGenManager RandomNumberMenu RandomSeedHERWIG1 set $fRandomSeedHERWIG1 RandomSeedHERWIG2 set $fRandomSeedHERWIG2 exit exit # This sets up the Random Number seed: talk RandomGenManager RandomNumberMenu RandomSeedGRNDM1 set 111${1}7 RandomSeedGRNDM2 set 222${1}7 RandomSeedPYTHIA1 set 333${1}7 RandomSeedPYTHIA2 set 444${1}7 RandomSeedHERWIG1 set 888${1}7 RandomSeedHERWIG2 set 999${1}7 exit exit #talk herwig # Randseed1 set 888${1}7 # Randseed2 set 999${1}7 #exit source \$scriptdir/gensim_tt_herwig.tcl ####### EOF /bin/nice -n19 ${cdfsim} ${tmptcl} > sim.$1.log 2>&1 mv herwig_ttbar.sim herwig_ttbar.${1}.sim touch ../Done.$1 rm ${tmptcl} ## EOF ##