-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·38 lines (34 loc) · 909 Bytes
/
test.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
33
34
35
36
37
38
#! /bin/zsh
cd /home/apricot/Desktop/HPGeEfficiency/
# 调整参数
# python3 adPara.py $i
# Geant4模拟
cd build
make
# for j in {18..20}
for j in 18
do
./exampleB1 run${j}55.mac > log.txt
rm log.txt
root -l -q 'toHis.cpp'
mv AnaEx01.root 55AnaEx01.root
./exampleB1 run${j}57.mac > log.txt
rm log.txt
root -l -q 'toHis.cpp'
mv AnaEx01.root 57AnaEx01.root
./exampleB1 run${j}58.mac > log.txt
rm log.txt
root -l -q 'toHis.cpp'
mv AnaEx01.root 58AnaEx01.root
root -l -q 'haddhis.cc'
cp AnaEx01.root ../../gamma_ana/sim_root2407/${j}AnaEx01.root
mv AnaEx01.root ../rootfile/${j}AnaEx01_50.root
done
# 生成效率数据
cd ../../gamma_ana
python3 ./src/sim_rundemo.py 50
python3 ./src/plot_compare_demo.py 50
# 存储数据
rm ./sim_root2407/*AnaEx01.root
cp ./sim_root2407/*.txt ../HPGeEfficiency/simulatedEffdata/
# rm -rf ./sim_root2407/*.txt