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 option for 2D and 3D histograms in final stage #253

Merged
merged 1 commit into from Mar 15, 2023

Conversation

jeyserma
Copy link
Contributor

@jeyserma jeyserma commented Mar 14, 2023

Added the option of writing 2D and 3D histograms during the final stage of the analysis. The syntax in the histoList is as follows:

"hist_name1": {"cols": ["col1"], "1D histogram", "bins": [(10, 0, 10)]}, "hist_name2": {"cols": ["col1", "col2"], "2D histogram", "bins": [(10, 0, 10), (20, 80, 100)]}, "hist_name3": {"cols": ["col1", "col2", "col3"], "3D histogram", "bins": [(10, 0, 10), (20, 80, 100), (10, 0, 10)]},

This syntax supports 1D, 2D, and 3D histograms, automatically assigned depending on the length of cols. The old syntax (providing name, bins, xmin and xmax) is still valid.

Example attached in the examples/FCCee/higgs/mH-recoil/mumu/analysis_final.py file.

@kjvbrt
Copy link
Contributor

kjvbrt commented Mar 15, 2023

Thanks :)

@kjvbrt kjvbrt merged commit aa9de28 into HEP-FCC:master Mar 15, 2023
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.

None yet

2 participants