Skip to content

Commit

Permalink
Snakefile: add warmup job to avoid parallel gdml downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Feb 14, 2024
1 parent 3869b54 commit 46b86fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,17 @@ rule compile_analysis:
root -l -b -q -e '.L {input}+'
"""

rule warmup_run:
output:
"warmup/{DETECTOR_CONFIG}.edm4hep.root",
message: "Ensuring that calibrations/fieldmaps are available for {wildcards.DETECTOR_CONFIG}"
shell: """
ddsim \
--runType batch \
--numberOfEvents 1 \
--compactFile "$DETECTOR_PATH/{wildcards.DETECTOR_CONFIG}.xml" \
--outputFile "{output}" \
--enableGun
"""

include: "benchmarks/diffractive_vm/Snakefile"
1 change: 1 addition & 0 deletions benchmarks/diffractive_vm/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ln {input} {output}

rule diffractive_vm_sim:
input:
"warmup/{DETECTOR_CONFIG}.edm4hep.root",
"input/diffractive_vm/sartre_{PARTICLE}_{INDEX}.hepmc",
output:
"sim/{DETECTOR_CONFIG}/sartre_{PARTICLE}_{INDEX}.edm4hep.root",
Expand Down

0 comments on commit 46b86fc

Please sign in to comment.