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

Remove unnecessary usage of TClass from RNTupleReader #548

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

tmadlener
Copy link
Collaborator

BEGINRELEASENOTES

  • Remove an unnecessary usage of the TClass machinery inside the RNTupleReader as all the necessary information is also available from metadata that we carry around in any case.

ENDRELEASENOTES

const auto collectionClass = TClass::GetClass(m_collectionInfo[category].type[i].c_str());

auto collection =
std::unique_ptr<podio::CollectionBase>(static_cast<podio::CollectionBase*>(collectionClass->New()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this line problematic?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, not really per se. It has just become unnecessary with the introduction of our own buffer factory. Now it was only used to get the type name basically, which we already have available otherwise.

@tmadlener tmadlener merged commit 07c5bdf into AIDASoft:master Jan 30, 2024
16 of 18 checks passed
@tmadlener tmadlener deleted the rntuple-cleanup branch January 30, 2024 17:30
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.

2 participants