Skip to content

Commit

Permalink
add bench:lfhcal_campaigns
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Oct 7, 2024
1 parent 86f1d34 commit e002b39
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/lfhcal/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ LFHCAL_ETA_BINS = [1.2,1.5,2,2.5,3,3.5]

rule lfhcal:
input:
expand(
lambda wildcards: expand(
[
"{{CAMPAIGN}}/Final_Results/{PARTICLE}/mom/lfhcal_mom_resol_{PARTICLE}_{ETA_BIN}.png",
"{{CAMPAIGN}}/Final_Results/{PARTICLE}/mom/lfhcal_mom_resol_{PARTICLE}_{ETA_BIN}.root",
],
ETA_BIN=[f"{eta_min:.1f}_eta_{eta_max:.1f}" for eta_min, eta_max in zip(LFHCAL_ETA_BINS[:-1], LFHCAL_ETA_BINS[1:])],
PARTICLE=["neutron", "pi-"],
PARTICLE=["neutron", "pi-"] if wildcards.CAMPAIGN == "local" else ["pi-"],
)
output:
directory("results/lfhcal/{CAMPAIGN}/")
Expand Down
18 changes: 18 additions & 0 deletions benchmarks/lfhcal/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,21 @@ collect_results:lfhcal:
- mv results{,_save}/ # move results directory out of the way to preserve it
- snakemake --cores 1 --delete-all-output lfhcal_local
- mv results{_save,}/

bench:lfhcal_campaigns:
extends: .det_benchmark
stage: benchmarks
#when: manual
script:
- snakemake --cores 1 lfhcal_campaigns

collect_results:lfhcal_campaigns:
extends: .det_benchmark
stage: collect
needs:
- "bench:lfhcal_campaigns"
script:
- ls -lrht
- mv results{,_save}/ # move results directory out of the way to preserve it
- snakemake --cores 1 --delete-all-output lfhcal_campaigns
- mv results{_save,}/

0 comments on commit e002b39

Please sign in to comment.