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

Fixed null pointer conversion error for newer versions of ROOT #293

Merged
merged 2 commits into from
Feb 28, 2022
Merged

Conversation

jkguiang
Copy link
Contributor

As mentioned in this issue, a conversion error is thrown when running the postprocessor with newer versions of ROOT. In particular, it is complaining about the TEntryList being supplied to the constructor. I believe this is because entrylist is NoneType by default, rather than a null pointer. By replacing this default value with ROOT.MakeNullPointer(ROOT.TEntryList), the TTreeReader constructor instead receives a nullpointer as it expects. I tested this simple fix using CMSSW v12.1.0 (pre, with ROOT v6.24) and CMSSW v10.6.25. I used a custom module and skimmed some custom MC signal samples for the test.

@mariadalfonso mariadalfonso merged commit c32f055 into cms-nanoAOD:master Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants