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

Problem recovering tree histogram when files have been split #316

Closed
jgalan opened this issue Oct 13, 2022 · 0 comments
Closed

Problem recovering tree histogram when files have been split #316

jgalan opened this issue Oct 13, 2022 · 0 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@jgalan
Copy link
Member

jgalan commented Oct 13, 2022

File splitting was introduced at #190 and #201.

I found out that when the files are split I am not able to use the following to recover the generated histogram

run0->GetAnalysisTree()->Draw("anaTreeVar");
TH1D *h = (TH1D *) run0->GetAnalysisTree()->GetHistogram();

When the output has been split, i.e. when we find .root, .root.1 ... .root.N the resulting pointer h will be a nullptr, but it will be valid if the file was not split, by just increasing fileSplitSize value (for example).

I wonder if this has an easy fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants