File indexing completed on 2024-09-27 07:02:37
0001
0002
0003 export PARTICLE=$1
0004 shift
0005
0006 E_file="sim_output/hcal_barrel_energy_scan_points_${PARTICLE}_${CI_JOB_ID}.txt"
0007
0008 if [ $
0009 E_VALUES=("$@")
0010 else
0011 E_VALUES=(0.25 0.5 1 2 3 4 7 15 20)
0012 fi
0013
0014 for E in ${E_VALUES[@]}
0015 do
0016 export E_START="$E"
0017 export E_END="$E"
0018 export JUGGLER_FILE_NAME_TAG=hcal_barrel_${PARTICLE}_${E}
0019 bash benchmarks/barrel_hcal/run_hcal_barrel_particles.sh "${PARTICLE}" && echo "$E" >> "$E_file" || exit 1
0020 path_rootfiles="sim_output/energy_scan/${E}/"
0021 path_plots="results/energy_scan/${E}/"
0022 mkdir -p "$path_rootfiles"
0023 mkdir -p "$path_plots"
0024 ls -lthaR sim_output/
0025 mv "sim_output/sim_${JUGGLER_FILE_NAME_TAG}.edm4hep.root" "$path_rootfiles/sim_hcal_barrel_${PARTICLE}.edm4hep.root"
0026 done
0027
0028 ls -lthaR sim_output
0029 cat "$E_file"
0030
0031 exit 0