4 while [ $N -lt 52 ]; do
5 export INFILES=`ls /minerva/data/users/afilkins/rwgt/me000z200i/$N/g4numi*.root`
6 export OUTDIR="/minerva/data/users/afilkins/rwgt/me000z200i"
7 export PPFX_DIR="/minerva/app/users/afilkins/Summer-2016/ppfx"
9 # create a file with a list of /pnfs/file/name local_subdir
10 # this will be used with the ifdh cp -f
11 if [ -f "$OUTDIR/$N/rwgt_file_list.txt" ]
13 rm $OUTDIR/$N/rwgt_file_list.txt
16 for f in `ls $INFILES`; do
17 echo $f ./inputs/`basename $f`
18 done > $OUTDIR/$N/rwgt_file_list.txt
22 export LOGFILE=rwgt$N.log
24 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e LOGFILE -e PPFX_DIR -f $OUTDIR/$N/rwgt_file_list.txt -dRWGT $OUTDIR file:///minerva/app/users/afilkins/Summer-2016/ppfx/scripts/rwgt_job.sh
32 while [ $N -lt 15 ];do
34 export INFILES=`ls /minerva/data/users/afilkins/rwgt/me000z-200i/$N/g4numi*.root`
35 export OUTDIR="/minerva/data/users/afilkins/rwgt/me000z-200i"
37 if [ -f "$OUTDIR/$N/rwgt_file_list.txt" ]
39 rm $OUTDIR/$N/rwgt_file_list.txt
42 for f in `ls $INFILES`; do
43 echo $f ./inputs/`basename $f`
44 done > $OUTDIR/$N/rwgt_file_list.txt
46 export LOGFILE=rwgt$N.log
48 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e LOGFILE -e PPFX_DIR -f $OUTDIR/$N/rwgt_file_list.txt -dRWGT $OUTDIR file:///minerva/app/users/afilkins/Summer-2016/ppfx/scripts/rwgt_job.sh