cd ${SUBMITTINGDIRECTORY} # starver eval # echo $INPUTFILE0 | grep ':' # if (! $?) then # set evtsFile = `echo $INPUTFILE0 | awk -F\: '{print $1}'` # set f = `echo $INPUTFILE0 | awk -F\: '{print $2}'` # set l = `echo $INPUTFILE0 | awk -F\: '{print $3}'` # else # set evtsFile = $INPUTFILE0; set f = 1 set l = 5000000 # endif # echo "${evtsFile}" foreach input (`cat $FILELIST`) set filel = `basename ${input} .daq` set output = ${filel}.event.root if (! -r ${input}) exit 1; set logFile = ${filel}B.log if ( -r $logFile) exit 0; set muFile = ${filel}.MuDst.root if (-r $muFile) exit 0; set tFile = ${filel}.root if (-r $tFile) exit 0; root4star -q -b 'bfc.C('${f}','${l}',"B2015,in,Tpx,gmt,gmtMatch,gmtCosmics,gmtClusTree,CMuDst,UseXgeom,tpcDB,TpcHitMover,StiCA,KFVertex,CorrX,evout,NoHistos,noTags,noRunco,BAna,analysis","'${input}'","'${output}'","'${tFile}'")' >& ${logFile} end