-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun-qa-many.sh
More file actions
executable file
·47 lines (33 loc) · 1.05 KB
/
run-qa-many.sh
File metadata and controls
executable file
·47 lines (33 loc) · 1.05 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/bash
rm -f stop
rm -f ./AO2D.root
#rm -rf AnalysisResults
mkdir -p AnalysisResults
#AO2DLIST=AO2D_list-LHC24l7.txt
#AO2DLIST=AO2D_list-LHC22p.txt
#AO2DLIST=AO2D_list-LHC23h-apass4_skimmed.txt
#AO2DLIST=AO2D_list-LHC23zk.txt
AO2DLIST=AO2D_list-LHC24am.txt
#AO2DLIST=AO2D_list-LHC24aq-apass1_muon_matching.txt
NFILES=$(cat "${AO2DLIST}" | wc -l)
I=1
while [ $I -le $NFILES ]; do
if [ -e stop ]; then
break;
fi
if [ -e AnalysisResults/AnalysisResults-${I}.root ]; then
I=$((I+1))
continue
fi
AO2DFILE=$(cat "${AO2DLIST}" | head -n $I | tail -n 1)
echo "I=${I} => alien_cp \"alien://${AO2DFILE}\" file://./AO2D.root"
rm -f ./AO2D.root && alien_cp "alien://${AO2DFILE}" file://./AO2D.root
echo "I=${I} => processing \"${AO2DFILE}\" ..."
rm -f AnalysisResults.root && ./run-qa.sh >& AnalysisResults/log-${I}.txt
gzip -f AnalysisResults/log-${I}.txt
echo "... done."
cp AnalysisResults.root AnalysisResults/AnalysisResults-${I}.root
I=$((I+1))
#break;
#rm -f ./AO2D.root
done