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

New stage compile; new jobs .compile_benchmark, tracking_compile

parent 161f06c0
No related branches found
No related tags found
1 merge request!242EDM4hep: mcparticles -> MCParticles
...@@ -23,6 +23,7 @@ default: ...@@ -23,6 +23,7 @@ default:
stages: stages:
- config - config
- initialize - initialize
- compile
- run - run
- benchmarks1 - benchmarks1
- benchmarks2 - benchmarks2
...@@ -52,6 +53,12 @@ common:detector: ...@@ -52,6 +53,12 @@ common:detector:
- mkdir -p config - mkdir -p config
- print_env.sh - print_env.sh
.compile_benchmark:
needs:
- ["common:detector"]
before_script:
- source .local/bin/env.sh
.rec_benchmark: .rec_benchmark:
needs: needs:
- ["common:detector"] - ["common:detector"]
......
...@@ -70,7 +70,7 @@ if [[ -z "${REC_ONLY}" && -z "${ANALYSIS_ONLY}" ]] ; ...@@ -70,7 +70,7 @@ if [[ -z "${REC_ONLY}" && -z "${ANALYSIS_ONLY}" ]] ;
then then
## generate the input events ## generate the input events
root -b -q "benchmarks/tracking/scripts/gen_central_pions.cxx(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")" root -b -q "benchmarks/tracking/scripts/gen_central_pions.cxx+(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")"
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
echo "ERROR running script" echo "ERROR running script"
exit 1 exit 1
...@@ -106,13 +106,13 @@ fi ...@@ -106,13 +106,13 @@ fi
mkdir -p results/tracking mkdir -p results/tracking
root -b -q "benchmarks/tracking/scripts/rec_central_pions.cxx(\"${JUGGLER_REC_FILE}\")" root -b -q "benchmarks/tracking/scripts/rec_central_pions.cxx+(\"${JUGGLER_REC_FILE}\")"
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
echo "ERROR running root script" echo "ERROR running root script"
exit 1 exit 1
fi fi
root -b -q "benchmarks/tracking/scripts/hits_central_pions.cxx(\"${JUGGLER_SIM_FILE}\")" root -b -q "benchmarks/tracking/scripts/hits_central_pions.cxx+(\"${JUGGLER_SIM_FILE}\")"
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
echo "ERROR running root script" echo "ERROR running root script"
exit 1 exit 1
......
tracking_compile:
extends: .compile_benchmark
stage: compile
script:
- compile_analyses.py --dir scripts tracking
tracking_central_electrons: tracking_central_electrons:
extends: .rec_benchmark extends: .rec_benchmark
stage: run stage: run
......
...@@ -71,7 +71,7 @@ if [[ -z "${REC_ONLY}" && -z "${ANALYSIS_ONLY}" ]] ; ...@@ -71,7 +71,7 @@ if [[ -z "${REC_ONLY}" && -z "${ANALYSIS_ONLY}" ]] ;
then then
## generate the input events ## generate the input events
root -b -q "benchmarks/tracking/scripts/gen_multiple_tracks.cxx(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")" root -b -q "benchmarks/tracking/scripts/gen_multiple_tracks.cxx+(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")"
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
echo "ERROR running script" echo "ERROR running script"
exit 1 exit 1
...@@ -107,13 +107,13 @@ fi ...@@ -107,13 +107,13 @@ fi
mkdir -p results/tracking mkdir -p results/tracking
root -b -q "benchmarks/tracking/scripts/rec_multiple_tracks.cxx(\"${JUGGLER_REC_FILE}\")" root -b -q "benchmarks/tracking/scripts/rec_multiple_tracks.cxx+(\"${JUGGLER_REC_FILE}\")"
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
echo "ERROR running root script" echo "ERROR running root script"
exit 1 exit 1
fi fi
#root -b -q "benchmarks/tracking/scripts/hits_central_electrons.cxx(\"${JUGGLER_SIM_FILE}\")" #root -b -q "benchmarks/tracking/scripts/hits_central_electrons.cxx+(\"${JUGGLER_SIM_FILE}\")"
#if [[ "$?" -ne "0" ]] ; then #if [[ "$?" -ne "0" ]] ; then
# echo "ERROR running root script" # echo "ERROR running root script"
# exit 1 # exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment