Warning, /physics_benchmarks/Snakefile is written in an unsupported language. File is not indexed.
0001 ROOT_BUILD_DIR = os.getenv("ROOT_BUILD_DIR", None)
0002
0003 if ROOT_BUILD_DIR is not None:
0004 ROOT_BUILD_DIR_PREFIX = f"{ROOT_BUILD_DIR.rstrip('/')}/{os.getcwd().lstrip('/')}/"
0005 else:
0006 ROOT_BUILD_DIR_PREFIX = ""
0007
0008
0009 rule compile_analysis:
0010 input:
0011 "{path}/{filename}.cxx",
0012 output:
0013 ROOT_BUILD_DIR_PREFIX + "{path}/{filename}_cxx.d",
0014 ROOT_BUILD_DIR_PREFIX + "{path}/{filename}_cxx.so",
0015 ROOT_BUILD_DIR_PREFIX + "{path}/{filename}_cxx_ACLiC_dict_rdict.pcm",
0016 shell:
0017 """
0018 root -l -b -q -e '.L {input}+'
0019 """
0020
0021
0022 rule fetch_epic:
0023 output:
0024 filepath="EPIC/{PATH}"
0025 cache: True
0026 shell: """
0027 xrdcp root://dtn-eic.jlab.org//work/eic2/{output.filepath} {output.filepath}
0028 """
0029
0030
0031 rule warmup_run:
0032 output:
0033 "warmup/{DETECTOR_CONFIG}.edm4hep.root",
0034 message: "Ensuring that calibrations/fieldmaps are available for {wildcards.DETECTOR_CONFIG}"
0035 shell: """
0036 ddsim \
0037 --runType batch \
0038 --numberOfEvents 1 \
0039 --compactFile "$DETECTOR_PATH/{wildcards.DETECTOR_CONFIG}.xml" \
0040 --outputFile "{output}" \
0041 --enableGun
0042 """
0043
0044 include: "benchmarks/Exclusive-Diffraction-Tagging/demp/Snakefile"
0045 include: "benchmarks/Exclusive-Diffraction-Tagging/diffractive_vm/Snakefile"
0046 include: "benchmarks/Exclusive-Diffraction-Tagging/semi_coherent/Snakefile"
0047 include: "benchmarks/Jets-HF/jets/Snakefile"
0048 include: "benchmarks/Inclusive/dis/Snakefile"