Back to home page

EIC code displayed by LXR

 
 

    


Warning, /physics_benchmarks/benchmarks/Jets-HF/jets/Snakefile is written in an unsupported language. File is not indexed.

0001 rule jets_compile:
0002     input:
0003         ROOT_BUILD_DIR_PREFIX + "benchmarks/Inclusive/dis/analysis/jets_cxx.so",
0004 
0005 
0006 rule jets_generate_config:
0007     input:
0008         data="sim_output/{DETECTOR_CONFIG}/pythia8NCDIS_{EBEAM}x{PBEAM}_minQ2={MINQ2}_beamEffects_xAngle=-0.025_hiDiv_1.edm4eic.root",
0009     output:
0010         config="results/{DETECTOR_CONFIG}/jets/{EBEAM}on{PBEAM}/minQ2={MINQ2}_config.json",
0011     shell: """
0012 cat > {output.config} <<EOF
0013 {{
0014   "rec_file": "{input.data}",
0015   "detector": "{wildcards.DETECTOR_CONFIG}",
0016   "output_prefix": "$(dirname "{output.config}")/dis_{wildcards.EBEAM}x{wildcards.PBEAM}_minQ2={wildcards.MINQ2}",
0017   "results_path": "$(dirname "{output.config}")",
0018   "ebeam": {wildcards.EBEAM},
0019   "pbeam": {wildcards.PBEAM},
0020   "minq2": {wildcards.MINQ2},
0021   "plot_tag": "dis_{wildcards.EBEAM}x{wildcards.PBEAM}_minQ2={wildcards.MINQ2}",
0022   "test_tag": "dis_{wildcards.EBEAM}x{wildcards.PBEAM}_minQ2={wildcards.MINQ2}"
0023 }}
0024 EOF
0025 """
0026 
0027 
0028 rule jets_analysis_jets:
0029     input:
0030         script="benchmarks/Jets-HF/jets/analysis/jets.cxx",
0031         script_compiled=ROOT_BUILD_DIR_PREFIX + "benchmarks/Jets-HF/jets/analysis/jets_cxx.so",
0032         data="sim_output/{DETECTOR_CONFIG}/pythia8NCDIS_{EBEAM}x{PBEAM}_minQ2={MINQ2}_beamEffects_xAngle=-0.025_hiDiv_1.edm4eic.root",
0033         config="results/{DETECTOR_CONFIG}/jets/{EBEAM}on{PBEAM}/minQ2={MINQ2}_config.json",
0034     output:
0035         results_path=directory("results/{DETECTOR_CONFIG}/jets/{EBEAM}on{PBEAM}/minQ2={MINQ2}"),
0036     wildcard_constraints:
0037         EBEAM="\d+",
0038         PBEAM="\d+",
0039         MINQ2="\d+",
0040     shell: """
0041 mkdir {output.results_path}
0042 root -l -b -q '{input.script}+("{input.config}")'
0043 """