-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnakefile
48 lines (40 loc) · 1.35 KB
/
Snakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
ROOT_BUILD_DIR = os.getenv("ROOT_BUILD_DIR", None)
if ROOT_BUILD_DIR is not None:
ROOT_BUILD_DIR_PREFIX = f"{ROOT_BUILD_DIR.rstrip('/')}/{os.getcwd().lstrip('/')}/"
else:
ROOT_BUILD_DIR_PREFIX = ""
rule compile_analysis:
input:
"{path}/{filename}.cxx",
output:
ROOT_BUILD_DIR_PREFIX + "{path}/{filename}_cxx.d",
ROOT_BUILD_DIR_PREFIX + "{path}/{filename}_cxx.so",
ROOT_BUILD_DIR_PREFIX + "{path}/{filename}_cxx_ACLiC_dict_rdict.pcm",
shell:
"""
root -l -b -q -e '.L {input}+'
"""
rule fetch_epic:
output:
filepath="EPIC/{PATH}"
cache: True
shell: """
xrdcp root://dtn-eic.jlab.org//work/eic2/{output.filepath} {output.filepath}
"""
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/Exclusive-Diffraction-Tagging/demp/Snakefile"
include: "benchmarks/Exclusive-Diffraction-Tagging/diffractive_vm/Snakefile"
include: "benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/Snakefile"
include: "benchmarks/Jets-HF/jets/Snakefile"
include: "benchmarks/Inclusive/dis/Snakefile"