Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make SIOFrameData work properly with dropped collections #400

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

tmadlener
Copy link
Collaborator

BEGINRELEASENOTES

  • Fix a bug in SIOFrameData::getAvailableCollections to also work with Frames where some of the collections have not been written and that could lead to a seg fault.
  • Add a test for this in c++ (previously only covered in python unittests of Frame).

ENDRELEASENOTES

Previously obtaining all collection names relied on the fact that the indices in the m_blocks block list aligned with the order of the collectionID table. It worked if the collectionIDs were contiguous (which is the case if no collections are dropped during writing). Since the order of the collIDs in the table coincides with the indices of the m_blocks, we use that to get the correct name.

@tmadlener tmadlener merged commit f4c9219 into AIDASoft:master Apr 12, 2023
@tmadlener tmadlener deleted the fix-sio-frame-data branch April 12, 2023 08:04
tmadlener added a commit to tmadlener/podio that referenced this pull request May 4, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant