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

feat: save histograms without re-binning #165

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

alexander-held
Copy link
Member

This addresses the second item in #162 via an intermediate solution that can be replaced once scikit-hep/cabinetry#412 is addressed. It makes use of https://cabinetry.readthedocs.io/en/latest/advanced.html#overrides-for-template-building to subsequently re-bin via cabinetry, which ends up less complicated that I had initially expected.

The histograms getting saved to disk now are no longer re-binned from the coffea output, so they're 25 bins from 50 to 550 GeV (20 GeV bin width). During template collection in cabinetry the lowed bin edge gets set to 110 GeV and the bins are merged 2->1, which previously was already done to the histograms saved to the root file.

@ekauffma
Copy link
Collaborator

Looks fine to me and runs on my end!

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

Successfully merging this pull request may close these issues.

2 participants