Skip to content
Snippets Groups Projects
Commit 4a2efde5 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Rename stage process to simulate, reconstruct, analyze

parent 0d4fb4ee
No related branches found
No related tags found
1 merge request!148Rename stage process to simulate, reconstruct, analyze
...@@ -25,7 +25,9 @@ stages: ...@@ -25,7 +25,9 @@ stages:
- initialize - initialize
- compile - compile
- generate - generate
- process - simulate
- reconstruct
- analyze
- collect - collect
- finish - finish
......
...@@ -20,8 +20,8 @@ dis:generate: ...@@ -20,8 +20,8 @@ dis:generate:
script: script:
- bash benchmarks/dis/get.sh --config dis_${EBEAM}x${PBEAM} --ebeam ${EBEAM} --pbeam ${PBEAM} - bash benchmarks/dis/get.sh --config dis_${EBEAM}x${PBEAM} --ebeam ${EBEAM} --pbeam ${PBEAM}
dis:process: dis:simulate:
stage: process stage: simulate
extends: .phy_benchmark extends: .phy_benchmark
needs: ["dis:generate"] needs: ["dis:generate"]
parallel: parallel:
...@@ -42,6 +42,6 @@ dis:process: ...@@ -42,6 +42,6 @@ dis:process:
dis:results: dis:results:
stage: collect stage: collect
needs: ["dis:process"] needs: ["dis:simulate"]
script: script:
- collect_tests.py dis - collect_tests.py dis
...@@ -4,8 +4,8 @@ dvcs:compile: ...@@ -4,8 +4,8 @@ dvcs:compile:
script: script:
- compile_analyses.py dvcs - compile_analyses.py dvcs
dvcs:process: dvcs:simulate:
stage: process stage: simulate
extends: .phy_benchmark extends: .phy_benchmark
tags: tags:
- phy - phy
...@@ -16,7 +16,7 @@ dvcs:process: ...@@ -16,7 +16,7 @@ dvcs:process:
dvcs:results: dvcs:results:
stage: collect stage: collect
needs: ["dvcs:process"] needs: ["dvcs:simulate"]
script: script:
- ls -lrth - ls -lrth
#pip install junitparser #pip install junitparser
......
...@@ -17,8 +17,8 @@ dvmp:generate: ...@@ -17,8 +17,8 @@ dvmp:generate:
--decay muon --decay electron --decay muon --decay electron
--nproc 5 --nproc 5
dvmp:process: dvmp:simulate:
stage: process stage: simulate
extends: .phy_benchmark extends: .phy_benchmark
needs: ["dvmp:generate"] needs: ["dvmp:generate"]
timeout: 2 hour timeout: 2 hour
...@@ -37,6 +37,6 @@ dvmp:process: ...@@ -37,6 +37,6 @@ dvmp:process:
dvmp:results: dvmp:results:
stage: collect stage: collect
needs: ["dvmp:process"] needs: ["dvmp:simulate"]
script: script:
- collect_tests.py dvmp - collect_tests.py dvmp
#!/bin/bash
source $(dirname $0)/common.sh $*
# Analyze
root -l -b -q "benchmarks/single/analysis/analyze.cxx+(\"${JUGGLER_REC_FILE}\")"
if [[ "$?" -ne "0" ]] ; then
echo "ERROR analysis failed"
exit 1
fi
if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then
export JUGGLER_N_EVENTS=100
fi
export JUGGLER_FILE_NAME_TAG="${1:-e-_1GeV_45to135deg}"
export JUGGLER_GEN_FILE="benchmarks/single/${JUGGLER_FILE_NAME_TAG}.steer"
export JUGGLER_SIM_FILE="sim_output/sim_${JUGGLER_FILE_NAME_TAG}.edm4hep.root"
export JUGGLER_REC_FILE="sim_output/rec_${JUGGLER_FILE_NAME_TAG}.root"
...@@ -4,10 +4,26 @@ single:compile: ...@@ -4,10 +4,26 @@ single:compile:
script: script:
- compile_analyses.py single - compile_analyses.py single
single:process: single:simulate:
extends: .phy_benchmark extends: .phy_benchmark
timeout: 24 hours timeout: 2 hours
stage: process stage: simulate
needs: ["common:detector", "single:compile"] needs: ["common:detector"]
script: script:
- bash benchmarks/single/single.sh e-_1GeV_45to135deg - bash benchmarks/single/simulate.sh e-_1GeV_45to135deg
single:reconstruct:
extends: .phy_benchmark
timeout: 2 hours
stage: reconstruct
needs: ["single:simulate"]
script:
- bash benchmarks/single/reconstruct.sh e-_1GeV_45to135deg
single:analyze:
extends: .phy_benchmark
timeout: 2 hours
stage: analyze
needs: ["single:reconstruct", "single:compile"]
script:
- bash benchmarks/single/analyze.sh e-_1GeV_45to135deg
#!/bin/bash
source $(dirname $0)/common.sh $*
# Reconstruct
for rec in options/*.py ; do
unset tag
[[ $(basename ${rec} .py) =~ (.*)\.(.*) ]] && tag=".${BASH_REMATCH[2]}"
JUGGLER_REC_FILE=${JUGGLER_REC_FILE/.root/${tag:-}.root} \
gaudirun.py ${JUGGLER_GAUDI_OPTIONS:-} ${rec}
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler"
exit 1
fi
done
#!/bin/bash #!/bin/bash
if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then source $(dirname $0)/common.sh $*
export JUGGLER_N_EVENTS=100
fi
export JUGGLER_FILE_NAME_TAG="${1:-e-_1GeV_45to135deg}"
export JUGGLER_GEN_FILE="benchmarks/single/${JUGGLER_FILE_NAME_TAG}.steer"
export JUGGLER_SIM_FILE="sim_${JUGGLER_FILE_NAME_TAG}.edm4hep.root"
export JUGGLER_REC_FILE="rec_${JUGGLER_FILE_NAME_TAG}.root"
# Simulate # Simulate
ddsim --runType run \ ddsim --runType run \
...@@ -23,22 +16,3 @@ if [[ "$?" -ne "0" ]] ; then ...@@ -23,22 +16,3 @@ if [[ "$?" -ne "0" ]] ; then
echo "ERROR running ddsim" echo "ERROR running ddsim"
exit 1 exit 1
fi fi
# Reconstruct
for rec in options/*.py ; do
unset tag
[[ $(basename ${rec} .py) =~ (.*)\.(.*) ]] && tag=".${BASH_REMATCH[2]}"
JUGGLER_REC_FILE=${JUGGLER_REC_FILE/.root/${tag:-}.root} \
gaudirun.py ${rec}
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler"
exit 1
fi
done
# Analysis
root -l -b -q "benchmarks/single/analysis/analyze.cxx+(\"${JUGGLER_REC_FILE}\")"
if [[ "$?" -ne "0" ]] ; then
echo "ERROR analysis failed"
exit 1
fi
...@@ -4,8 +4,8 @@ synchrotron:compile: ...@@ -4,8 +4,8 @@ synchrotron:compile:
script: script:
- compile_analyses.py synchrotron - compile_analyses.py synchrotron
synchrotron:process: synchrotron:simulate:
stage: process stage: simulate
extends: .phy_benchmark extends: .phy_benchmark
tags: tags:
- s3 - s3
...@@ -15,6 +15,6 @@ synchrotron:process: ...@@ -15,6 +15,6 @@ synchrotron:process:
synchrotron:results: synchrotron:results:
stage: collect stage: collect
needs: ["synchrotron:process"] needs: ["synchrotron:simulate"]
script: script:
- ls -lrth - ls -lrth
...@@ -4,8 +4,8 @@ tcs:compile: ...@@ -4,8 +4,8 @@ tcs:compile:
script: script:
- compile_analyses.py tcs - compile_analyses.py tcs
tcs:process: tcs:simulate:
stage: process stage: simulate
extends: .phy_benchmark extends: .phy_benchmark
tags: tags:
- phy - phy
...@@ -27,6 +27,6 @@ tcs:process: ...@@ -27,6 +27,6 @@ tcs:process:
tcs:results: tcs:results:
stage: collect stage: collect
needs: ["tcs:process"] needs: ["tcs:simulate"]
script: script:
- ls -lrth - ls -lrth
...@@ -4,8 +4,8 @@ u_omega:compile: ...@@ -4,8 +4,8 @@ u_omega:compile:
script: script:
- compile_analyses.py u_omega - compile_analyses.py u_omega
u_omega:process: u_omega:simulate:
stage: process stage: simulate
extends: .phy_benchmark extends: .phy_benchmark
tags: tags:
- phy - phy
...@@ -16,6 +16,6 @@ u_omega:process: ...@@ -16,6 +16,6 @@ u_omega:process:
u_omega:results: u_omega:results:
stage: collect stage: collect
needs: ["u_omega:process"] needs: ["u_omega:simulate"]
script: script:
- ls -lrth - ls -lrth
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment