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

Make it possible read "old" podio files #232

Merged
merged 2 commits into from
Oct 12, 2021

Conversation

tmadlener
Copy link
Collaborator

@tmadlener tmadlener commented Oct 11, 2021

BEGINRELEASENOTES

  • Make it possible to read "old" podio data files that have been written with podio < 0.13.1 (i.e. before Disentangle storage concerns from collection and implement subset collections #197) was merged.
    • For ROOT: Reconstruct the "CollectionInfoType" branch that as introduced there via other means and simply assume that all collections are proper collections (since subset collections didn't exist prior).
    • For SIO: Bump the version of the SIOCollectionIDTableBlock to 0.2 and only read the subset collection bits when they are available.

ENDRELEASENOTES

For SIO bumping the version only now, technically makes it possible to produce files that already use subset collections, but will not be able to read those back. However, I think there is no other way of encoding this information that doesn't break even earlier files.

Fixes #229

createCollectionBranches(*collectionInfo);
delete collectionInfo;
} else {
std::cout << "Reading old-style file" << std::endl;
Copy link
Collaborator

Choose a reason for hiding this comment

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

if you integrate that into any framework of decent size you will have no idea where this message comes from. maybe adding "PODIO" and the name of the file will help

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah yes, of course. Left over from testing.

@hegner hegner merged commit 181ec3d into AIDASoft:master Oct 12, 2021
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.

pre-v00-13-01 podio ROOT files can no longer be read with the RootReader
2 participants