-
Notifications
You must be signed in to change notification settings - Fork 60
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
Make the TTree and RNTuple based backends write the GenericParameters the same way #625
Make the TTree and RNTuple based backends write the GenericParameters the same way #625
Conversation
f8a353d
to
8566bab
Compare
a9bc5a7
to
8850b63
Compare
df.Define( | ||
"params", | ||
"podio::root_utils::loadParamsFrom(GPIntKeys, GPIntValues, GPFloatKeys, GPFloatValues, GPDoubleKeys, GPDoubleValues, GPStringKeys, GPStringValues)", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Zehvogel, does this look like an acceptable compromise for using GenericParameters in RDataFrame until we have a proper RDataSource?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes thx!
894a6d3
to
cff343b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. That seems to do things in a very thorough way now.
What I really would like to see for the future is some documentation about the chosen file structure in the files created. Some file_structure_details.doc
or similar
I agree, more documentation on this is necessary. Since, we also don't really have documentation on how we store collections, I would prefer a separate PR for the documentation. I can prepare that in parallel. |
Something I found with this PR is that it fixes an issue I had only when making Debug builds with Clang 17. For some reason, the GenericParameters were not being saved in the file and all the tests for reading would fail. I picked up a working build of podio and read the files produced with this debug build and indeed the GenericParameters were not there. I never spent more time to figure out what was going on but out of all the build types and compilers (GCC and Clang) I only managed to reproduce it with Clang and |
BEGINRELEASENOTES
ENDRELEASENOTES
This was originally done in #615. See there for a bit more discussion.