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

Kleykamp validation #180

Open
wants to merge 87 commits into
base: main
Choose a base branch
from
Open

Kleykamp validation #180

wants to merge 87 commits into from

Conversation

jdkio
Copy link
Contributor

@jdkio jdkio commented Nov 20, 2024

Adds the script to draw various validation plots. scripts/Validation/Tracking_Validation.cpp Never really nailed down the final set of validation plots, but new ones can be added easily with the hist function. One can also register new axis near the hist code to make it less busy. Eventually the idea was to separate different types of validation into separate .cxx files that one would include. The code is really fast so it makes a lot of sense to draw all the hists at once. Plots are automatically sorted into subdirs based on the hist name, and one can also make them into stacks. I would've cleaned it up a bit to only include the final set of nice plots to look at, but I didn't get around to it.

Example

make && ./Tracking_Validation /exp/dune/data/users/kleykamp/dune-tms/2024-11-18_process_nd_sample.tmsreco.root && python simply_draw_everything.py /exp/dune/data/users/${USER}/dune-tms/Validation/Tracking_Validation/2024-11-18_process_nd_sample.tmsreco.root

Output in /exp/dune/data/users/${USER}/dune-tms/2024-11-18_nersc_sample_images

Example comparison:

make && ./Tracking_Validation /exp/dune/data/users/kleykamp/dune-tms/2024-11-18_process_nd_sample.tmsreco.root && ./Tracking_Validation /exp/dune/data/users/kleykamp/dune-tms/2024-11-18_nersc_sample.tmsreco.root && python draw_comparison.py /exp/dune/data/users/${USER}/dune-tms/Validation/Tracking_Validation/2024-11-18_process_nd_sample.tmsreco.root,process_nd /exp/dune/data/users/${USER}/dune-tms/Validation/Tracking_Validation/2024-11-18_nersc_sample.tmsreco.root,nersc

Output in /exp/dune/data/users/${USER}/dune-tms/comparison_process_nd_nersc based on the two keys provided after the commas after the input filenames. For 1d plots, it automatically stacks them. For 2d, it puts them side by side.

Can also draw spills with LAr assuming the file has non-tms hits saved. Will draw different vertices (different interactions) different colors. Here's an example to draw only events starting in LAr:

python draw_spill.py --input_filename /exp/dune/data/users/kleykamp/dune-tms/2024-11-18_nersc_sample/MicroProdN1p2_NDLAr_1E18_RHC.spill.nu.0000001.EDEPSIM_SPILLS_TMS_RecoCandidates_Hough_Cluster1.root --outdir /exp/dune/data/users/kleykamp/dune-tms/event_displays/2024-11-18_nersc_sample --interaction lar

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant