-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript
More file actions
executable file
·56 lines (41 loc) · 957 Bytes
/
Copy pathscript
File metadata and controls
executable file
·56 lines (41 loc) · 957 Bytes
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
48
49
50
51
52
53
54
#!/bin/bash
export PATHTODATA=/eos/cms/store/group/dpg_mtd/comm_mtd/TB/MTDTB_T10_May2018/raw/DataTree/
export CFG=cfg/MTDTB_T10_May2018/
export DIRDATA=~/public/TestBeamProg/Pd/SmartAnalysisDcr/
export DIRAN=~/public/H4Analysis
for((j=0;j<5;j=$(($j+1)))); do
if [ $j -eq 0 ]; then
export start=142
export end=154
fi
if [ $j -eq 1 ]; then
export start=446
export end=454
fi
if [ $j -eq 2 ]; then
export start=483
export end=489
fi
if [ $j -eq 3 ]; then
export start=553
export end=554
fi
if [ $j -eq 4 ]; then
export start=515
export end=518
fi
for((i=$start;i<=$end;i=$(($i+1)))); do
sed -i 's/originValues [0-9]*/originValues '11$i'/g' cfg/MTDTB_T10_May2018/conf$j
./bin/H4Reco.exe cfg/MTDTB_T10_May2018/conf$j 11$i
done
cd $DIRDATA
mkdir $j
mv *.root $j/.
cd $j
hadd $j.root *.root
cd $DIRAN
done
cd $DIRDATA
mv */[0-4].root .
exit 0
case