submit_imap_jobs2.sh
Go to the documentation of this file.
1 #! /bin/bash
2 
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"
5 
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" ]
9 then
10  rm $OUTDIR/imap_file_list.txt
11 fi
12 
13 for f in `ls $INFILES`; do
14  echo $f ./inputs/`basename $f`
15 done > $OUTDIR/imap_file_list.txt
16 
17 
18 ############################## 0-120 ###################################
19 
20 export ELOW=0
21 export EHIGH=120
22 export INU=14
23 export CUTNA49=0
24 export CUTMIPP=0
25 export OUTFILE=all_0_120.root
26 export LOGFILE=all_0_120.log
27 
28 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
29 
30 export ELOW=0
31 export EHIGH=120
32 export INU=14
33 export CUTNA49=0
34 export CUTMIPP=1
35 export OUTFILE=nomipp_0_120.root
36 export LOGFILE=nomipp_0_120.log
37 
38 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
39 
40 
41 export ELOW=0
42 export EHIGH=120
43 export INU=14
44 export CUTNA49=1
45 export CUTMIPP=0
46 export OUTFILE=nona49_0_120.root
47 export LOGFILE=nona49_0_120.log
48 
49 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
50 
51 export ELOW=0
52 export EHIGH=120
53 export INU=14
54 export CUTNA49=1
55 export CUTMIPP=1
56 export OUTFILE=nomipp_nona49_0_120.root
57 export LOGFILE=nomipp_nona49_0_120.log
58 
59 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
60