Skip to content

Commit

Permalink
Update Snakefile to refer to simulate.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zsweger authored May 17, 2024
1 parent a405c87 commit 7b3541c
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions benchmarks/u_rho/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,7 @@ rule uchannelrho_simulate:
shell:
"""
echo "Simulating detector response!"
if [ -f {input} ]; then
echo "ERROR: Input simulation file does {input} not exist."
else
echo "GOOD: Input simulation file {input} exists!"
fi
# Simulate
ddsim --runType batch \
-v WARNING \
--numberOfEvents {params.N_EVENTS} \
--part.minimalKineticEnergy 100*GeV \
--filter.tracker edep0 \
--compactFile ${DETECTOR_PATH}/${DETECTOR_CONFIG}.xml \
--inputFiles {input} \
--outputFile {output}
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running ddsim"
exit 1
fi
bash benchmarks/u_rho/simulate.sh {input} {output} {params.N_EVENTS}
"""


Expand Down

0 comments on commit 7b3541c

Please sign in to comment.