Skip to content
Snippets Groups Projects
Commit 8982daa4 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Added script to download event generator samples. TODO: still need to generalize/polish the script

parent 3a76f815
No related branches found
No related tags found
1 merge request!2DVMP work
......@@ -7,7 +7,6 @@ default:
expire_in: 3 days
stages:
- init
- generate
- process
- analyze
......
dis:dummy_test:
stage: analyze
needs: ["detector"]
timeout: 1 hours
script:
- dis/dummy_test.sh
dis:dummy_test2:
stage: analyze
needs: ["detector"]
timeout: 1 hours
script:
- dis/dummy_test2.sh
dis:dummy_fail_test:
stage: analyze
needs: ["detector"]
timeout: 1 hours
allow_failure: true
script:
......
dummy:dummy_test:
stage: analyze
needs: ["detector"]
timeout: 1 hours
script:
- dummy/dummy_test.sh
dummy:dummy_test2:
stage: analyze
needs: ["detector"]
timeout: 1 hours
script:
- dummy/dummy_test2.sh
dummy:dummy_fail_test:
stage: analyze
needs: ["detector"]
timeout: 1 hours
allow_failure: true
script:
......
#!/bin/bash
## Init the environment
source config/env.sh
## Generates different configurations from the master configuration
## for both electron and muon decay channels
echo "Download generator artifacts for one or more of the physics processes"
PROCS=()
BRANCH="dvmp"
while [ $# -gt 0 ]
do
key="$1"
case $key in
-p|--process)
PROCS+=("$2")
shift # past argument
shift # past value
;;
--branch)
BRANCH="$2"
shift # past argument
shift # past value
;;
*) # unknown option
echo "unknown option"
exit 1
;;
esac
done
if [ ${#PROCS[@]} -eq 0 ]; then
echo "ERROR: need one or more processes: -p <process name> "
exit 1
fi
for proc in ${PROCS[@]}; do
echo "Dowloading artifacts for $proc (branch: $BRANCH)"
wget https://eicweb.phy.anl.gov/EIC/benchmarks/physics_benchmarks/-/jobs/artifacts/$BRANCH/download?job=${proc}:jpsi_central:generate -O results.zip
unzip -u results.zip
rm results.zip
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment