-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubmit_Ana.sh
executable file
·32 lines (30 loc) · 1.23 KB
/
submit_Ana.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh
count=0
for filename in $(cat fileLists/AnaList); do
count2=$(($count/100))
if [ -f Out/$filename.picoNpe.root ]; then
filesize=$(wc -c "Out/$filename.picoNpe.hists.root" | cut -f 1 -d ' ')
if [ $filesize -gt 300 ]; then
if [ $(($count%100)) -eq "0" ]; then
cp ./run.csh ./run_Ana_$count2.csh
echo "Make run_Ana_$count2.csh"
fi
echo "root4star -l -b <<EOF">>run_Ana_$count2.csh
echo ".x runPicoNpeAnaMaker.C(\"$filename\")">>run_Ana_$count2.csh
echo "EOF">>run_Ana_$count2.csh
if [ $(($count%100)) -eq "99" ]; then
echo "Submit run_Ana_$count2.csh"
#./run_Ana_$count2.csh
qsub -hard -l h_vmem=4G -l scratchfree=500,gscratchio=1,projectio=1 -o Log/job_Ana_$count2.log -e Log/job_Ana_$count2.err run_Ana_$count2.csh
mv run_Ana_$count2.csh script/.
fi
count=$(($count+1))
echo $count
#else
#echo "no input file: Out/$filename.picoNpe.root"
fi
fi
done
#./run_Ana_$count2.csh
qsub -hard -l h_vmem=4G -l scratchfree=500,gscratchio=1,projectio=1 -o Log/job_Ana_$count2.log -e Log/job_Ana_$count2.err run_Ana_$count2.csh
mv run_Ana_$count2.csh script/.