-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_sim_brycecanyon_all.sh
105 lines (76 loc) · 3.81 KB
/
run_sim_brycecanyon_all.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
#If you want to run EICRecon only, comment npsim part and uncomment soft links
source /opt/detector/setup.sh
numevents=1000
particle="e-"
mkdir -p "output"
#Run 1
echo "Running simulation 1!!!"
#Simulation
npsim --compactFile $DETECTOR_PATH/epic_brycecanyon.xml --numberOfEvents ${numevents} --inputFiles input/gen_${particle}_1GeV_theta_2.83deg.hepmc --outputFile output.edm4hep.root | tee dd4hep_out.dat
#ln -s output/output.gen_${particle}_1GeV_theta_2.83deg.edm4hep.root output.edm4hep.root
#Reconstruction: Full output, scaled
eicrecon \
-Ppodio:output_file=eicrecon_out.root \
-Pjana:nevents=${numevents} \
-Pdd4hep:xml_files=epic_brycecanyon.xml \
output.edm4hep.root | tee eicrecon_out.dat
#unlink output.edm4hep.root
mv output.edm4hep.root output/output.gen_${particle}_1GeV_theta_2.83deg.edm4hep.root
mv eicrecon_out.root output/eicrecon_out.gen_${particle}_1GeV_theta_2.83deg.root
#Run 2
echo "Running simulation 2!!!"
#Simulation
npsim --compactFile $DETECTOR_PATH/epic_brycecanyon.xml --numberOfEvents ${numevents} --inputFiles input/gen_${particle}_1GeV_theta_3.12deg.hepmc --outputFile output.edm4hep.root | tee dd4hep_out.dat
#ln -s output/output.gen_${particle}_1GeV_theta_3.12deg.edm4hep.root output.edm4hep.root
#Reconstruction: Full output, scaled
eicrecon \
-Ppodio:output_file=eicrecon_out.root \
-Pjana:nevents=${numevents} \
-Pdd4hep:xml_files=epic_brycecanyon.xml \
output.edm4hep.root | tee eicrecon_out.dat
#unlink output.edm4hep.root
mv output.edm4hep.root output/output.gen_${particle}_1GeV_theta_3.12deg.edm4hep.root
mv eicrecon_out.root output/eicrecon_out.gen_${particle}_1GeV_theta_3.12deg.root
#Run 3
echo "Running simulation 3!!!"
#Simulation
npsim --compactFile $DETECTOR_PATH/epic_brycecanyon.xml --numberOfEvents ${numevents} --inputFiles input/gen_${particle}_20GeV_theta_2.83deg.hepmc --outputFile output.edm4hep.root | tee dd4hep_out.dat
#ln -s output/output.gen_${particle}_20GeV_theta_2.83deg.edm4hep.root output.edm4hep.root
#Reconstruction: Full output, scaled
eicrecon \
-Ppodio:output_file=eicrecon_out.root \
-Pjana:nevents=${numevents} \
-Pdd4hep:xml_files=epic_brycecanyon.xml \
output.edm4hep.root | tee eicrecon_out.dat
#unlink output.edm4hep.root
mv output.edm4hep.root output/output.gen_${particle}_20GeV_theta_2.83deg.edm4hep.root
mv eicrecon_out.root output/eicrecon_out.gen_${particle}_20GeV_theta_2.83deg.root
#Run 4
echo "Running simulation 4!!!"
#Simulation
npsim --compactFile $DETECTOR_PATH/epic_brycecanyon.xml --numberOfEvents ${numevents} --inputFiles input/gen_${particle}_20GeV_theta_3.12deg.hepmc --outputFile output.edm4hep.root | tee dd4hep_out.dat
#ln -s output/output.gen_${particle}_20GeV_theta_3.12deg.edm4hep.root output.edm4hep.root
#Reconstruction: Full output, scaled
eicrecon \
-Ppodio:output_file=eicrecon_out.root \
-Pjana:nevents=${numevents} \
-Pdd4hep:xml_files=epic_brycecanyon.xml \
output.edm4hep.root | tee eicrecon_out.dat
#unlink output.edm4hep.root
mv output.edm4hep.root output/output.gen_${particle}_20GeV_theta_3.12deg.edm4hep.root
mv eicrecon_out.root output/eicrecon_out.gen_${particle}_20GeV_theta_3.12deg.root
#Run 5
echo "Running simulation 5!!!"
#Simulation
npsim --compactFile $DETECTOR_PATH/epic_brycecanyon.xml --numberOfEvents ${numevents} --inputFiles input/gen_${particle}_100GeV_theta_2.83deg.hepmc --outputFile output.edm4hep.root | tee dd4hep_out.dat
#ln -s output/output.gen_${particle}_100GeV_theta_2.83deg.edm4hep.root output.edm4hep.root
#Reconstruction: Full output, scaled
eicrecon \
-Ppodio:output_file=eicrecon_out.root \
-Pjana:nevents=${numevents} \
-Pdd4hep:xml_files=epic_brycecanyon.xml \
output.edm4hep.root | tee eicrecon_out.dat
#unlink output.edm4hep.root
mv output.edm4hep.root output/output.gen_${particle}_100GeV_theta_2.83deg.edm4hep.root
mv eicrecon_out.root output/eicrecon_out.gen_${particle}_100GeV_theta_2.83deg.root