Skip to content

Kleykamp validation - #180

Open
jdkio wants to merge 169 commits into
mainfrom
kleykamp_validation
Open

Kleykamp validation#180
jdkio wants to merge 169 commits into
mainfrom
kleykamp_validation

Conversation

@jdkio

@jdkio jdkio commented Nov 20, 2024

Copy link
Copy Markdown
Contributor

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.

2 participants