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
No related branches found
No related tags found
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: ...@@ -9,6 +9,7 @@ sim:emcal_barrel_electrons:
stage: simulate stage: simulate
script: script:
- bash benchmarks/barrel_ecal/run_emcal_barrel_electrons.sh - bash benchmarks/barrel_ecal/run_emcal_barrel_electrons.sh
- bash benchmarks/barrel_ecal/run_emcal_barrel_energy_scan.sh
bench:emcal_barrel_pions: bench:emcal_barrel_pions:
extends: .det_benchmark extends: .det_benchmark
...@@ -27,7 +28,6 @@ bench:emcal_barrel_electrons: ...@@ -27,7 +28,6 @@ bench:emcal_barrel_electrons:
- ls -lrht sim_output/ - ls -lrht sim_output/
- rootls -t sim_output/sim_emcal_barrel_uniform_electrons.root - rootls -t sim_output/sim_emcal_barrel_uniform_electrons.root
- root -b -q benchmarks/barrel_ecal/scripts/emcal_barrel_electrons_analysis.cxx+ - root -b -q benchmarks/barrel_ecal/scripts/emcal_barrel_electrons_analysis.cxx+
collect_results:barrel_ecal: collect_results:barrel_ecal:
extends: .det_benchmark extends: .det_benchmark
......
...@@ -8,7 +8,6 @@ if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then ...@@ -8,7 +8,6 @@ if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then
export JUGGLER_N_EVENTS=1000 export JUGGLER_N_EVENTS=1000
fi fi
if [[ ! -n "${E_start}" ]] ; then if [[ ! -n "${E_start}" ]] ; then
export E_start=5.0 export E_start=5.0
fi fi
...@@ -16,8 +15,7 @@ fi ...@@ -16,8 +15,7 @@ fi
if [[ ! -n "${E_end}" ]] ; then if [[ ! -n "${E_end}" ]] ; then
export E_end=5.0 export E_end=5.0
fi fi
export JUGGLER_FILE_NAME_TAG="emcal_barrel_uniform_electrons_${E_start}_${E_end}"
export JUGGLER_FILE_NAME_TAG="emcal_barrel_uniform_electrons"
export JUGGLER_GEN_FILE="${JUGGLER_FILE_NAME_TAG}.hepmc" export JUGGLER_GEN_FILE="${JUGGLER_FILE_NAME_TAG}.hepmc"
export JUGGLER_SIM_FILE="sim_${JUGGLER_FILE_NAME_TAG}.root" 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