Skip to content

Commit

Permalink
add benchmarks/material_scan
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl committed Apr 17, 2024
1 parent 2e49df6 commit 3991a9b
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 282 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ include:
- local: 'benchmarks/barrel_hcal/config.yml'
- local: 'benchmarks/zdc/config.yml'
- local: 'benchmarks/material_maps/config.yml'
- local: 'benchmarks/material_scan/config.yml'
- local: 'benchmarks/pid/config.yml'
- local: 'benchmarks/timing/config.yml'
- local: 'benchmarks/b0_tracker/config.yml'
- local: 'benchmarks/others/config.yml'

deploy_results:
stage: deploy
Expand Down
1 change: 1 addition & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ else:
include: "benchmarks/backgrounds/Snakefile"
include: "benchmarks/barrel_ecal/Snakefile"
include: "benchmarks/ecal_gaps/Snakefile"
include: "benchmarks/material_scan/Snakefile"


rule warmup_run:
Expand Down
21 changes: 21 additions & 0 deletions benchmarks/material_scan/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
rule material_scan_fetch_script:
output:
"material_scan.py",
shell: """
curl -L --output {output} https://github.com/eic/epic/raw/main/scripts/subdetector_tests/material_scan.py
"""

rule material_scan:
input:
script="material_scan.py",
output:
"{DETECTOR_CONFIG}/results/material_scan.png",
"{DETECTOR_CONFIG}/results/material_scan_agg.csv",
"{DETECTOR_CONFIG}/results/material_scan_details.pdf",
log:
"{DETECTOR_CONFIG}/results/material_scan.log",
shadow: "full" # avoid putting calibrations/fieldmaps to results
shell: """
cd {wildcards.DETECTOR_CONFIG}/results
python ../../{input.script} $DETECTOR_PATH/{wildcards.DETECTOR_CONFIG}.xml
"""
6 changes: 6 additions & 0 deletions benchmarks/material_scan/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bench:material_scan:
extends: .det_benchmark
stage: benchmarks
script:
- snakemake --cores 1 epic_craterlake/results/material_scan_details.pdf
- mv epic_craterlake/results ./
Empty file removed benchmarks/others/.gitignore
Empty file.
75 changes: 0 additions & 75 deletions benchmarks/others/config.yml

This file was deleted.

132 changes: 0 additions & 132 deletions benchmarks/others/materialScanEta.cxx

This file was deleted.

74 changes: 0 additions & 74 deletions benchmarks/others/materialScanEtaPhi.cxx

This file was deleted.

0 comments on commit 3991a9b

Please sign in to comment.