submit_imap_jobs.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 export ELOW=3
18 export EHIGH=4
19 export INU=14
20 export CUTNA49=0
21 export CUTMIPP=0
22 export OUTFILE=all_3_4.root
23 export LOGFILE=all_3_4.log
24 
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
26 
27 export ELOW=3
28 export EHIGH=4
29 export INU=14
30 export CUTNA49=0
31 export CUTMIPP=1
32 export OUTFILE=nomipp_3_4.root
33 export LOGFILE=nomipp_3_4.log
34 
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
36 
37 
38 export ELOW=3
39 export EHIGH=4
40 export INU=14
41 export CUTNA49=1
42 export CUTMIPP=0
43 export OUTFILE=nona49_3_4.root
44 export LOGFILE=nona49_3_4.log
45 
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
47 
48 export ELOW=3
49 export EHIGH=4
50 export INU=14
51 export CUTNA49=1
52 export CUTMIPP=1
53 export OUTFILE=nomipp_nona49_3_4.root
54 export LOGFILE=nomipp_nona49_3_4.log
55 
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
57 
58 
59 ########################### 6-8 GeV ###############################
60 
61 export ELOW=6
62 export EHIGH=8
63 export INU=14
64 export CUTNA49=0
65 export CUTMIPP=0
66 export OUTFILE=all_6_8.root
67 export LOGFILE=all_6_8.log
68 
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
70 
71 export ELOW=6
72 export EHIGH=8
73 export INU=14
74 export CUTNA49=0
75 export CUTMIPP=1
76 export OUTFILE=nomipp_6_8.root
77 export LOGFILE=nomipp_6_8.log
78 
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
80 
81 
82 export ELOW=6
83 export EHIGH=8
84 export INU=14
85 export CUTNA49=1
86 export CUTMIPP=0
87 export OUTFILE=nona49_6_8.root
88 export LOGFILE=nona49_6_8.log
89 
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
91 
92 export ELOW=6
93 export EHIGH=8
94 export INU=14
95 export CUTNA49=1
96 export CUTMIPP=1
97 export OUTFILE=nomipp_nona49_6_8.root
98 export LOGFILE=nomipp_nona49_6_8.log
99 
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
101 
102 ############################## 15-20 ###################################
103 
104 export ELOW=15
105 export EHIGH=20
106 export INU=14
107 export CUTNA49=0
108 export CUTMIPP=0
109 export OUTFILE=all_15_20.root
110 export LOGFILE=all_15_20.log
111 
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
113 
114 export ELOW=15
115 export EHIGH=20
116 export INU=14
117 export CUTNA49=0
118 export CUTMIPP=1
119 export OUTFILE=nomipp_15_20.root
120 export LOGFILE=nomipp_15_20.log
121 
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
123 
124 
125 export ELOW=15
126 export EHIGH=20
127 export INU=14
128 export CUTNA49=1
129 export CUTMIPP=0
130 export OUTFILE=nona49_15_20.root
131 export LOGFILE=nona49_15_20.log
132 
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
134 
135 export ELOW=15
136 export EHIGH=20
137 export INU=14
138 export CUTNA49=1
139 export CUTMIPP=1
140 export OUTFILE=nomipp_nona49_15_20.root
141 export LOGFILE=nomipp_nona49_15_20.log
142 
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
144 
145 
146 ############################## 30-40 ###################################
147 
148 export ELOW=30
149 export EHIGH=40
150 export INU=14
151 export CUTNA49=0
152 export CUTMIPP=0
153 export OUTFILE=all_30_40.root
154 export LOGFILE=all_30_40.log
155 
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
157 
158 export ELOW=30
159 export EHIGH=40
160 export INU=14
161 export CUTNA49=0
162 export CUTMIPP=1
163 export OUTFILE=nomipp_30_40.root
164 export LOGFILE=nomipp_30_40.log
165 
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
167 
168 
169 export ELOW=30
170 export EHIGH=40
171 export INU=14
172 export CUTNA49=1
173 export CUTMIPP=0
174 export OUTFILE=nona49_30_40.root
175 export LOGFILE=nona49_30_40.log
176 
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
178 
179 export ELOW=30
180 export EHIGH=40
181 export INU=14
182 export CUTNA49=1
183 export CUTMIPP=1
184 export OUTFILE=nomipp_nona49_30_40.root
185 export LOGFILE=nomipp_nona49_30_40.log
186 
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
188 
189 ############################## 0-120 ###################################
190 
191 export ELOW=0
192 export EHIGH=120
193 export INU=14
194 export CUTNA49=0
195 export CUTMIPP=0
196 export OUTFILE=all_0_120.root
197 export LOGFILE=all_0_120.log
198 
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
200 
201 export ELOW=0
202 export EHIGH=120
203 export INU=14
204 export CUTNA49=0
205 export CUTMIPP=1
206 export OUTFILE=nomipp_0_120.root
207 export LOGFILE=nomipp_0_120.log
208 
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
210 
211 
212 export ELOW=0
213 export EHIGH=120
214 export INU=14
215 export CUTNA49=1
216 export CUTMIPP=0
217 export OUTFILE=nona49_0_120.root
218 export LOGFILE=nona49_0_120.log
219 
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
221 
222 export ELOW=0
223 export EHIGH=120
224 export INU=14
225 export CUTNA49=1
226 export CUTMIPP=1
227 export OUTFILE=nomipp_nona49_0_120.root
228 export LOGFILE=nomipp_nona49_0_120.log
229 
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
231