Skip to content
Snippets Groups Projects
Commit 9ec4f981 authored by Maria Zurek's avatar Maria Zurek
Browse files

Add script to run energy scan

parent 8e1254b6
Branches
Tags
No related merge requests found
This commit is part of merge request !17. Comments created here will be created in the context of that merge request.
......@@ -9,6 +9,7 @@ sim:emcal_barrel_electrons:
stage: simulate
script:
- bash benchmarks/barrel_ecal/run_emcal_barrel_electrons.sh
- bash benchmarks/barrel_ecal/run_emcal_barrel_energy_scan.sh
bench:emcal_barrel_pions:
extends: .det_benchmark
......@@ -28,7 +29,6 @@ bench:emcal_barrel_electrons:
- rootls -t sim_output/sim_emcal_barrel_uniform_electrons.root
- root -b -q benchmarks/barrel_ecal/scripts/emcal_barrel_electrons_analysis.cxx+
collect_results:barrel_ecal:
extends: .det_benchmark
stage: collect
......
......@@ -8,7 +8,6 @@ if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then
export JUGGLER_N_EVENTS=1000
fi
if [[ ! -n "${E_start}" ]] ; then
export E_start=5.0
fi
......@@ -16,8 +15,7 @@ fi
if [[ ! -n "${E_end}" ]] ; then
export E_end=5.0
fi
export JUGGLER_FILE_NAME_TAG="emcal_barrel_uniform_electrons"
export JUGGLER_FILE_NAME_TAG="emcal_barrel_uniform_electrons_${E_start}_${E_end}"
export JUGGLER_GEN_FILE="${JUGGLER_FILE_NAME_TAG}.hepmc"
export JUGGLER_SIM_FILE="sim_${JUGGLER_FILE_NAME_TAG}.root"
......
#!/bin/bash
E_FILE="emcal_barrel_energy_scan_points.txt"
for E in {1..20}
do
export E_start="$E"
export E_end="$E"
./run_emcal_barrel_electrons.sh && echo "$E" >> "$E_FILE"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment