Skip to content
Snippets Groups Projects
Commit 123c1d5f authored by Dmitry Kalinkin's avatar Dmitry Kalinkin Committed by Dmitry Kalinkin
Browse files

Snakefile: add warmup job to avoid parallel gdml downloads (#5)

parent a291f2b9
Branches
No related tags found
No related merge requests found
......@@ -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"
......@@ -40,7 +40,8 @@ ln {input} {output}
rule diffractive_vm_sim:
input:
"input/diffractive_vm/sartre_{PARTICLE}_{INDEX}.hepmc",
hepmc="input/diffractive_vm/sartre_{PARTICLE}_{INDEX}.hepmc",
warmup="warmup/{DETECTOR_CONFIG}.edm4hep.root",
output:
"sim/{DETECTOR_CONFIG}/sartre_{PARTICLE}_{INDEX}.edm4hep.root",
params:
......@@ -54,7 +55,7 @@ ddsim \
-v WARNING \
--numberOfEvents {params.N_EVENTS} \
--compactFile $DETECTOR_PATH/{wildcards.DETECTOR_CONFIG}.xml \
--inputFiles {input} \
--inputFiles {input.hepmc} \
--outputFile {output}
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment