-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20323e6
commit 399d2fe
Showing
5 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ Detector Benchmark for single neutron in the ZDC | |
================================================= | ||
|
||
## Overview | ||
This benchmark generates single-neutron events. The neutrons are generated with 100 GeV total momentum; polar angles of 0-6.5 mRad with respect to the proton/ion beam direction, uniform over cosine of the polar angle; and uniform azimuthal angles with respect to the proton/ion beam direction. The benchmark creates acceptance and reconstruction performance plots. | ||
This benchmark generates single-neutron events. The neutrons are generated with 100 GeV total momentum; polar angles of 0-6 mRad with respect to the proton/ion beam direction, uniform over cosine of the polar angle; and uniform azimuthal angles with respect to the proton/ion beam direction. The benchmark creates acceptance and reconstruction performance plots. | ||
|
||
## Contacts | ||
[Barak Schmookler]([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
sim:zdc_neutron: | ||
extends: .det_benchmark | ||
stage: simulate | ||
script: | ||
- snakemake --cache --cores 1 sim_output/zdc_neutron/epic_craterlake/fwd_neutrons.edm4eic.root | ||
retry: | ||
max: 2 | ||
when: | ||
- runner_system_failure | ||
|
||
bench:zdc_neutron: | ||
extends: .det_benchmark | ||
stage: benchmarks | ||
needs: | ||
- ["sim:zdc_neutron"] | ||
script: | ||
- snakemake --cores 1 results/zdc_neutron/epic_craterlake/fwd_neutrons_geant.pdf | ||
|
||
collect_results:zdc_neutron: | ||
extends: .det_benchmark | ||
stage: collect | ||
needs: | ||
- "bench:zdc_neutron" | ||
script: | ||
- ls -lrht | ||
- mv results{,_save}/ # move results directory out of the way to preserve it | ||
- snakemake --cores 1 --delete-all-output results/zdc_neutron/epic_craterlake/fwd_neutrons_geant.pdf | ||
- mv results{_save,}/ | ||
# convert to png | ||
- | | ||
gs -sDEVICE=pngalpha -dUseCropBox -r144 \ | ||
-o 'results/zdc_neutron/epic_craterlake/geant_plots_%03d.png' \ | ||
results/zdc_neutron/epic_craterlake/fwd_neutrons_geant.pdf | ||
- | | ||
gs -sDEVICE=pngalpha -dUseCropBox -r144 \ | ||
-o 'results/zdc_neutron/epic_craterlake/recon_plots_%03d.png' \ | ||
results/zdc_neutron/epic_craterlake/fwd_neutrons_recon.pdf | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters