Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 2D plot script for raw material scan #780

Merged
merged 8 commits into from
Sep 20, 2024
Merged

Conversation

Chao1009
Copy link
Contributor

Briefly, what does this PR introduce?

A script to generate 2D plots

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No

Does this PR change default behavior?

No

@Chao1009 Chao1009 marked this pull request as draft September 12, 2024 04:36
@github-actions github-actions bot added the topic: infrastructure Regarding build system, CI, CD label Sep 12, 2024
@Chao1009
Copy link
Contributor Author

Plan to move all the related scripts to benchmarks

@Chao1009
Copy link
Contributor Author

To use it (assuming under dir epic):

mkdir scan_test
cd scan_test
../bin/g4MaterialScan_to_csv -c ${DETECTOR_PATH}/epic_craterlake.xml --raw-output --phi=0. --eta=-4:4:0.01
../bin/g4MaterialScan_raw_plot_2d --phi=0. --eta=-4:4:0.01

@Chao1009
Copy link
Contributor Author

Chao1009 commented Sep 12, 2024

Linear scale
../bin/g4MaterialScan_raw_plot_2d --eta=-4:4:0.01 --plot-scale=linear
mat_scan_2D

Log scale
../bin/g4MaterialScan_raw_plot_2d --eta=-4:4:0.01
mat_scan_2D_log

@Chao1009 Chao1009 self-assigned this Sep 12, 2024
@Chao1009
Copy link
Contributor Author

Chao1009 commented Sep 12, 2024

A zoomed-in plot for the tracking region

Linear scale
../bin/g4MaterialScan_raw_plot_2d --eta=-4:4:0.01 --z-min=-250 --z-max=250 --r-max=100 --x0-min=0 --x0-max=0.2 --lambda-min=0 --lambda-max=0.2 --plot-scale linear
mat_scan_2D_tracking

Log scale
../bin/g4MaterialScan_raw_plot_2d --eta=-4:4:0.01 --z-min=-250 --z-max=250 --r-max=100
mat_scan_2D_log_tracking

@Chao1009
Copy link
Contributor Author

The scripts related to material scans will be moved to benchmarks in the following PR.

@Chao1009 Chao1009 marked this pull request as ready for review September 12, 2024 22:53
@Chao1009 Chao1009 changed the title Draft: Add a 2D plot for raw material scan Add a 2D plot script for raw material scan Sep 13, 2024
@Chao1009 Chao1009 added this pull request to the merge queue Sep 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Sep 19, 2024
@veprbl veprbl added this pull request to the merge queue Sep 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Sep 19, 2024
@veprbl veprbl added this pull request to the merge queue Sep 19, 2024
Merged via the queue into main with commit fe15821 Sep 20, 2024
114 of 115 checks passed
@veprbl veprbl deleted the update_material_scan branch September 20, 2024 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Regarding build system, CI, CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants