Skip to content
Snippets Groups Projects
Select Git revision
  • b76f32aa9c8138143fd94c8f2935b01d720e79b5
  • master default protected
  • npsim
  • pr/lowQ2_benchmark
  • pr/diffractive_vm_campaign
  • status-no-github-sha
  • this-epic.sh
  • pr/u_channel_sweger
  • pi0_and_photon
  • revert-49e6bc61
  • neutron_in_insert
  • sebouh137-patch-1
  • physics_benchmarks
  • pr/dis_snakemake
  • pr/kinematics_correlations_ak_num
  • pdf-report
  • master-patch-9d2b
  • TA-work-branch2
  • TA-work-branch
  • truth_reconstruction
  • tooba-master-patch-35679
21 results

Snakefile

Blame
  • user avatar
    Dmitry Kalinkin authored
    b76f32aa
    History
    Snakefile 982 B
    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 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"
    include: "benchmarks/dis/Snakefile"