Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-27 07:02:37

0001 #!/bin/bash
0002 
0003 export PARTICLE=$1
0004 E_file="sim_output/emcal_barrel_energy_scan_points_${PARTICLE}.txt"
0005 
0006 MIN_N_EVENTS=750
0007 if (( $JUGGLER_N_EVENTS < $MIN_N_EVENTS )); then
0008    ORIGINAL_JUGGLER_N_EVENTS=$JUGGLER_N_EVENTS 
0009    export JUGGLER_N_EVENTS=$MIN_N_EVENTS
0010    echo "Setting JUGGLER_N_EVENTS to ${MIN_N_EVENTS}"
0011 fi
0012 #0.5 1 2 3 4 7 15 20
0013 for E in 0.5 1 2 5 10
0014 do
0015    export E_START="$E"
0016    export E_END="$E"   
0017    bash benchmarks/barrel_ecal/run_emcal_barrel_particles.sh "${PARTICLE}" && echo "$E" >> "$E_file" || exit 1
0018    path_rootfiles="sim_output/energy_scan/${E}/"
0019    path_plots="results/energy_scan/${E}/"
0020    mkdir -p "$path_rootfiles"
0021    mkdir -p "$path_plots"
0022    ls -lthaR sim_output/
0023    mv "sim_output/sim_emcal_barrel_${PARTICLE}.edm4hep.root" "$path_rootfiles"
0024 done
0025 
0026 export JUGGLER_N_EVENTS=$ORIGINAL_JUGGLER_N_EVENTS
0027 
0028 ls -lthaR sim_output
0029 cat "$E_file"
0030 
0031 exit 0