Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
reconstruction_benchmarks
Commits
f968df1e
Commit
f968df1e
authored
3 years ago
by
Chao Peng
Browse files
Options
Downloads
Patches
Plain Diff
update bash script for barrel benchmark
parent
849a4172
Branches
Branches containing commit
No related tags found
1 merge request
!84
update bash script for barrel benchmark
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/sampling_ecal/run_emcal_barrel.sh
+23
-17
23 additions, 17 deletions
benchmarks/sampling_ecal/run_emcal_barrel.sh
with
23 additions
and
17 deletions
benchmarks/sampling_ecal/run_emcal_barrel.sh
+
23
−
17
View file @
f968df1e
...
@@ -16,7 +16,7 @@ if [[ ! -n "${CB_EMCAL_NUMEV}" ]] ; then
...
@@ -16,7 +16,7 @@ if [[ ! -n "${CB_EMCAL_NUMEV}" ]] ; then
fi
fi
if
[[
!
-n
"
${
CB_EMCAL_IEV
}
"
]]
;
then
if
[[
!
-n
"
${
CB_EMCAL_IEV
}
"
]]
;
then
export
CB_EMCAL_IEV
=
5
export
CB_EMCAL_IEV
=
"0, 1, 2, 3, 4"
fi
fi
if
[[
!
-n
"
${
CB_EMCAL_ENERGY
}
"
]]
;
then
if
[[
!
-n
"
${
CB_EMCAL_ENERGY
}
"
]]
;
then
...
@@ -37,8 +37,8 @@ echo "CB_EMCAL_NUMEV = ${CB_EMCAL_NUMEV}"
...
@@ -37,8 +37,8 @@ echo "CB_EMCAL_NUMEV = ${CB_EMCAL_NUMEV}"
echo
"CB_EMCAL_COMPACT_PATH =
${
CB_EMCAL_COMPACT_PATH
}
"
echo
"CB_EMCAL_COMPACT_PATH =
${
CB_EMCAL_COMPACT_PATH
}
"
# Generate the input events
# Generate the input events
python benchmarks/sampling_ecal/scripts/gen_particles.py
${
CB_EMCAL_GEN_FILE
}
\
python benchmarks/sampling_ecal/scripts/gen_particles.py
${
CB_EMCAL_GEN_FILE
}
-n
${
CB_EMCAL_NUMEV
}
\
--angmin
9
0
--angmax
9
0
--parray
${
CB_EMCAL_ENERGY
}
--particles
=
"
${
particle
}
"
--angmin
6
0
--angmax
12
0
--parray
${
CB_EMCAL_ENERGY
}
--particles
=
"
${
particle
}
"
if
[[
"
$?
"
-ne
"0"
]]
;
then
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running script: generating input events"
echo
"ERROR running script: generating input events"
exit
1
exit
1
...
@@ -80,20 +80,26 @@ fi
...
@@ -80,20 +80,26 @@ fi
# check required python modules
# check required python modules
python
-m
pip
install
-r
benchmarks/sampling_ecal/requirements.txt
python
-m
pip
install
-r
benchmarks/sampling_ecal/requirements.txt
# Run analysis script
IFS
=
','
read
-ra
ADDR
<<<
"
$CB_EMCAL_IEV
"
python
${
CB_EMCAL_SCRIPT_DIR
}
/draw_cluster_layers.py
\
for
iev
in
"
${
ADDR
[@]
}
"
;
do
${
CB_EMCAL_REC_FILE
}
-e
${
CB_EMCAL_IEV
}
--topo-size
=
1.0
--compact
=
${
CB_EMCAL_COMPACT_PATH
}
-o
results/
${
particle
}
if
[[
$iev
-ge
"
${
CB_EMCAL_NUMEV
}
"
]]
;
then
if
[[
"
$?
"
-ne
"0"
]]
;
then
continue
echo
"ERROR running analysis script: draw_cluster_layers"
fi
exit
1
fi
python
${
CB_EMCAL_SCRIPT_DIR
}
/draw_cluster_layers.py
\
${
CB_EMCAL_REC_FILE
}
-e
iev
--topo-size
=
1.0
--compact
=
${
CB_EMCAL_COMPACT_PATH
}
-o
results/
${
particle
}
python
${
CB_EMCAL_SCRIPT_DIR
}
/draw_cluster.py
\
if
[[
"
$?
"
-ne
"0"
]]
;
then
${
CB_EMCAL_REC_FILE
}
-e
${
CB_EMCAL_IEV
}
--topo-size
=
2.0
--compact
=
${
CB_EMCAL_COMPACT_PATH
}
-o
results/
${
particle
}
echo
"ERROR running analysis script: draw_cluster_layers"
if
[[
"
$?
"
-ne
"0"
]]
;
then
exit
1
echo
"ERROR running analysis script: draw_cluster"
fi
exit
1
fi
python
${
CB_EMCAL_SCRIPT_DIR
}
/draw_cluster.py
\
${
CB_EMCAL_REC_FILE
}
-e
iev
--topo-size
=
2.0
--compact
=
${
CB_EMCAL_COMPACT_PATH
}
-o
results/
${
particle
}
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running analysis script: draw_cluster"
exit
1
fi
done
python
${
CB_EMCAL_SCRIPT_DIR
}
/energy_profile.py
\
python
${
CB_EMCAL_SCRIPT_DIR
}
/energy_profile.py
\
${
CB_EMCAL_REC_FILE
}
--type
=
EM
--energy
=
${
CB_EMCAL_ENERGY
}
-o
results/
${
particle
}
\
${
CB_EMCAL_REC_FILE
}
--type
=
EM
--energy
=
${
CB_EMCAL_ENERGY
}
-o
results/
${
particle
}
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment