Skip to content

Commit

Permalink
Fix Snakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
zsweger authored May 17, 2024
1 parent a3ea2ab commit a405c87
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions benchmarks/u_rho/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@ rule uchannelrho_campaign_raw_get:
"""
echo "Getting afterburned event-generator file"
ln {input} {output}
ls benchmark_output/
ls benchmark_output/*
"""

rule uchannelrho_simulate:
input:
"benchmark_output/rho_10x100_uChannel_Q2of0to10_hiDiv.hepmc3.tree.root",
output:
"benchmark_output/rho_10x100_uChannel_Q2of0to10_hiDiv.hepmc3.tree.detectorsim.root",
params:
N_EVENTS=100
shell:
"""
echo "Simulating detector response!"
source strict-mode.sh
source benchmarks/u_rho/setup.config $*
if [ -f ${JUGGLER_IN_FILE} ]; then
echo "ERROR: Input simulation file does ${JUGGLER_IN_FILE} not exist."
if [ -f {input} ]; then
echo "ERROR: Input simulation file does {input} not exist."
else
echo "GOOD: Input simulation file ${JUGGLER_IN_FILE} exists!"
echo "GOOD: Input simulation file {input} exists!"
fi
# Simulate
ddsim --runType batch \
-v WARNING \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--numberOfEvents {params.N_EVENTS} \
--part.minimalKineticEnergy 100*GeV \
--filter.tracker edep0 \
--compactFile ${DETECTOR_PATH}/${DETECTOR_CONFIG}.xml \
Expand Down

0 comments on commit a405c87

Please sign in to comment.