eic / epic

Geometry Description of the ePIC Experiment
https://eic.github.io/epic
GNU Lesser General Public License v3.0
25 stars 45 forks source link

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

Closed Chao1009 closed 2 months ago

Chao1009 commented 2 months ago

Briefly, what does this PR introduce?

A script to generate 2D plots

What kind of change does this PR introduce?

Please check if this PR fulfills the following:

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 commented 2 months ago

Plan to move all the related scripts to benchmarks

Chao1009 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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