3 export INFILES="/pnfs/minerva/mc_generation_flux/mc-flux/mc/g4numiv5/00/00/00/05/g4numiv5_dk2nu_minerva1_le010z185i_04[0-9][0-9]_0005.root"
4 export OUTDIR="/minerva/data/users/kordosky/imap"
6 # create a file with a list of /pnfs/file/name local_subdir
7 # this will be used with the ifdh cp -f
8 if [ -f "$OUTDIR/imap_file_list.txt" ]
10 rm $OUTDIR/imap_file_list.txt
13 for f in `ls $INFILES`; do
14 echo $f ./inputs/`basename $f`
15 done > $OUTDIR/imap_file_list.txt
22 export OUTFILE=all_3_4.root
23 export LOGFILE=all_3_4.log
25 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
32 export OUTFILE=nomipp_3_4.root
33 export LOGFILE=nomipp_3_4.log
35 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
43 export OUTFILE=nona49_3_4.root
44 export LOGFILE=nona49_3_4.log
46 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
53 export OUTFILE=nomipp_nona49_3_4.root
54 export LOGFILE=nomipp_nona49_3_4.log
56 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
59 ########################### 6-8 GeV ###############################
66 export OUTFILE=all_6_8.root
67 export LOGFILE=all_6_8.log
69 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
76 export OUTFILE=nomipp_6_8.root
77 export LOGFILE=nomipp_6_8.log
79 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
87 export OUTFILE=nona49_6_8.root
88 export LOGFILE=nona49_6_8.log
90 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
97 export OUTFILE=nomipp_nona49_6_8.root
98 export LOGFILE=nomipp_nona49_6_8.log
100 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
102 ############################## 15-20 ###################################
109 export OUTFILE=all_15_20.root
110 export LOGFILE=all_15_20.log
112 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
119 export OUTFILE=nomipp_15_20.root
120 export LOGFILE=nomipp_15_20.log
122 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
130 export OUTFILE=nona49_15_20.root
131 export LOGFILE=nona49_15_20.log
133 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
140 export OUTFILE=nomipp_nona49_15_20.root
141 export LOGFILE=nomipp_nona49_15_20.log
143 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
146 ############################## 30-40 ###################################
153 export OUTFILE=all_30_40.root
154 export LOGFILE=all_30_40.log
156 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
163 export OUTFILE=nomipp_30_40.root
164 export LOGFILE=nomipp_30_40.log
166 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
174 export OUTFILE=nona49_30_40.root
175 export LOGFILE=nona49_30_40.log
177 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
184 export OUTFILE=nomipp_nona49_30_40.root
185 export LOGFILE=nomipp_nona49_30_40.log
187 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
189 ############################## 0-120 ###################################
196 export OUTFILE=all_0_120.root
197 export LOGFILE=all_0_120.log
199 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
206 export OUTFILE=nomipp_0_120.root
207 export LOGFILE=nomipp_0_120.log
209 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
217 export OUTFILE=nona49_0_120.root
218 export LOGFILE=nona49_0_120.log
220 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh
227 export OUTFILE=nomipp_nona49_0_120.root
228 export LOGFILE=nomipp_nona49_0_120.log
230 jobsub_submit -G minerva -M --OS=SL6 --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC --role=Analysis -e ELOW -e EHIGH -e INU -e CUTNA49 -e CUTMIPP -e OUTFILE -e LOGFILE -e PPFX_DIR -f $OUTDIR/imap_file_list.txt -dIMAP $OUTDIR file://$PPFX_DIR/scripts/imap_job.sh